mirror of https://github.com/dirtbags/tanks.git
209 lines
2.7 KiB
CSS
209 lines
2.7 KiB
CSS
/**** document ****/
|
|
|
|
html {
|
|
background: #222 url(grunge.png) repeat-x;
|
|
}
|
|
|
|
body {
|
|
font-family: sans-serif;
|
|
color: #fff;
|
|
padding: 10px;
|
|
}
|
|
|
|
/**** heading ****/
|
|
|
|
h1:first-child {
|
|
text-transform: lowercase;
|
|
font-size: 1.6em;
|
|
color: #2a2;
|
|
border-bottom: #2a2 solid 2px;
|
|
}
|
|
|
|
/*** left side bar ***/
|
|
|
|
nav {
|
|
position: absolute;
|
|
background: #222;
|
|
opacity: 0.9;
|
|
top: 80px;
|
|
left: 0px;
|
|
padding: 0;
|
|
}
|
|
|
|
nav h2 {
|
|
font-size: 100%;
|
|
border-bottom: 2px solid #444;
|
|
}
|
|
|
|
nav ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
nav li a {
|
|
display: block;
|
|
height: 25px;
|
|
width: 90px;
|
|
padding: 5px;
|
|
margin: 5px;
|
|
background: inherit;
|
|
border-right: 4px solid #444;
|
|
color: #999;
|
|
text-transform: lowercase;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
nav li a:hover {
|
|
color: #f4f4f4;
|
|
background: #333;
|
|
border-right: 4px solid #2a2;
|
|
}
|
|
|
|
nav li .active {
|
|
color: #999;
|
|
background: #333;
|
|
border-right: 4px solid #444;
|
|
}
|
|
|
|
/**** designer ****/
|
|
#upload fieldset {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 2em;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
#upload [name="program"] {
|
|
min-width: 25em;
|
|
min-height: 15em;
|
|
}
|
|
|
|
#upload fieldset fieldset {
|
|
border-color: #666;
|
|
}
|
|
|
|
#preview {
|
|
background: #333;
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
/**** body ****/
|
|
|
|
a img {
|
|
border: 0px;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: #2a2;
|
|
font-weight: bold;
|
|
}
|
|
|
|
a:hover {
|
|
color: #fff;
|
|
background: #2a2;
|
|
font-weight: bold;
|
|
}
|
|
|
|
|
|
h1, h2, h3 {
|
|
background-color: #222a;
|
|
color: #999;
|
|
letter-spacing: -0.05em;
|
|
clear: both;
|
|
}
|
|
|
|
.readme {
|
|
color: #fff;
|
|
background-color: #555;
|
|
margin: 1em;
|
|
}
|
|
|
|
pre {
|
|
color: #fff;
|
|
background-color: #222;
|
|
border: solid #ccc 2px;
|
|
padding: 0.25em;
|
|
}
|
|
|
|
|
|
p {
|
|
line-height: 1.4em;
|
|
margin-bottom: 20px;
|
|
color: #f4f4f4;
|
|
}
|
|
|
|
hr {
|
|
border: 1px solid #444;
|
|
}
|
|
|
|
dt {
|
|
white-space: pre;
|
|
background-color: #333;
|
|
padding: 5px;
|
|
border: 2px solid green;
|
|
border-bottom: none;
|
|
font-weight: bold;
|
|
}
|
|
|
|
dd {
|
|
border: 2px solid green;
|
|
margin: 0px;
|
|
padding: 5px;
|
|
background-color: #282828;
|
|
}
|
|
|
|
|
|
/**** special cases ****/
|
|
|
|
.wide {
|
|
max-width: inherit;
|
|
}
|
|
|
|
.figure {
|
|
margin: 0.5em 1em;
|
|
float: right;
|
|
font-size: small;
|
|
text-align: center;
|
|
caption-side: bottom;
|
|
}
|
|
|
|
.left {
|
|
float: left;
|
|
}
|
|
|
|
.scoreboard {
|
|
background: #222;
|
|
}
|
|
|
|
.scoreboard td {
|
|
height: 400px;
|
|
}
|
|
|
|
#battlefield {
|
|
border: 2px solid green;
|
|
}
|
|
|
|
table#results {
|
|
border-collapse: collapse;
|
|
}
|
|
table#results td {
|
|
padding: 0.4em 1em;
|
|
}
|
|
table#results tr:nth-child(even) {
|
|
background-color: #343;
|
|
}
|
|
|
|
.swatch {
|
|
color: #000000;
|
|
}
|
|
|
|
.ui-slider-tick-mark {
|
|
display: inline-block;
|
|
width: 2px;
|
|
height: 100%;
|
|
position: absolute;
|
|
}
|