srd/public/style.css

313 lines
5.0 KiB
CSS

@import url(https://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,600,700);
:root {
--menu-background: #322;
--menu-foreground: #BE995F;
--menu-background-hover: pink;
--menu-foreground-hover: blue;
--menu-background-alt: pink;
--menu-foreground-alt: blue;
--menu-background-alt-hover: pink;
--menu-foreground-alt-hover: blue;
--body-background: #111;
--body-foreground: #fcc;
--toc-background: #000;
--toc-foreground: #faa;
--breadcrumbs-background: #000;
--breadcrumbs-foreground: #faa;
--footer-background: #000;
--footer-foreground: #fff;
--anchor: #a06666;
--anchor-hover: #BE9999;
--cell: #390d0d;
--cell-alt: #2b0808;
}
* {
box-sizing: border-box;
}
html, body {
height: 100%;
margin: 0;
}
body {
font-size: 16px;
color: var(--body-foreground);
font-family: "Roboto Condensed", "Lucida Grande", sans-serif;
line-height: 1.6;
height: 100%;
max-height: 100%;
background-color: black;
color: var(--body-background);
display: flex;
flex-direction: column;
}
#location {
background-color: var(--breadcrumbs-background);
color: var(--breadcrumbs-foreground);
padding: 0 1em;
}
#menu {
flex: 1;
padding: 1em;
background-color: var(--menu-background);
}
#menu a, #menu a:visited {
color: var(--menu-foreground);
}
#menu img {
max-width: 100%;
}
.menu-toggle {
cursor: pointer;
margin-left: -1.25em;
margin-right: 0.25em;
color: var(--menu-foreground);
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.menu-toggle.open {
}
.menu-toggle.closed {
}
#menu a {
display: inline-block;
width: 100%;
}
#menu li:nth-child(even) {
background-color: #181818;
}
#menu li:hover {
background-color: #333;
}
#menu li:nth-child(even):hover {
background-color: #282828;
}
#table-of-contents {
flex: 1;
background-color: var(--toc-background);
color: var(--toc-foreground);
padding: 1em;
overflow: auto;
}
#content {
flex: 6;
overflow: auto;
background-color: var(--body-background);
color: var(--body-foreground);
}
#page {
padding: 0 2em;
}
#container {
display: flex;
overflow: auto;
flex: 1;
flex-direction: row;
justify-content: space-around;
overflow: hidden;
height: 100%;
}
#content {
font-size: 100%;
max-width: 75%;
height: 100%;
margin: auto;
}
#footer {
font-size: 75%;
max-width: 75%;
margin: auto;
padding: 0.5em 1em;
background: var(--footer-background);
color: var(--footer-foreground);
}
p {
max-width: 40em;
padding: 0 1em;
}
p img, li img {
height: 2em;
vertical-align: middle;
}
h2 {
border-bottom: 1px solid #dde;
}
h3 {
border-bottom: 1px solid #dfdfef;
}
a {
transition: .05s ease-in-out;
}
a, a:visited {
color: var(--anchor);
text-decoration: none;
font-weight: 600;
}
a:hover {
color: var(--anchor-hover);
}
table {
min-width: 40em;
max-width: 100%;
overflow: auto;
}
th {
color:#D5DDE5;;
background: black;
font-size: 90%;
font-weight: 100;
padding: 6px 12px;
text-align: left;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
vertical-align: middle;
}
th:first-child {
border-top-left-radius:3px;
}
th:last-child {
border-top-right-radius:3px;
border-right:none;
}
tr {
border: none;
color:#666B85;
}
tr:first-child {
border-top:none;
}
tr:last-child {
border-bottom:none;
}
tr:nth-child(odd) td {
background: var(--cell);
}
tr:last-child td:first-child {
border-bottom-left-radius:3px;
}
tr:last-child td:last-child {
border-bottom-right-radius:3px;
}
td {
background:#FFFFFF;
padding: 0.5em;
background: var(--cell-alt);
color: var(--body-foreground);
text-align:left;
vertical-align:middle;
font-size: 85%;
border-right: 2px solid black;
}
td:last-child {
border-right: 0px;
}
#table-of-contents {
}
.indent1 {
margin-left: 0em;
}
.indent2 {
margin-left: 1em;
}
.indent3 {
margin-left: 2em;
}
.indent4 {
margin-left: 3em;
}
#menu ul, #menu li {
padding: 0;
list-style: none;
}
#menu li {
padding-left: 1em;
}
.die {
width: 1em;
height: 2ex;
}
@media screen and (min-resolution: 200dpi) {
body {
font-size: 5vw;
width: 100%;
}
#content {
font-size: 100%;
width: 100%;
max-width: 100%;
}
#footer {
font-size: 50%;
width: 100%;
max-width: 100%;
}
h1 {
font-size: 200%;
}
h2 {
font-size: 175%;
}
h3 {
font-size: 150%;
}
th {
font-size: 90%;
}
td {
font-size: 75%;
}
}
@media screen and (min-resolution: 200dpi) and (orientation: landscape) {
body {
font-size: 2vw;
}
}
@media screen and (orientation: portrait) {
#container {
display: block;
overflow: auto;
}
#menu {
}
#content {
overflow: initial;
background-color: var(--toc-background);
color: var(--toc-foreground);
}
#table-of-contents {
display: none;
}
}
.Table__Entry__JSON > a {
display: inline-block;
width: 100%;
height: 100%;
cursor: copy;
text-align: center;
}