collabore-tunnel-website/assets/css/style.css

284 lines
4.5 KiB
CSS
Raw Permalink Normal View History

2022-12-30 18:43:46 +00:00
@font-face {
font-family: "Varela Round";
font-style: normal;
font-weight: 400;
src: url("../fonts/varela-round-v19-latin-regular.eot");
src: local(""), url("../fonts/varela-round-v19-latin-regular.eot?#iefix") format("embedded-opentype"),
url("../fonts/varela-round-v19-latin-regular.woff2") format("woff2"),
url("../fonts/varela-round-v19-latin-regular.woff") format("woff"),
url("../fonts/varela-round-v19-latin-regular.ttf") format("truetype"),
url("../fonts/varela-round-v19-latin-regular.svg#VarelaRound") format("svg");
}
body {
font-family: "Varela Round", sans-serif;
line-height: 1.5;
font-weight: 400;
margin: 0;
2023-05-03 09:15:12 +00:00
padding-top: 8vh;
padding-left: 5rem;
padding-right: 5rem;
2022-12-30 18:43:46 +00:00
min-height: 100vh;
text-rendering: optimizeLegibility;
background-color: #e1e0e2;
color: #1e1f1d;
box-sizing: border-box;
animation: fadein 0.5s;
}
* {
box-sizing: border-box;
}
@keyframes fadein {
from {
margin-top: 20px;
opacity: 0;
overflow: hidden;
}
to {
opacity: 1;
overflow: hidden;
}
}
2023-05-03 09:15:12 +00:00
.top-border {
2022-12-30 18:43:46 +00:00
position: absolute;
2023-05-03 09:15:12 +00:00
border-top: 6px solid #1e1f1d;
2022-12-30 18:43:46 +00:00
top: 0;
2023-05-03 09:15:12 +00:00
right: 0;
2022-12-30 18:43:46 +00:00
left: 0;
}
2023-05-03 09:15:12 +00:00
.top-logo {
position: absolute;
top: 0;
left: 5rem;
height: 50px;
}
.background-logo {
position: absolute;
bottom: 0;
right: 5rem;
height: 500px;
opacity: 0.1;
z-index: -9999;
margin-bottom: 35px;
display: none;
}
main {
position: relative;
}
ul {
list-style-type: none;
padding: 0px;
margin: 0px;
2022-12-30 18:43:46 +00:00
}
.container {
display: flex;
width: 100%;
margin: auto;
}
.elem {
padding: 16px;
box-shadow: 0 1px 2px #00000010, 0 8px 12px #00000020;
border-radius: 12px;
overflow: hidden;
background-color: #d7d7d7;
}
.header {
margin-bottom: 25px;
}
.header .title {
font-size: 2rem;
margin-bottom: 0;
margin-top: auto;
}
.header .desc {
font-size: small;
}
.content p {
hyphens: auto;
line-height: 1.8;
margin-bottom: 1em;
}
.content code {
padding: .2em .4em;
font-size: 85%;
background-color: #e1e0e2;
border-radius: 6px;
}
.content pre {
padding: 16px;
overflow: auto;
border-radius: 10px;
background-color: #e1e0e2;
}
.content pre>code {
padding: 0;
font-size: 100%;
background-color: inherit;
border: 0;
}
a>svg {
fill: #1e1f1d99;
cursor: pointer;
}
a>svg:hover {
fill: #1e1f1d;
}
header a>svg:hover,
footer a>svg:hover {
transform: scale(1.1);
}
@media screen and (max-width:600px) {
2023-05-03 09:15:12 +00:00
body {
padding-left: 1rem;
padding-right: 1rem;
}
.top-logo {
left: 1rem;
}
2022-12-30 18:43:46 +00:00
.content {
font-size: 16px;
}
.header .title {
font-size: 2rem;
}
.content p {
letter-spacing: .05em;
}
}
@media screen and (min-width: 32em) {
.container {
max-width: 1024px;
}
}
@media screen and (min-width: 64em) {
.container {
max-width: 1200px;
}
}
2023-05-03 09:15:12 +00:00
@media screen and (min-width: 100em) {
.background-logo {
display: block;
}
}
2022-12-30 18:43:46 +00:00
footer {
padding-top: 16px;
padding-bottom: 16px;
align-content: center;
}
footer a {
text-decoration: none;
}
.footer-links {
margin-top: 16px;
margin-bottom: 16px;
align-self: center;
flex: 1;
justify-content: center;
}
.footer-links a {
transition: color 0.1s ease-in-out;
color: #1e1f1d99;
}
.footer-links a:hover {
transition: color 0.1s ease-in-out;
color: #1e1f1d;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #1e1f1d;
color: #e1e0e2;
}
2023-05-03 09:15:12 +00:00
.top-border {
border-top: 7px solid #e1e0e2;
}
2022-12-30 18:43:46 +00:00
.top-logo {
filter: invert(100%);
}
2023-05-03 09:15:12 +00:00
.background-logo {
filter: invert(100%);
}
2022-12-30 18:43:46 +00:00
.logo {
filter: invert(100%);
}
.elem {
background-color: #282828;
}
.content a {
text-decoration: underline;
color: #e1e0e2;
}
.content code,
.content pre {
background-color: #1e1f1d !important;
}
.content blockquote {
background-color: #1e1f1d;
color: #e1e0e2;
border-left: .25em solid #e1e0e2;
}
.footer-links a {
transition: color 0.1s ease-in-out;
color: #e1e0e299;
}
.footer-links a:hover {
transition: color 0.1s ease-in-out;
color: #e1e0e2;
}
a>svg {
fill: #e1e0e299;
}
a>svg:hover {
fill: #e1e0e2;
}
}