planet-wars/backend/static/style/style.css

150 lines
2.1 KiB
CSS
Raw Normal View History

2020-03-26 20:25:33 +01:00
html,
body {
margin: 0;
padding: 0;
2020-04-07 13:51:35 +02:00
font-family: sans-serif;
2020-03-26 20:25:33 +01:00
}
2020-03-25 22:14:26 +01:00
.small {
font-size: 2px;
2020-03-26 20:25:33 +01:00
}
.main {
display: flex;
width: 100%;
height: 100%;
}
2020-03-31 11:48:35 +02:00
.refresh {
position: absolute;
top: 5px;
right: 25px;
width: 40px;
height: 40px;
background-color: #ff7f00;
mask-image: url("refresh.svg");
-webkit-mask-image: url("refresh.svg");
animation: spin 2s linear infinite;
animation-play-state: paused;
2020-04-01 20:49:50 +02:00
z-index: 5;
2020-03-31 11:48:35 +02:00
}
.refresh:hover {
cursor: pointer;
animation-play-state: running;
}
@keyframes spin {
2020-04-01 20:49:50 +02:00
100% {
transform: rotate(1turn);
}
2020-03-31 11:48:35 +02:00
}
.lobby_wrapper {
2020-03-31 11:57:31 +02:00
flex-grow: 1;
2020-04-01 20:49:50 +02:00
position: relative;
2020-04-05 20:34:40 +02:00
height: 100%;
2020-03-31 11:48:35 +02:00
}
2020-03-26 20:25:33 +01:00
.lobby {
flex-grow: 1;
2020-03-28 19:07:55 +01:00
display: flex;
2020-03-31 11:48:35 +02:00
flex-wrap: wrap;
2020-03-28 19:07:55 +01:00
align-self: flex-start;
2020-04-05 20:34:40 +02:00
overflow-y: auto;
2020-04-01 20:49:50 +02:00
justify-content: center;
2020-04-05 20:34:40 +02:00
max-height: 100%;
2020-03-26 20:25:33 +01:00
}
.input_container {
display: flex;
margin: auto;
width: 90%;
padding: 10px;
}
.input_container label {
font-size: normal;
width: 30%;
}
.input_container input {
font-size: small;
width: 70%;
}
.number label {
width: 60%;
}
.number input {
width: 40%;
text-align: right;
}
.map_select {
2020-04-05 20:34:40 +02:00
overflow-y: auto;
2020-03-26 20:25:33 +01:00
flex-shrink: 5;
width: 75%;
height: 100%;
}
.map {
padding: 5px;
2020-04-07 13:51:35 +02:00
background-color: antiquewhite;
2020-03-26 20:25:33 +01:00
color: black;
}
.selected {
background-color: #ff7f00;
}
.map:hover {
filter: brightness(80%);
}
.creator {
background-color: #333;
display: flex;
flex-direction: column;
2020-03-27 10:31:56 +01:00
height: 100%;
2020-03-26 20:25:33 +01:00
min-width: 300px;
/* width: 25%; */
justify-content: space-between;
align-items: center;
2020-04-07 13:51:35 +02:00
color: antiquewhite;
2020-03-26 20:25:33 +01:00
}
.creator h1 {
text-align: center;
margin: 0;
}
.creator button {
margin-bottom: 10px;
width: 80%;
padding: 5px;
}
#map_holder {
width: 100%;
height: 300px;
background-color: #111;
}
svg {
left: 0;
top: 0;
width: 100%;
height: 100%;
2020-03-28 19:07:55 +01:00
}
.game_state {
background-color: #333;
display: flex;
max-width: 80%;
width: 500px;
margin: 20px auto;
justify-content: space-between;
padding: 20px;
2020-04-01 20:49:50 +02:00
}