tanguy.gerome.fi/style/main.scss

196 lines
3.3 KiB
SCSS
Raw Normal View History

2024-10-22 17:46:53 +03:00
$mainGreen: darken(#2E7D32, 10);
2024-10-21 19:40:51 +03:00
$mainGrey: #0F0F0F;
@mixin top-level-padding {
padding: 0 16px;
@media all and (max-width: 400px) {
padding: 0 8px;
}
}
* {
box-sizing: border-box;
}
2024-10-22 17:46:53 +03:00
button {
&.link {
all: unset;
text-decoration: underline;
color: $mainGreen!important;
cursor: pointer;
}
}
a {
color: $mainGreen!important;
}
2024-10-21 19:40:51 +03:00
body {
font-family: 'Ubuntu', sans-serif;
text-align: left;
font-weight: 300;
font-size: 16px;
background: white;
color: $mainGrey;
display: flex;
height: 100%;
min-height: 100vh;
flex-direction: column;
align-items: center;
justify-content: space-between;
margin: 0;
.main-width {
width: 100%;
max-width: 800px;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Roboto Slab", serif;
font-weight: 300;
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
header {
width: 100%;
display: flex;
2024-10-22 17:46:53 +03:00
flex-direction: column;
2024-10-21 19:40:51 +03:00
align-items: center;
justify-content: center;
2024-10-22 17:46:53 +03:00
.title-links-and-banner {
background: $mainGrey;
color: white;
width: 100%;
2024-10-21 19:40:51 +03:00
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
2024-10-22 17:46:53 +03:00
@media all and (max-width: 2000px) {
justify-content: flex-end;
}
@media all and (max-width: 800px) {
2024-10-21 19:40:51 +03:00
flex-direction: column;
2024-10-22 17:46:53 +03:00
align-items: stretch;
2024-10-21 19:40:51 +03:00
}
2024-10-22 17:46:53 +03:00
.text {
@include top-level-padding;
flex-basis: auto;
flex-shrink: 0;
flex-grow: 1;
2024-10-21 19:40:51 +03:00
display: flex;
2024-10-22 17:46:53 +03:00
flex-direction: row;
align-items: center;
justify-content: center;
gap: 16px;
h1 {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.links {
display: flex;
flex-direction: column;
align-items: flex-end;
a {
color: white!important;
}
}
}
.image {
max-width: 800px;
width: 100%;
max-height: 300px;
height: 100%;
object-fit: cover;
object-position: top;
flex-shrink: 1;
2024-10-21 19:40:51 +03:00
}
}
2024-10-22 17:46:53 +03:00
.language-switcher {
@include top-level-padding;
margin: 16px 0;
gap: 8px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
flex-wrap: wrap;
p {
margin: 0;
}
2024-10-21 19:40:51 +03:00
}
}
main {
@include top-level-padding;
2024-10-22 17:46:53 +03:00
margin-bottom: 32px;
2024-10-21 19:40:51 +03:00
}
footer {
background: $mainGrey;
color: white;
order: 100;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 10px 0;
.name-and-links {
@include top-level-padding;
flex-grow: 1;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
gap: 8px;
@media all and (max-width: 400px) {
flex-direction: column;
align-items: stretch;
}
.name {
}
.links {
display: flex;
flex-direction: row;
gap: 32px;
@media all and (max-width: 800px) {
gap: 8px;
flex-direction: column;
text-align: right;
}
a {
color: white!important;
}
}
}
}
}