Files
sossunVerkkosivut/static/style.css
T

164 lines
2.3 KiB
CSS

:root {
--regular-pink: #ffd6f1;
--active-pink: #f296d4;
}
body {
background: url(tausta.jpg);
background-size: 500px 500px;
background-repeat: repeat;
background-position: center center;
margin: 0;
padding: 0;
}
#website {
width: max(600px, min(90%, 50em));
margin-left: auto;
margin-right: auto;
}
/* General styling of the highest level elements */
#header, #navbar, #centerbox, #footer, #sossuLogo, #mobileLinks {
background-color: var(--regular-pink);
}
.shadow {
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;
position: relative;
}
#headerPicture{
width: 100%;
height: 100%;
object-fit: cover;
}
#sossuLogo {
position: absolute;
top: 0;
bottom: 0;
height: 60%;
border-radius: 50%;
padding: 1%;
margin: auto 5%;
}
#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 > img {
width: 70%;
}
.navbarItem:hover {
background-color: var(--active-pink);
}
#mobileLinks > .navbarItem {
text-align: left;
justify-content: left;
white-space: nowrap;
text-indent: 2ch;
}
.active {
font-weight: bold;
}
p, h3, h2, ul, li {
font-family: Tahoma;
text-decoration: none;
}
h2 {
margin-top: 0;
}
.social-media-logos {
padding: 1ch;
align-items: center;
height: 3em;
}
#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;
}
@media (max-width: 600px) {
#mobileButton {
display: flex;
}
#website {
width: 100%;
}
#navbarLinks {
display: none;
}
}