clrghouz/public/oldschool/css/main.css

415 lines
6.1 KiB
CSS
Raw Normal View History

2021-06-12 15:14:34 +00:00
@font-face {
/* font-family: 'IBM BIOS-2y'; */
font-family: ibmbios2y;
src: url(../font/Web437_IBM_BIOS-2y.woff) format('woff');
font-weight: normal;
font-style: normal;
}
html {
height:100%;
box-sizing:border-box
}
*,
*:before,
*:after {
box-sizing:inherit
}
::-moz-selection {
background-color:#0a0;
color:#000
}
::selection {
background-color:rgba(0,172,0,.99);
color:#000
}
img::-moz-selection {
background-color:#0a0
}
img::selection {
background-color:rgba(0,172,0,.5)
}
a,
a:before,
a:after,
input,
select,
textarea {
transition:color .15s,background-color .15s,border-color .15s,opacity .15s
}
a:link {
text-decoration:none
}
:not(dt)>a:link,
:not(dt)>a:visited {
color:#0aa
}
div p:last-child {
margin-bottom:0
}
body {
background-color: #000;
color: #aaa;
overflow-x: hidden;
overflow-y: scroll;
margin: 0;
line-height: 20px
}
body {
font-family:ibmbios2y,monospace;
font-size:16px
}
body {
position:relative;
padding-bottom:68px;
min-height:100%
}
sup {
color: #530000;
}
sup:before {
content: '[';
}
sup:after {
content: ']';
}
sup:before,
sup:after {
color: #aa0000;
}
#nav {
width: 100%;
position: fixed;
background: #2e2e2e;
height: 3em;
z-index: 4;
box-sizing: content-box
}
#nav-menu {
color:#aaa;
padding:0;
width:inherit;
max-width:1248px;
position:fixed;
z-index:4;
top:0;
left:0;
right:0;
margin-top:0;
margin-bottom:0;
margin-left:auto;
margin-right:auto;
text-align:left;
}
#nav-menu h1 {
width: 216px;
font-size: 1.5em;
font-weight:400;
padding: 0;
color: #fff;
display: inline-block;
text-transform:uppercase;
margin-right: 10px;
margin-left: -50px;
}
#nav-menu ul {
margin:0;
padding:0;
display:inline-block;
text-transform:uppercase;
}
#nav-menu ul li {
display:inline-block;
list-style-type:none;
margin:0;
padding:0
}
#nav-menu ul li a,
#nav-menu ul li a:link,
#nav-menu ul li a:visited {
display:inline-block;
text-decoration:none;
color:#ff5;
padding:0 11px;
margin:7px;
border-top:1px solid #fff;
border-bottom:1px solid #fff;
border-right:2px solid #fff;
border-left:2px solid #fff;
}
#nav-menu ul:after {
padding:8px 0 7px 2px;
display:inline-block;
}
#nav-menu ul li a span {
display:inline-block;
padding:8px 0 7px
}
#nav-menu ul li a:active,
#nav-menu ul li a:hover,
#nav-menu ul li a:focus {
color:#fff;
background-color:#a00;
outline:0
}
#nav-menu ul li a span:before {
content:"["
}
#nav-menu ul li a span:after {
content:"]"
}
#nav-menu ul li a span:before,
#nav-menu ul li a span:after {
color:#c60
}
#nav-menu ul li a:active span:before,
#nav-menu ul li a:hover span:before,
#nav-menu ul li a:active span:after,
#nav-menu ul li a:hover span:after,
#nav-menu ul li a:focus span:before,
#nav-menu ul li a:focus span:after {
color:#aaa
}
a.thispage,
a.thispage:hover {
border-color:#aaa!important;
background-color:transparent!important
}
a.thispage span,
a.thispage:hover span {
color:#c60!important
}
a.thispage span:before,
a.thispage span:after {
color:#a00!important
}
ul#navlist-desktop {
position: absolute;
}
#sidebar {
position:absolute;
left:0;
top:calc(3em + 8px);
height:calc(100vh - 3em + 8px);
width:22ch;
overflow:hidden;
padding-top:.5em;
color:#c60;
background-color:#000;
box-sizing:border-box;
transition:left .1s ease-out
}
#sidebar.x {
width:25ch
}
#sidebar-scroller {
overflow-y:scroll;
padding-right:0;
box-sizing:content-box;
width:100%;
text-align:left;
height:calc(100vh - 3em + 8px)
}
#sidebar dl:last-child {
margin-bottom:2em
}
#sidebar ::-webkit-scrollbar {
display:none
}
#content {
color:#aaa;
max-width:993px;
margin:0 auto;
padding:4em 0 0;
box-sizing:border-box;
overflow:hidden
}
#content * {
vertical-align:top
}
#content a.anchor {
display:block;
position:relative;
top:-4em;
visibility:hidden
}
.with-sidebar {
position:relative;
left:88px;
max-width:1041px!important
}
.with-sidebar.x {
left:112px;
max-width:1017px!important
}
/* MAIN CONTENT HEADERS */
#content h1 {
color: #fff;
font-weight: 400;
margin-top: 5px;
margin-bottom: 10px;
padding-bottom: 10px;
text-shadow: 2px 2px 0 #555;
border-bottom: 2px solid #aaa;
}
#content h2 {
color:#fff;
background-color:#a00;
display:inline-block;
font-size:100%;
font-weight:400;
text-align:center;
padding:9px 8px 7px;
margin:24px auto 40px auto;
box-shadow:8px 9px 0 0 #333
}
#content>h2:first-child {
margin-top:8px
}
#content h3,
#content h4 {
font-size:100%;
font-weight:400;
text-align:left
}
#content h3 {
padding:0 0 7px;
margin:0 0 24px -.3px;
color:#c60;
border-bottom:1px solid #b00
}
#content h4 {
box-sizing:border-box;
margin:0 0 1em -.3px;
color:#b00;
display:inline-block;
padding-right:1ch
}
#content h5 {
color:#c60;
}
#content ul {
margin:0 1ch;
padding-left:1ch;
list-style-type:none
}
#content ul ul {
margin:0;
padding-left:0;
list-style-type:none
}
#content ul.ind {
margin-right:2ch
}
#content ul li {
margin:0 1ch;
text-indent:-3ch;
padding-left:3ch;
display:block
}
#content ul li:before {
content:"\2666\a0\A0";
color:#0a0
}
#content ul ul li::before {
content:"\25CB\A0\A0"!important
}
#content ul li:last-child {
margin-bottom: 16px;
}
dl {
margin:1em -1px 0 1px
}
dt a {
color:#5ff
}
dt a:hover,
dt a:active {
color:#fff;
background-color:#0aa
}
dd {
margin-left:0;
text-align:left
}
dd a::before {
content:"\BB\a0";
color:#a00;
background-color:#000
}
dd a:hover:before,
dd a:active:before {
content:"\25BA\A0";
color:#c60
}
dd a:hover,
dd a:active {
color:#fff!important;
background-color:#0aa
}
p {
margin:0 0 1em;
padding:0;
text-align:left;
word-break:break-word
}
ul {
text-align:left
}
#footer {
position:absolute;
bottom:0;
left:0;
right:0;
text-align:center;
height:48px;
width:100%
}
a#getback,
a#getback:link,
a#getback:visited {
display:inline-block;
text-decoration:none;
color:#0a0;
padding:.5em 1ch;
margin:0 3ch 0 0
}
a#getback:active,
a#getback:hover {
color:#5f5;
background-color:#333
}
a#getback:focus {
color:#5ff;
background-color:#333;
outline:0
}
a#getback:before {
color:#a00;
content:"\25C4\25C4\a0"
}
a#getback:active:before,
a#getback:hover:before {
color:#f55
}
a#getback:focus:before {
color:#fff
}