circolog-website/res/css/main.css

171 lines
3.1 KiB
CSS
Raw Normal View History

2019-03-21 21:06:56 +01:00
@font-face {
font-family: "Archivo";
src: url(../media/Archivo-Regular.ttf) format('truetype');
font-weight: normal;
font-display: swap;
}
@font-face {
font-family: "Archivo";
src: url(../media/Archivo-SemiBold.ttf) format('truetype');
font-weight: bold;
font-display: swap;
}
@font-face {
font-family: "Archivo";
src: url(../media/Archivo-Italic.ttf) format('truetype');
font-weight: italic;
font-display: swap;
}
@font-face {
font-family: "SourceSansPro";
src: url(../media/SourceSansPro-Regular.ttf) format('truetype');
font-weight: normal;
font-display: swap;
}
@font-face {
font-family: "SourceSansPro";
src: url(../media/SourceSansPro-SemiBold.ttf) format('truetype');
font-weight: bold;
font-display: swap;
}
@font-face {
font-family: "SourceSansPro";
src: url(../media/SourceSansPro-Italic.ttf) format('truetype');
font-weight: italic;
font-display: swap;
}
@font-face {
font-family: "Exo2";
src: url(../media/Exo2-Regular.ttf) format('truetype');
font-weight: normal;
font-display: swap;
}
@font-face {
font-family: "Exo2";
src: url(../media/Exo2-Bold.ttf) format('truetype');
font-weight: bold;
font-display: swap;
}
@font-face {
font-family: "Exo2";
src: url(../media/Exo2-Italic.ttf) format('truetype');
font-weight: italic;
font-display: swap;
}
@font-face {
font-family: "Roboto";
src: url(../media/Roboto-Regular.ttf) format('truetype');
font-weight: normal;
font-display: swap;
}
@font-face {
font-family: "Roboto";
src: url(../media/Roboto-Bold.ttf) format('truetype');
font-weight: bold;
font-display: swap;
}
@font-face {
font-family: "Roboto";
src: url(../media/Roboto-Italic.ttf) format('truetype');
font-weight: italic;
font-display: swap;
}
2019-03-22 12:57:59 +01:00
@keyframes appear {
from {
opacity: 0.05;
}
to {
opacity: 1.0;
}
}
@keyframes appear-from-right {
from {
margin-left: 100%;
width: 300%;
opacity: 0.05;
}
to {
margin-left: 0%;
width: 100%;
opacity: 1.0;
}
}
* {
color: #001F3F;
}
body .section:first-child {
animation-name: appear;
animation-duration: 1s;
}
body .section:not(:first-child) {
animation-name: appear-from-right;
animation-duration: 3s;
animation-timing-function: cubic-bezier(0.05, 0.05, 1.0, 1.0);
2019-03-21 21:06:56 +01:00
}
.section {
2019-03-22 12:57:59 +01:00
2019-03-21 21:06:56 +01:00
display: flex;
flex-wrap: wrap;
font-family: "Exo2";
box-sizing: border-box;
2019-03-22 12:57:59 +01:00
border: 5px solid #000;
2019-03-21 21:06:56 +01:00
border-radius: 5px;
margin-bottom: 2em;
2019-03-22 12:57:59 +01:00
box-shadow: 5px 10px 5px 5px #001f3f, inset 2px 2px 5px 5px #3A2A1A;
2019-03-21 21:06:56 +01:00
}
.section > div {
padding: 10px;
color: #fff;
font-weight: bold;
text-align: center;
}
.section > *:nth-child(odd){
2019-03-22 12:57:59 +01:00
background-color: hsla(120,100%,70%,0.7);
2019-03-21 21:06:56 +01:00
}
.section > *:nth-child(even){
2019-03-22 12:57:59 +01:00
background-color: rgba(100, 200, 200, 0.7);
2019-03-21 21:06:56 +01:00
}
.section > * {
flex: 1 1 650px;
}
.section h1 {
font-weight: bold;
}
.section h2 {
font-weight: italic;
}
.container {
text-align: center;
}
.container ul {
text-align: left;
padding-left: 5em;
}