comfitu.re/style.css

247 lines
4.9 KiB
CSS

@font-face {
font-family: IBMVGA8;
src: url("fonts/Web437_IBM_VGA_8x16.woff");
}
:root {
--fg-color: #e6e1dc;
--bg-color: rgba(43, 43, 43, 0.95);
--border-color: #000000;
--shadow-color: rgba(0, 0, 0, .9);
--accent-1-color: #ffc66d;
--accent-2-color: #a5c261;
--accent-3-color: #6d9cbe;
--font-size: 16px;
}
/* Defaults, Resets */
html, body, div, span, hr, p, ul, ol, blockquote, table, code, pre, h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0;
}
body, h1, h2, h3, h4, h5, h6, pre, code {
font-family: IBMVGA8, monospace;
font-size: var(--font-size);
line-height: var(--font-size);
}
.background, .container, .content {
width: 100vw;
height: 100vh;
box-sizing: border-box;
}
.background, .content {
position: absolute;
}
.container, header, main, footer, .player {
position: relative;
}
/* Structure */
.background {
top:0;
left:0;
background-image: url("backgrounds/a17.gif");
background-position: center center;
background-size: cover;
background-attachment: fixed;
image-rendering: crisp-edges;
}
.container {
max-width: 1920px;
margin: 0 auto;
}
.content {
padding:8px;
display: flex;
flex-direction: column;
overflow: auto;
background-color: var(--bg-color);
color: var(--fg-color);
border: 2px solid var(--border-color);
box-shadow: 8px 8px 0 var(--shadow-color);
}
header, main, footer {
box-sizing: border-box;
width: 100%;
overflow: hidden;
flex: 0 0 auto;
}
main {
margin: 16px 0;
padding: 0 16px;
flex: 1 1 auto;
overflow-y: auto;
overflow-x: hidden;
}
.reader-close {
float: right;
}
/* Content */
a {
color: var(--accent-1-color);
text-decoration: none;
}
a:before { content: '['; }
a:after { content: ']'; }
a:hover, a:active {
background-color: var(--accent-1-color);
color: var(--bg-color);
}
a.active {
text-decoration: underline;
}
b:not(#reader b), strong:not(#reader strong) { font-weight: normal; }
b, strong, blockquote { color: var(--accent-2-color); }
code { font-weight: 400; color: var(--accent-3-color); }
h1, h2, h3, h4, h5, h6, p, ul, ol, table, blockquote, hr {
margin-bottom: 16px;
}
.content-tab p:last-child {
margin-bottom:0;
}
h1, h2, h3, h4, h5, h6 {
font-weight: normal;
text-decoration: underline;
}
h1:not(#reader h1):before { content: '# '; }
h2:not(#reader h2):before { content: '## '; }
h3:not(#reader h3):before { content: '### '; }
h4:not(#reader h4):before { content: '#### '; }
h5:not(#reader h5):before { content: '##### '; }
h6:not(#reader h6):before { content: '###### '; }
mark {
background-color: var(--accent-2-color);
color: var(--bg-color);
}
ul { list-style: none; }
ul li:before { content: '- '; }
ol { list-style: decimal outside; }
img {
max-width: 100%;
max-height: 480px;
}
table {
width: 100%;
border-collapse: collapse;
border: none;
}
table tr td { vertical-align: top; }
table.blog-table tr td:first-child { width: 96px; color: var(--accent-2-color); }
table.blog-table tr td:nth-child(2) { color: var(--accent-3-color); }
table.blog-table tr td:last-child { width: 114px; text-align: right; }
/* Reader Content */
blockquote {
border-left: 4px solid var(--accent-2-color);
padding-left: 1rem;
}
#reader pre {
color: var(--accent-3-color);
border-left: 4px solid var(--accent-3-color);
padding-left: 1rem;
}
hr {
margin: 1rem 0 2rem 0;
border: none;
border-top: 1px solid var(--fg-color);
}
#reader p {
text-align: justify;
margin: 0 0 1.5rem 0
}
#reader i, #reader em {
color: var(--accent-3-color);
}
#reader,
#reader h1, #reader h2, #reader h3,
#reader h4, #reader h5, #reader h6{
font-family: "IBM Plex Mono", monospace;
font-size: .9rem;
line-height: 1.5rem;
font-weight: 500;
}
#reader h1, #reader h2, #reader h3,
#reader h4, #reader h5, #reader h6 {
text-decoration: none;
font-weight: bold;
}
#reader h1 { font-size: 1.5rem; margin: 1.5rem 0; text-align: center; }
#reader h1 + p { text-align: center; text-indent: 0; }
#reader h2 { font-size: 1.1rem; margin: 2rem 0 .9rem 0; }
#reader h3 { font-size: 1rem; margin: 1.5rem 0 .9rem 0; text-indent: 1rem; }
#reader h4 { font-size: 1rem; margin: 1rem 0 .4rem 0; }
#reader h5 { font-size: .9rem; margin: 1rem 0 .4rem 0; }
#reader h6 { font-size: .75rem; margin: 1rem 0 .4rem 0; }
/* Special */
#ascii {
text-align: center;
}
#ascii pre {
display: inline-block;
text-align: left;
}
.hide {
display: none;
}
@media only screen and (min-width: 864px) {
.content {
left: 32px;
bottom: 32px;
width: 800px;
height: 596px;
padding:16px;
transition: height .5s;
}
.content.expand {
height: calc(100% - 64px);
}
#reader {
width: 40rem;
margin-left: auto;
margin-right: auto;
}
}