DAVIAC-web/style.css

72 lines
1.0 KiB
CSS

.header { grid-area: header; }
.sidebar { grid-area: sidebar; }
.main { grid-area: main; }
.footer { grid-area: footer; }
.grid-container {
display: grid;
grid-template-areas:
'header header'
'menu main'
'menu footer';
gap: 10px;
padding: 10px;
}
@media only screen and (max-width: 620px) {
/* Mobile screens */
.grid-container {
display: grid;
grid-template-areas:
'header'
'sidebar'
'main'
'footer';
gap: 1px;
padding:1px;
}
.header, main, .footer {
width: 100%;
}
.sidebar {
width: 94%;
}
}
#background {
background: none repeat scroll 0 0;
background-color: #DADADA;
width: 90%;
height: 80%;
margin: auto;
border-radius: 15px;
padding: 10px;
overflow: auto;
}
#sidebar {
float: left;
border-radius: 15px;
padding: 15px;
margin-right: 15px;
background-color:#A0A0A0;
}
#footer {
padding-top: 20px;
clear: both;
}
#footer p {
font-size: 10px;
}
/* firefox 3 hacks */
img {
border: none;
}