comfitu.re/style.css

181 lines
2.4 KiB
CSS

@font-face {
font-family: IBMVGA8;
src: url("fonts/Web437_IBM_VGA_8x16.woff");
}
html {
margin:0;
padding:0;
}
body {
margin:0;
padding:0;
}
.hide {
display: none;
}
.background {
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background-image: url("backgrounds/4.gif");
background-position: center center;
background-size: cover;
background-attachment: fixed;
image-rendering: crisp-edges;
}
.container {
position:absolute;
box-sizing: border-box;
height: 100%;
width: 100%;
padding:8px;
margin:0;
background-color: rgba(45, 40, 35, 0.95);
color: rgb(210, 172, 97);
font-family: IBMVGA8, monospace;
font-size: 16px;
line-height: 16px;
border: 2px solid rgb(0, 0, 0);
box-shadow: 5px 5px 0 rgb(0, 0, 0);
/*box-shadow: 0 0 10px rgba(0, 0, 0, 1);*/
}
header, main, footer {
position: relative;
margin:0;
padding:0;
width: 100%;
box-sizing: border-box;
}
header {
height: 160px;
overflow: hidden;
}
main {
height: calc(100% - 224px);
overflow-y: auto;
overflow-x: hidden;
margin: 16px 0;
padding: 0 16px;
}
footer {
height: 32px;
overflow: hidden;
}
a {
color: rgb(213, 209, 206);
text-decoration: none;
}
a:before {
content: '[';
}
a:after {
content: ']';
}
a:hover, a:active {
background-color: rgb(234, 231, 227);
color: rgba(62, 51, 48, 0.95);
}
a.active {
text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
font-size: 16px;
font-weight: normal;
padding: 0;
margin: 0 0 16px 0;
text-decoration: underline;
}
h1:before {
content: '# ';
}
h2:before {
content: '## ';
}
h3:before {
content: '### ';
}
h4:before {
content: '#### ';
}
h5:before {
content: '##### ';
}
h6:before {
content: '###### ';
}
p {
padding:0;
margin: 0 0 16px 0;
}
pre {
margin:0;
padding:0;
font-family: IBMVGA8, monospace;
}
#ascii {
text-align: center;
}
#ascii pre {
display: inline-block;
text-align: left;
}
.content p:last-child {
margin:0;
}
@media only screen and (min-width: 864px) {
.container {
position:absolute;
left: 32px;
bottom: 32px;
width: 800px;
height: 596px;
padding:16px;
margin:auto;
}
header {
height: 96px;
}
main {
height: 416px;
}
footer {
height: 16px;
}
}