71 lines
856 B
CSS
71 lines
856 B
CSS
body {
|
|
background-color: #e6e6e6;
|
|
margin: 0;
|
|
display: grid;
|
|
}
|
|
|
|
@media (min-width: 900px) {
|
|
body {
|
|
grid-template-columns: 250px;
|
|
grid-template-areas:
|
|
'menu title'
|
|
'menu content';
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
body {
|
|
grid-template-areas:
|
|
'title'
|
|
'menu'
|
|
'content';
|
|
}
|
|
}
|
|
|
|
#title {
|
|
grid-area: title;
|
|
}
|
|
|
|
#navbar {
|
|
background-color: #eadecc;
|
|
list-style: none;
|
|
margin-right: 1rem;
|
|
padding-top: 1rem;
|
|
grid-area: menu;
|
|
}
|
|
|
|
#navbar li:not(:first-child) {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
#navbar li:last-child {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
#logo {
|
|
width: 150px;
|
|
}
|
|
|
|
#content {
|
|
grid-area: content;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
h1, h2, h3 {
|
|
color: #8c877d;
|
|
}
|
|
|
|
#content h1 {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
#content h2 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.galery a img {
|
|
margin: 0.5rem;
|
|
}
|