Files
sossunVerkkosivut/static/style.css
T
2021-08-31 01:26:24 +03:00

143 lines
2.0 KiB
CSS

body {
background: url(tausta.jpg);
background-size: 500px 500px;
background-repeat: repeat;
background-position: center center;
margin: 0;
padding: 0;
}
#website {
width: min(90%, 50em);
margin-left: auto;
margin-right: auto;
}
/* General styling of the highest level elements */
#header, #navbar, #centerbox, #footer{
background-color: #FDD6FE;
box-shadow: .2ch .4ch .4ch .4ch rgba(0,0,0,.5);
}
#centerbox {
margin: 2ch 0;
padding: 2ch;
text-align: left;
}
#centerbox p {
margin-top: 0px;
}
#footer {
padding: 2ch;
margin-left: auto;
margin-right: auto;
text-align: center;
max-width: fit-content;
text-decoration: none;
}
#footer p {
margin: 1ex;
}
#header {
display: flex;
}
#headerPicture{
width: 100%;
height: 100%;
object-fit: cover;
}
#navbar {
position: sticky;
font-family: Tahoma;
z-index: 3;
top: 0;
width: 100%;
}
#navbarInner {
display: grid;
grid-template-columns: 1fr 3em;
grid-template-rows: 3em;
}
#navbarLinks {
display: grid;
grid-auto-flow: column;
grid-auto-columns: 1fr;
}
.navbarItem {
text-decoration: none;
color: black;
display: flex;
cursor: pointer;
justify-content: center;
align-items: center;
text-align: center;
}
.navbarItem:hover {
background-color: #FA9CC2;
}
#mobileLinks > .navbarItem {
text-align: left;
justify-content: left;
white-space: nowrap;
text-indent: 2ch;
}
.active {
font-weight: bold;
}
p, h3, h2 {
font-family: Tahoma;
text-decoration: none;
}
h2{
margin-top: 0;
}
.social-media-logos {
padding: 1ch;
align-items: center;
}
#mobileButton {
display: none;
width: 3em;
}
#mobileLinks {
display: none;
position: absolute; /* To render menu on top of other content*/
grid-auto-rows: 3em;
width: 100%;
box-shadow: inherit;
background-color: inherit;
}
@media (max-width: 600px) {
#mobileButton {
display: flex;
}
.website {
width: 100%;
margin-left: auto;
margin-right: auto;
}
#navbarLinks {
display: none;
}
}