website/public/scss/index.css
2020-09-14 16:24:02 +02:00

145 lines
3.3 KiB
CSS

* {
box-sizing: border-box; }
a {
color: #ff8282;
text-decoration: none; }
a:hover {
text-decoration: underline; }
body {
background: #28283c;
color: #f0f0ff;
margin: 0;
font-family: Monaco, Lucida Console, monospace;
display: grid; }
.container {
width: 100%;
max-width: 1140px;
margin: 0 auto; }
nav {
background: #3c3c5a; }
nav .container {
display: flex;
align-items: center; }
nav .container .website-name a {
color: whitesmoke;
text-decoration: none;
background: #ff8282;
padding: 5px 10px;
border-radius: 20px;
text-shadow: #ff6464 2px 2px; }
nav .container .website-nav {
margin-left: auto; }
nav .container .website-nav ul {
display: flex;
padding: 0; }
nav .container .website-nav li {
list-style-type: none;
padding: 10px;
padding-left: 20px; }
nav .container .website-nav a {
color: whitesmoke;
text-decoration: none; }
header {
text-align: center;
margin: 150px 0; }
header h1 {
font-size: 2em; }
.section-articles {
margin: 20px 0;
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 1rem; }
.section-articles a {
color: white;
text-decoration: none; }
.section-articles article {
background: #3c3c5a;
color: white;
padding: 20px;
border-radius: 5px;
display: grid;
height: max-content;
grid-template-columns: 120px 1fr;
grid-template-areas: "img h1" "img p";
transition: background .2s; }
.section-articles article img {
object-fit: cover;
height: 180px;
width: 120px;
border-radius: 5px;
border: 0px solid #28283c;
grid-area: img;
margin: -20px; }
.section-articles article h1 {
margin: 0px;
grid-area: h1; }
.section-articles article .meta {
margin: 0;
grid-area: p; }
.section-articles article .author {
font-style: italic;
color: #c8c8e6; }
.section-articles article:hover {
background: #464669; }
.section-projects {
margin: 20px 0;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 1rem; }
.section-projects a {
color: white;
text-decoration: none; }
.section-projects article {
background: #3c3c5a;
color: white;
padding: 20px;
border-radius: 5px;
display: flex;
flex-flow: column;
height: max-content;
transition: background .2s; }
.section-projects article img {
order: -1;
max-width: calc(100% + 40px);
border-radius: 5px;
margin: -20px -20px 20px -20px;
background: #505078;
object-fit: cover;
max-height: 170px; }
.section-projects article h1 {
margin-top: 0; }
.section-projects article .meta {
margin: 0; }
.section-projects article .status {
font-style: italic;
color: #c8c8e6; }
.section-projects article:hover {
background: #464669; }
footer {
background: #1e1e2d;
color: #c8c8e6;
margin-top: 100px; }
footer .container {
display: flex;
align-items: center; }
.website-subnav {
margin-left: auto; }
.website-subnav ul {
display: flex;
padding: 0; }
.website-subnav li {
list-style-type: none;
padding: 10px;
padding-left: 20px; }
.website-subnav a {
color: #c8c8e6; }