130 lines
3 KiB
CSS
130 lines
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; }
|
||
|
|
||
|
.section-article article {
|
||
|
max-width: calc(100% / 3 * 2);
|
||
|
margin: 80px auto; }
|
||
|
.section-article article .meta {
|
||
|
color: #b4b4dc; }
|
||
|
.section-article article .title {
|
||
|
font-size: 2em;
|
||
|
margin-top: 20px; }
|
||
|
.section-article article img {
|
||
|
max-width: 100%;
|
||
|
margin-bottom: 15px;
|
||
|
border-radius: 5px; }
|
||
|
.section-article article a {
|
||
|
color: #ff8282;
|
||
|
transition: background .2s, color .2s;
|
||
|
margin: -5px -10px;
|
||
|
padding: 5px 10px;
|
||
|
border-radius: 5px; }
|
||
|
.section-article article a:hover {
|
||
|
background: #ff8282;
|
||
|
color: #fff0f0;
|
||
|
text-decoration: none; }
|
||
|
|
||
|
.section-articles {
|
||
|
margin: 20px auto;
|
||
|
display: grid;
|
||
|
grid-template-columns: repeat(2, 1fr);
|
||
|
grid-gap: 1rem;
|
||
|
max-width: calc(100% / 3 * 2); }
|
||
|
.section-articles a {
|
||
|
color: white;
|
||
|
text-decoration: none; }
|
||
|
.section-articles article {
|
||
|
background: #3c3c5a;
|
||
|
color: white;
|
||
|
padding: 20px;
|
||
|
border-radius: 5px;
|
||
|
display: flex;
|
||
|
flex-flow: column;
|
||
|
height: max-content;
|
||
|
transition: background .2s; }
|
||
|
.section-articles 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-articles article h1 {
|
||
|
margin-top: 0px; }
|
||
|
.section-articles article a {
|
||
|
color: white; }
|
||
|
.section-articles article a:hover {
|
||
|
text-decoration: underline; }
|
||
|
.section-articles article .meta {
|
||
|
margin: 0; }
|
||
|
.section-articles article .author {
|
||
|
font-style: italic;
|
||
|
color: #c8c8e6; }
|
||
|
.section-articles 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; }
|