mirror of
https://github.com/86Box/86box.github.io.git
synced 2026-02-22 09:35:35 -07:00
274 lines
4.6 KiB
CSS
274 lines
4.6 KiB
CSS
/* Global Defaults */
|
|
html {
|
|
color: #f9f9f9;
|
|
font-family: "Source Code Pro", "Courier New", "Courier", 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;*/ /* fancy but lots of CPU usage! */
|
|
}
|
|
@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 > hero {
|
|
padding: 30px;
|
|
}
|
|
body > main {
|
|
padding: 30px;
|
|
}
|
|
body > footer {
|
|
padding: 50pt;
|
|
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 */
|
|
p, ul, ol {
|
|
margin: 0.65em 0;
|
|
}
|
|
sup {
|
|
font-size: x-small;
|
|
}
|
|
sup > a.footnote::before {
|
|
content: "[";
|
|
margin-left: 1pt;
|
|
}
|
|
sup > a.footnote::after {
|
|
content: "]";
|
|
}
|
|
a.reversefootnote {
|
|
font-size: smaller;
|
|
}
|
|
div.image, figure {
|
|
margin-top: 1em;
|
|
margin-bottom: 1em;
|
|
margin-left: 0px;
|
|
margin-right: 0px;
|
|
text-align: center;
|
|
}
|
|
img.heading {
|
|
max-width: 100%;
|
|
width: auto;
|
|
height: auto;
|
|
}
|
|
img.image {
|
|
max-width: 100%;
|
|
width: auto;
|
|
height: auto;
|
|
}
|
|
.image-caption > p {
|
|
margin-top: 0.5em;
|
|
margin-bottom: 0px;
|
|
}
|
|
hr {
|
|
border-color: #808080;
|
|
width: 100%;
|
|
}
|
|
h1.blogpost, h2, h3 {
|
|
margin-bottom: 0.5em;
|
|
}
|
|
h2.bloglist {
|
|
margin: 0.5em 0.33em 0 0;
|
|
margin-bottom: 0.33em;
|
|
}
|
|
p.blogspacer {
|
|
margin-bottom: 0.5em;
|
|
}
|
|
span.emoji {
|
|
font-family: Twemoji Mozilla, /* try to work around Windows' lack of flags if any better emoji */
|
|
EmojiOne, /* fonts are installed and the browser supports them (not Chrome */
|
|
Twitter Color Emoji; /* as of writing; Firefox provides and uses Twemoji Mozilla) */
|
|
}
|
|
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;
|
|
}
|
|
tr:hover {
|
|
background: #202040;
|
|
}
|
|
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;
|
|
}
|
|
div.youtube {
|
|
position: relative;
|
|
overflow: hidden;
|
|
max-width: 640px;
|
|
margin: 0 auto;
|
|
aspect-ratio: 16/9;
|
|
}
|
|
iframe {
|
|
display: block;
|
|
border: none;
|
|
}
|
|
iframe.youtube {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|