Files
86box.github.io/assets/css/style.css
2021-12-03 18:57:44 -03:00

212 lines
3.7 KiB
CSS

/* Global Defaults */
html {
color: #f9f9f9;
font-family: "Source Code Pro", monospace;
}
/* Body Layout */
body {
background: url("/assets/images/starsky.png"), #212e40;
background-repeat: repeat-x;
margin: 0 auto;
max-width: 67rem;
display: grid;
grid-template-areas: "head head nav"
"hero hero hero"
"main main main"
"about about about"
"foot foot foot";
grid-template-rows: auto 1fr auto auto 70px;
animation: backgroundScroll 80s linear infinite;
}
@media (max-width: 768px) {
body {
grid-template-rows: auto auto 1fr auto auto 70px;
grid-template-areas: "head head head"
"nav nav nav"
"hero hero hero"
"main main main"
"about about about"
"foot foot foot";
}
}
@keyframes backgroundScroll {
from {background-position: 0 0;}
to {background-position: -1920px 0;}
}
/* Page Layout */
body > header {
/* background-color: #8ca0ff; */
grid-area: head;
padding: 30pt 30pt;
}
img#icon {
max-height: 75px;
padding-right: 20pt;
}
body > nav {
/* background-color: #ffa08c; */
grid-area: nav;
display: flex;
align-items: center;
justify-content: right;
font-size: 15pt;
padding: 30pt 30pt;
}
body > nav > a {
margin: 0 20pt;
}
@media (max-width: 768px) {
body > header {
text-align: center;
}
body > header > img {
max-width: 100%;
width: auto;
height: auto;
}
body > nav {
justify-content: center;
font-size: 25pt;
}
}
body > hero {
grid-area: hero;
display: grid;
align-items: center;
column-gap: 40pt;
padding: 40px;
}
body > main {
grid-area: main;
display: grid;
align-items: center;
column-gap: 40pt;
padding: 40px;
}
body > #about {
background-color: #0e305a;
grid-area: about;
display: flex;
flex-direction: column;
align-items: center;
line-height: 18pt;
}
body > footer {
background-color: #2b496f;
grid-area: foot;
display: flex;
justify-content: center;
align-items: center;
color: #8c9dbb;
font-size: 11pt;
}
body > footer > div > #reduced {
display: none;
}
@media (max-width: 768px) {
body > footer {
padding: 10pt;
font-size: 20pt;
}
}
/* Buttons */
button {
color: #0f1934;
background-color: #f9f9f9;
font: bold 16px "Source Code Pro", monospace;
text-align: center;
text-transform: uppercase;
border: none;
border-radius: 4px;
padding: 9px 19px;
border: 1px solid #f9f9f9;
transition: 0.15s;
}
button:hover {
color: #f9f9f9;
background-color: #0f1934;
}
/* Links */
a {
color: #b9d3e8;
font-weight: bold;
text-decoration: none;
}
a:hover {
color: white;
}
a:active {
color: #cecece;
}
div#socialold {
display: none;
}
/* Blog */
figure.image {
text-align: center;
}
img.heading {
max-width: 100%;
width: auto;
height: auto;
}
img.image {
max-width: 100%;
width: auto;
height: auto;
}
div.imagecaption {
display: inline;
}
hr {
border-color: #808080;
width: 100%;
}
span.emoji {
font-family: Tweemoji Mozilla; /* work around Windows' lack of flags where supported (Firefox) */
}
div.scroll {
max-height: 500px;
padding-right: 1px; /* make border less ugly on Chrome on Windows */
overflow-y: scroll;
}
@media (max-width: 768px) {
div.scroll {
max-width: 100vh-60pt;
overflow-x: scroll;
}
}
table {
border: 1px solid #808080;
}
tr:nth-child(odd) {
background: #1c293a;
}
th, td {
border: 1px solid #808080;
padding: 5px;
}
div.scroll > table > thead > tr > th {
position: sticky;
top: 0;
background: #1c293a;
}
div.td2nowrap > table > tbody > tr > td:nth-child(2) {
white-space: nowrap;
}
code {
font-size: 11pt;
background: #404040;
border-radius: 3pt;
padding-left: 3pt;
padding-right: 3pt;
}