Files
n-gon-improved/style.css
2019-12-03 06:09:58 -08:00

360 lines
5.1 KiB
CSS

body {
font-family: "Helvetica", "Arial", sans-serif;
margin: 0;
/* overflow: hidden; */
background-color: #fff;
user-select: none;
/*cursor: crosshair;*/
}
canvas {
position: absolute;
top: 0;
left: 0;
z-index: 0;
}
#splash {
user-select: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2;
}
*:focus {
outline: none;
}
table {
border-collapse: collapse;
/* border: 1px solid #eee; */
width: 360px;
/* background-color: #ddd; */
}
th {
text-align: left;
}
summary {
font-size: 1.2em;
}
#build-button {
position: sticky;
bottom: 0px;
right: 1px;
z-index: 12;
font-size: 1.3em;
}
#build-grid {
padding: 10px;
margin: 0px;
border: 0px;
/* border-radius: 8px; */
background-color: #b6bfca;
/* #b6bfca; */
display: none;
/* display: grid; */
grid-template-columns: repeat(auto-fit, minmax(292px, 1fr));
grid-auto-rows: minmax(auto, auto);
grid-gap: 15px;
position: relative;
bottom: 0px;
/* left: 0px; */
z-index: 12;
font-size: 1.3em;
}
.build-grid-module {
/* box-shadow: 0px 1px 4px #234; */
padding: 7px;
/* margin: 4px; */
line-height: 150%;
border-radius: 6px;
background: #fff;
font-size: 0.65em;
/* display: flex; */
}
.build-grid-module:hover {
background-color: #fff;
}
.gun-module {
background: #d5dde5;
}
.field-module {
background: #bde;
}
.mod-module {
background: #fdf;
}
/* #build {
position: absolute;
bottom: 0px;
right: 1px;
z-index: 12;
font-size: 1.3em;
} */
#controls {
position: absolute;
bottom: 0px;
left: 1px;
z-index: 12;
font-size: 1.3em;
/* background-color: #ccc; */
/* border-radius: 5px; */
}
#details-div {
padding: 10px;
border-radius: 8px;
background-color: #ddd;
}
#dmg {
position: absolute;
z-index: 2;
width: 100%;
height: 100%;
display: none;
background-color: #f67;
opacity: 0;
transition: opacity 1s;
}
#health-bg {
position: absolute;
top: 15px;
left: 15px;
height: 20px;
width: 300px;
background-color: #000;
opacity: 0.1;
z-index: 1;
pointer-events: none;
display: none;
}
#health {
position: absolute;
top: 15px;
left: 15px;
height: 20px;
width: 0px;
transition: width 1s ease-out;
opacity: 0.6;
z-index: 2;
pointer-events: none;
background-color: #f00;
}
.low-health {
animation: blink 250ms infinite alternate;
}
@keyframes blink {
from {
opacity: 0.9;
}
to {
opacity: 0.2;
}
}
#fade-out {
position: absolute;
z-index: 2;
width: 100%;
height: 100%;
background-color: #fff;
opacity: 1;
transition: opacity 3s;
pointer-events: none;
}
#guns {
position: absolute;
top: 40px;
left: 15px;
z-index: 2;
font-size: 23px;
color: #111;
background-color: rgba(255, 255, 255, 0.4);
user-select: none;
pointer-events: none;
padding: 0px 5px 0px 5px;
border-radius: 5px;
/*border: 2px solid rgba(0, 0, 0, 0.4);*/
}
#field {
position: absolute;
top: 15px;
right: 15px;
z-index: 2;
font-size: 23px;
color: #000;
text-align: right;
opacity: 0.7;
line-height: 140%;
background-color: rgba(190, 210, 245, 0.25);
user-select: none;
pointer-events: none;
padding: 0px 5px 0px 5px;
border-radius: 5px;
/*border: 2px solid rgba(0, 0, 0, 0.4);*/
}
#mods {
position: absolute;
top: 60px;
right: 15px;
z-index: 2;
font-size: 20px;
color: #000;
text-align: right;
opacity: 0.35;
line-height: 140%;
background-color: rgba(255, 255, 255, 0.4);
user-select: none;
pointer-events: none;
padding: 0px 5px 0px 5px;
border-radius: 5px;
/*border: 2px solid rgba(0, 0, 0, 0.4);*/
}
#text-log {
/* position: absolute;
top: 20px;
left: 0;
width: 100%; */
z-index: 2;
position: absolute;
bottom: 20px;
left: 20px;
/* left: 50%; */
/* transform: translate(-50%, 0); */
padding: 10px;
border-radius: 10px;
/* text-align: center; */
line-height: 150%;
font-size: 1.25em;
color: #000;
background-color: rgba(255, 255, 255, 0.23);
opacity: 0;
transition: opacity 0.5s;
pointer-events: none;
user-select: none;
}
em {
opacity: 0.7;
}
.mouse-icon {
margin-bottom: -20px;
}
.color-f {
color: #0cf;
letter-spacing: 1px;
}
.color-d {
color: #f03;
letter-spacing: 1px;
}
.color-h {
color: #0c8;
letter-spacing: 1px;
}
.color-e {
color: #e50;
letter-spacing: 1px;
}
.color-s {
color: #066;
font-weight: 900;
letter-spacing: 1px;
}
.faded {
opacity: 0.7;
font-size: 90%;
}
.circle {
width: 20px;
height: 20px;
border-radius: 50%;
display: inline-block;
margin-bottom: -2px;
}
.circle-grid {
width: 20px;
height: 20px;
border-radius: 50%;
display: inline-block;
margin-bottom: -4px;
}
.field {
background: #0cf;
}
.mod {
background: #96e;
}
.gun {
background: #149;
}
.heal {
background: #0d9;
}
.box {
padding: 3px 8px 3px 8px;
border: 2px solid #444;
border-radius: 4px;
background-color: rgba(255, 255, 255, 0.5);
}
.wrapper {
display: grid;
grid-template-columns: 360px 10px;
align-self: center;
justify-content: center;
}
.grid-box {
align-self: center;
justify-self: center;
}
.right {
text-align: right;
}