mirror of
https://github.com/MaciejkaG/statki.git
synced 2024-11-30 05:22:55 +01:00
425fdc621a
- Fixed leaving a lobby - Improved CSS compatibility/clarity - Optimised game finishing
184 lines
3.2 KiB
CSS
184 lines
3.2 KiB
CSS
.container {
|
|
display: none;
|
|
transition: opacity 0.175s;
|
|
}
|
|
|
|
@keyframes OutAnim {
|
|
from {transform: translateY(0)}
|
|
to {transform: translateY(5%);}
|
|
}
|
|
|
|
@keyframes InAnim {
|
|
from {transform: translateY(-5%)}
|
|
to {transform: translateY(0%);}
|
|
}
|
|
|
|
.bshipstoast {
|
|
background: rgba(0, 0, 0, 0.6);
|
|
backdrop-filter: blur(15px);
|
|
color: white;
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 15px;
|
|
border: solid 2px white;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.header {
|
|
text-align: center;
|
|
}
|
|
|
|
/* index */
|
|
#mainMenuView .modes {
|
|
display: flex;
|
|
gap: 2rem;
|
|
}
|
|
|
|
#mainMenuView .modes div {
|
|
height: 10rem;
|
|
width: 10rem;
|
|
background-color: black;
|
|
border: solid 1px white;
|
|
border-radius: 15px;
|
|
user-select: none;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
#mainMenuView .modes div:hover {
|
|
background-color: white;
|
|
color: black;
|
|
}
|
|
|
|
/* PvP/index */
|
|
#pvpMenuView .modes {
|
|
display: flex;
|
|
gap: 2rem;
|
|
}
|
|
|
|
#pvpMenuView .modes div {
|
|
height: 10rem;
|
|
width: 10rem;
|
|
background-color: black;
|
|
border: solid 1px white;
|
|
border-radius: 15px;
|
|
user-select: none;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
#pvpMenuView .modes div:hover {
|
|
background-color: white;
|
|
color: black;
|
|
}
|
|
|
|
/* PvP/create */
|
|
#pvpCreateView .modes {
|
|
display: flex;
|
|
gap: 2rem;
|
|
}
|
|
|
|
#pvpCreateView .modes div {
|
|
height: 17rem;
|
|
width: 15rem;
|
|
background-color: black;
|
|
border: solid 1px white;
|
|
border-radius: 15px;
|
|
user-select: none;
|
|
padding: 1rem 3rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
#pvpCreateView input, #pvpCreateView button {
|
|
background-color: black;
|
|
color: white;
|
|
border-radius: 15px;
|
|
border: 1px solid white;
|
|
font-size: 1.5rem;
|
|
text-align: center;
|
|
padding: 0.5rem 2rem;
|
|
outline: none;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
#pvpCreateView button {
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
#pvpCreateView button:hover {
|
|
background-color: white;
|
|
color: black;
|
|
}
|
|
|
|
/* PvP/join */
|
|
#pvpJoinView .modes {
|
|
display: flex;
|
|
gap: 2rem;
|
|
}
|
|
|
|
#pvpJoinView .modes div {
|
|
height: 7rem;
|
|
width: 15rem;
|
|
background-color: black;
|
|
border: solid 1px white;
|
|
border-radius: 15px;
|
|
user-select: none;
|
|
padding: 2rem 3rem;
|
|
}
|
|
|
|
#pvpJoinView form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2rem;
|
|
}
|
|
|
|
#pvpJoinView form input {
|
|
background-color: black;
|
|
color: white;
|
|
border-radius: 15px;
|
|
border: 1px solid white;
|
|
font-size: 1.5rem;
|
|
text-align: center;
|
|
padding: 0.5rem 2rem;
|
|
outline: none;
|
|
}
|
|
|
|
#pvpJoinView form input[type=submit] {
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
#pvpJoinView form input[type=submit]:hover {
|
|
background-color: white;
|
|
color: black;
|
|
}
|
|
|
|
/* Preparation */
|
|
#preparingGame .modes {
|
|
display: flex;
|
|
gap: 2rem;
|
|
}
|
|
|
|
#preparingGame .modes div {
|
|
height: 13rem;
|
|
width: 11rem;
|
|
background-color: black;
|
|
border: solid 1px white;
|
|
border-radius: 15px;
|
|
user-select: none;
|
|
padding: 1rem 3rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
#preparingGame .modes div * {
|
|
margin: 0;
|
|
width: 100%;
|
|
} |