215 lines
3.4 KiB
CSS
215 lines
3.4 KiB
CSS
:root {
|
|
--genwidth: 850px ;
|
|
--navwidth: 175px ;
|
|
--fg: #ddd ;
|
|
--altfg: #ccc ;
|
|
--fgemph: white ;
|
|
--bg: #111 ;
|
|
--altbg: #222 ;
|
|
--emph: #333 ;
|
|
--bordercolor: #555 ;
|
|
--limish: #0e0 ;
|
|
--bg: rgba(0,0,0,0.4) ;
|
|
--altbg: rgba(0,0,0,0.4) ;
|
|
}
|
|
@font-face { font-family: courier; src: url('font.woff'); font-display: swap; }
|
|
|
|
body {
|
|
font-family: courier;
|
|
background: linear-gradient(#000040, #000000) fixed ;
|
|
margin-bottom: 100px;
|
|
}
|
|
body h1 {
|
|
color: var(--fg);
|
|
}
|
|
main {
|
|
margin: auto;
|
|
color: var(--fg);
|
|
background: var(--bg);
|
|
padding: 1em;
|
|
border: dashed 1px var(--bordercolor);
|
|
border-radius: 5px;
|
|
}
|
|
nav,footer {
|
|
text-align: center ;
|
|
font-variant: small-caps ;
|
|
clear: both ;
|
|
background: var(--altbg) ;
|
|
border-radius: 5px ;
|
|
margin: auto ;
|
|
border: dashed 1px var(--bordercolor) ;
|
|
max-width: var(--genwidth) ;
|
|
}
|
|
footer {
|
|
color: var(--altfg) ;
|
|
margin-top: 1em ;
|
|
}
|
|
|
|
nav,header {
|
|
max-width: var(--genwidth) ;
|
|
}
|
|
nav li,footer li {
|
|
display: inline-block ;
|
|
list-style: none ;
|
|
background: var(--bg) ;
|
|
border-radius: 10px ;
|
|
padding: .5em ;
|
|
max-width: 7em ;
|
|
}
|
|
|
|
nav ul, footer ul, #taglist {
|
|
padding: 0;
|
|
margin: .5em;
|
|
}
|
|
a {
|
|
color: #36f433;
|
|
text-decoration: none;
|
|
}
|
|
a:hover {
|
|
font-style: italic;
|
|
}
|
|
#partial_header a:hover {
|
|
font-style: normal;
|
|
}
|
|
#partial_header a li:hover {
|
|
font-style: italic;
|
|
}
|
|
dt img {
|
|
max-height: 1em;
|
|
max-width: 1em;
|
|
vertical-align: middle;
|
|
}
|
|
nav li img {
|
|
max-height: 1em;
|
|
max-width: 1em;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
nav a:hover li, footer a:hover li,#tagcloud a:hover li {
|
|
background: steelblue ;
|
|
color: black ;
|
|
box-shadow: 2px 2px cyan ;
|
|
}
|
|
|
|
pre {
|
|
background: #1f252d;
|
|
border: 1px solid var(--limish);
|
|
border-radius: 5px;
|
|
padding: 1em;
|
|
margin: 1em;
|
|
white-space: pre-wrap;
|
|
}
|
|
code {
|
|
background-color: #1f252d;
|
|
color: var(--limish);
|
|
overflow-wrap: break-word;
|
|
}
|
|
.resright {
|
|
display: block;
|
|
margin: auto;
|
|
max-width: 90%;
|
|
max-height: 300px;
|
|
display: none;
|
|
}
|
|
.bar {
|
|
color: greenyellow;
|
|
}
|
|
|
|
tr, td {
|
|
display: block;
|
|
text-align: left;
|
|
float: left;
|
|
max-width: 100%;
|
|
margin: auto;
|
|
}
|
|
td {
|
|
float: none;
|
|
}
|
|
|
|
/* This should be genwidth + (navwidth*2) + padding */
|
|
@media (min-width: 1200px) {
|
|
nav {
|
|
float: left ;
|
|
vertical-align: middle ;
|
|
width: 175px ;
|
|
position: fixed ;
|
|
text-align: left ;
|
|
font-size: large ;
|
|
}
|
|
nav::before {
|
|
content: "Links" ;
|
|
text-align: center ;
|
|
display: block ;
|
|
font-size: large ;
|
|
color: violet ;
|
|
text-decoration: underline ;
|
|
margin-top: .5em ;
|
|
}
|
|
nav li {
|
|
display: block ;
|
|
text-align: center ;
|
|
margin: .5em auto ;
|
|
}
|
|
|
|
}
|
|
|
|
/* store stuff */
|
|
ul.images {
|
|
display: flex;
|
|
flex-direction: row;
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 15em;
|
|
overflow-x: auto;
|
|
|
|
list-style-type: none;
|
|
transition: -webkit-transform 0.25s ease;
|
|
transition: transform 0.25s ease;
|
|
}
|
|
ul.images:hover {
|
|
-webkit-transform: scale(2);
|
|
transform: scale(2);
|
|
}
|
|
ul.images li img {
|
|
flex: 0 0 auto;
|
|
width: auto;
|
|
height: 200px;
|
|
padding: 2.5px;
|
|
}
|
|
|
|
@media (min-width: 55em) {
|
|
.resright, .disappear {
|
|
display: block ;
|
|
float: right;
|
|
padding: 20px ;
|
|
clear: both ;
|
|
max-height: 300px ;
|
|
max-width: 300px ;
|
|
}
|
|
.resmid {
|
|
max-height: 300px ;
|
|
max-width: 300px ;
|
|
}
|
|
main {
|
|
max-width: var(--genwidth) ;
|
|
}
|
|
tr, td {
|
|
display: table-cell;
|
|
}
|
|
td {
|
|
float: none;
|
|
}
|
|
ul.images {
|
|
display: flex;
|
|
flex-direction: row;
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 25em;
|
|
overflow-x: auto;
|
|
|
|
list-style-type: none;
|
|
transition: -webkit-transform 0.25s ease;
|
|
transition: transform 0.25s ease;
|
|
}
|
|
}
|