410 lines
6.4 KiB
CSS
410 lines
6.4 KiB
CSS
body {
|
|
font-family: "Helvetica", "Arial", sans-serif;
|
|
margin: 0;
|
|
/* overflow: hidden; */
|
|
background-color: #fff;
|
|
user-select: none;
|
|
cursor: auto;
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
.SVG-button {
|
|
border: 2px #333 solid;
|
|
border-radius: 9px;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.SVG-button:hover {
|
|
background-color: #efeff5;
|
|
}
|
|
|
|
#build-button {
|
|
position: absolute;
|
|
top: 3px;
|
|
right: 3px;
|
|
z-index: 12;
|
|
}
|
|
|
|
#choose-grid {
|
|
padding: 10px;
|
|
margin: 0px;
|
|
border-radius: 7px;
|
|
position: absolute;
|
|
bottom: 0px;
|
|
left: 0px;
|
|
z-index: 12;
|
|
background-color: #444;
|
|
/* background-color: rgba(68, 68, 68, 0.5); */
|
|
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
|
|
grid-auto-rows: minmax(auto, auto);
|
|
grid-gap: 10px;
|
|
z-index: 12;
|
|
font-size: 1.3em;
|
|
cursor: auto;
|
|
}
|
|
|
|
.choose-grid-module {
|
|
/* box-shadow: 0px 1px 4px #234; */
|
|
padding: 10px;
|
|
/* margin: 4px; */
|
|
line-height: 170%;
|
|
border-radius: 6px;
|
|
background-color: #fff;
|
|
/* background-color: rgba(255, 255, 255, 0.5); */
|
|
font-size: 0.8em;
|
|
/* display: flex; */
|
|
}
|
|
|
|
.choose-grid-module:hover {
|
|
background-color: #efeff5;
|
|
}
|
|
|
|
#build-grid {
|
|
padding: 16px;
|
|
margin: 0px;
|
|
border: 0px;
|
|
/* border-radius: 8px; */
|
|
background-color: #c4ccd8;
|
|
/* #b6bfca; */
|
|
|
|
display: none;
|
|
/* display: grid; */
|
|
grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
|
|
grid-auto-rows: minmax(auto, auto);
|
|
grid-gap: 16px;
|
|
|
|
position: relative;
|
|
bottom: 0px;
|
|
/* left: 0px; */
|
|
z-index: 12;
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
.build-grid-module {
|
|
/* box-shadow: 0px 1px 4px #234; */
|
|
padding: 10px;
|
|
/* margin: 4px; */
|
|
line-height: 170%;
|
|
border-radius: 6px;
|
|
background: #fff;
|
|
font-size: 0.65em;
|
|
/* display: flex; */
|
|
}
|
|
|
|
.grid-title {
|
|
padding-bottom: 6px;
|
|
font-size: 1.3em;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.build-grid-module:hover {
|
|
background-color: #efeff5;
|
|
}
|
|
|
|
.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;
|
|
} */
|
|
#settings {
|
|
position: absolute;
|
|
bottom: 0px;
|
|
right: 1px;
|
|
z-index: 12;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
#controls {
|
|
position: absolute;
|
|
bottom: 0px;
|
|
left: 1px;
|
|
z-index: 12;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
#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: #0ad;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.color-d {
|
|
color: #f03;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.color-h {
|
|
color: #0b7;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.color-e {
|
|
color: #d60;
|
|
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: 23px;
|
|
height: 23px;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
margin-bottom: -5px;
|
|
}
|
|
|
|
.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;
|
|
} |