website/assets/index.scss

145 lines
2.7 KiB
SCSS
Raw Normal View History

2020-11-03 20:22:08 +01:00
@import 'import/colors.scss';
@import 'import/main.scss';
@import 'import/nav.scss';
@import 'import/footer.scss';
2020-11-09 16:12:02 +01:00
@import 'import/include.scss';
2020-09-14 16:24:02 +02:00
.section.header {
2020-11-04 18:37:31 +01:00
background: $bg60;
2020-11-09 16:12:02 +01:00
@include a-underlined;
2020-11-09 18:49:14 +01:00
&::before {
background: linear-gradient(0deg, transparent, #3c3c5a);
content: "";
display: block;
height: 32px;
margin-top: -32px;
position: sticky;
top: 64px;
width: 100%;
}
header {
2020-11-09 16:12:02 +01:00
margin: 60px auto;
2020-11-04 18:37:31 +01:00
max-width: 600px;
2020-11-09 16:12:02 +01:00
text-align: center;
h1 {
2020-11-04 18:37:31 +01:00
font-size: 2.5em;
margin: auto;
}
2020-09-14 16:24:02 +02:00
}
2020-11-09 16:12:02 +01:00
.section.contact {
background: $bg70;
border-radius: 5px;
display: flex;
padding: 20px;
margin: 60px auto;
max-width: 500px;
.table.contact {
margin: 0 auto;
white-space: nowrap;
tr {
td {
&:first-of-type {
padding: 5px 30px 5px 0;
text-align: right;
}
}
}
}
}
2020-09-14 16:24:02 +02:00
}
2020-11-04 18:37:31 +01:00
main {
2020-11-12 09:12:55 +01:00
.latest {
color: $white-dark;
display: block;
font-size: 1.5em;
text-align: center;
margin: -7px;
a {
color: $white;
font-weight: bold;
transition: border .2s, color .2s;
&:hover {
color: $red;
text-decoration: none;
}
2020-10-05 09:57:10 +02:00
}
}
2020-11-12 09:57:45 +01:00
.section.projects {
2020-11-12 09:12:55 +01:00
.inner {
display: grid;
grid-gap: 1rem;
2020-11-12 09:57:45 +01:00
grid-template-columns: repeat(4, 1fr);
2020-11-12 09:12:55 +01:00
margin: 40px 0;
a {
color: $white-light;
text-decoration: none;
}
article {
background: $bg60;
border-radius: 5px;
color: $white;
display: flex;
flex-flow: column;
height: 100%;
2020-11-12 09:57:45 +01:00
padding: 20px 40px;
2020-11-12 09:12:55 +01:00
transition: background .2s;
&:hover {
2020-11-12 09:57:45 +01:00
background: $bg50;
2020-11-12 09:12:55 +01:00
}
h1 {
2020-11-12 09:57:45 +01:00
color: $white;
2020-11-12 09:12:55 +01:00
font-size: 18px;
font-weight: 400;
2020-11-12 09:57:45 +01:00
margin: 0;
2020-11-12 09:12:55 +01:00
text-align: center;
}
p.meta {
color: $white-dark;
font-size: 14px;
margin: 0;
text-align: center;
}
2020-11-03 21:43:41 +01:00
}
2020-09-14 16:24:02 +02:00
}
}
2020-11-12 09:57:45 +01:00
@include posts;
2020-09-14 16:24:02 +02:00
}
2020-11-12 09:12:55 +01:00
2020-09-21 10:59:52 +02:00
@media (max-width: 900px) {
2020-11-12 09:12:55 +01:00
main {
.section.projects.inner {
grid-template-columns: repeat(2, 1fr);
}
2020-09-21 10:59:52 +02:00
}
}
@media (max-width: 600px) {
2020-11-09 16:12:02 +01:00
.section.header {
.section.contact {
border-radius: 0;
padding: 10px;
margin: 60px -20px;
max-width: none;
overflow-x: auto;
width: 100vw;
.table.contact {
margin: 0 auto;
white-space: nowrap;
tr {
td {
&:first-of-type {
padding: 5px 20px 5px 0;
}
}
}
}
}
}
2020-11-12 09:12:55 +01:00
main {
.section.projects.inner {
grid-template-columns: repeat(1, 1fr);
}
2020-09-21 10:59:52 +02:00
}
}