planet-wars/backend/static/style/mapbuilder.css
2020-04-10 13:48:31 +02:00

274 lines
No EOL
4.1 KiB
CSS

.content {
height: 100%;
width: 100%;
display: flex;
justify-content: center;
background: black;
color: #ff7f00;
line-height: 1.5rem;
overflow: hidden;
align-items: center;
}
.hidden {
display: none;
}
.grid {
width: 85vh;
height: 85vh;
margin: auto;
display: flex;
flex-wrap: wrap;
}
.controls {
padding-left: 3rem;
display: flex;
flex-direction: column;
}
.boxed {
display: flex;
flex-direction: column;
margin-top: 50px;
}
.row {
width: 100%;
height: 4.75%;
display: flex;
flex-wrap: wrap;
}
.row:nth-child(even) {
position: relative;
margin-left: 2.5%;
margin-right: -2.5%;
}
.row:nth-child(even) .square:nth-child(even) {
opacity: 0.9;
}
.row:nth-child(even) .square:nth-child(odd) {
opacity: 0.8;
}
.row:nth-child(odd) .square:nth-child(even) {
opacity: 0.7;
}
.row:nth-child(odd) .square:nth-child(odd) {
opacity: 1;
}
.square {
clip-path: polygon( 50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
background: #804000;
width: calc(4.75% - 2px);
height: 130%;
}
.square:hover {
filter: brightness(80%);
}
/* Customize the label (the container) */
.colourButtonContainer {
position: relative;
padding-left: 35px;
}
/* Hide the browser's default radio button */
.colourButtonContainer input {
opacity: 0;
height: 0;
width: 0;
margin: 1rem 0rem;
}
/* Create a custom radio button */
.colourButtonCheckmark {
position: absolute;
top: 0;
left: 0;
height: 25px;
width: 25px;
}
.colourButton_gray {
background-color: #808080;
}
.colourButton_blue {
background-color: #FF8000;
}
.colourButton_cyan {
background-color: #0080ff;
}
.colourButton_green {
background-color: #FF6693;
}
.colourButton_yellow {
background-color: #3fcb55;
}
.colourButton_orange {
background-color: #cbc33f;
}
.colourButton_red {
background-color: #cf40e9;
}
.colourButton_pink {
background-color: #FF3F0D;
}
.colourButton_purple {
background-color: #1beef0;
}
.planet_gray {
background-color: #808080;
}
.planet_blue {
background-color: #FF8000;
}
.planet_cyan {
background-color: #0080ff;
}
.planet_green {
background-color: #FF6693;
}
.planet_yellow {
background-color: #3fcb55;
}
.planet_orange {
background-color: #cbc33f;
}
.planet_red {
background-color: #cf40e9;
}
.planet_pink {
background-color: #FF3F0D;
}
.planet_purple {
background-color: #1beef0;
}
/* On mouse-over, add a gray background color */
.colourButtonContainer:hover input~.colourButtonCheckmark {
opacity: 0.7;
}
/* When the radio button is checked, add a blue background */
.colourButtonContainer input:checked~.colourButtonCheckmark {
border: 1px solid blue;
}
/* Create the indicator (the dot/circle - hidden when not checked) */
.colourButtonCheckmark:after {
content: "";
position: absolute;
display: none;
}
/* Show the indicator (dot/circle) when checked */
.colourButtonContainer input:checked~.colourButtonCheckmark:after {
display: block;
}
/* Style the indicator (dot/circle) */
.colourButtonContainer .colourButtonCheckmark:after {
top: 9px;
left: 9px;
width: 8px;
height: 8px;
border-radius: 50%;
background: white;
}
label {
font-size: 1.2rem;
}
input,
textarea {
border: 1px solid #804000;
color: #804000;
padding: 0.5rem;
margin: 0.5rem 0;
background: black;
font-size: 0.8rem;
}
.input_container {
display: flex;
width: 100%;
align-items: center;
}
.input_container label {
width: 140px;
font-size: normal;
}
.input_container input {
width: 100%;
font-size: small;
}
.output {
height: 100%;
margin-bottom: 20px;
}
button {
background-color: #E67300;
/* Green */
border: none;
color: black;
padding: 10px;
margin: 5px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
flex-grow: 1;
}
.buttons {
display: flex;
flex-direction: row;
width: 100%;
justify-content: center;
}