wolegca.github.io/css/index.css
2019-09-18 23:20:00 +08:00

61 lines
902 B
CSS

.container{
max-width: 1440px;
margin:0 auto;
position: relative
}
.container:before{
content:'';
display: block;
position:fixed;
top:0px;
left:0px;
height:150%;
width:100%;
background: black url(../images/bg.jpg) no-repeat top;
background-size: cover
}
.clearfix:after{
content:'';
display: block;
height:0px;
clear: both;
visibility: hidden
}
.sidebar-border{
position: absolute;
left:0px;
top:0px;
display: block;
width:250px;
background-color: transparent;
padding-top:50px;
overflow-x:hidden;
padding-bottom: 10px;
padding-left: 10px
}
.sidebar{
position: relative;
display: block;
width:100%;
background-color:rgba(255,255,255,.8);
border-radius: 15px;
padding:15px
}
.sidebar div:first-child{
font-size: 20px;
font-weight: bold
}
@media screen and (max-width:700px){
.sidebar-border{
position: relative;
width:100%;
height:auto;
padding:0px
}
}