statki/public/assets/css/main.css

443 lines
7.7 KiB
CSS
Raw Permalink Normal View History

.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 {
2024-04-11 19:10:45 +02:00
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;
}
2024-03-19 22:33:14 +01:00
nav {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.7rem;
margin: 0.5rem;
font-family: 'Roboto Mono', monospace;
}
nav span {
cursor: pointer;
user-select: none;
padding: 0.2rem;
}
nav span:hover {
text-decoration: underline;
}
.header {
text-align: center;
}
/* index */
#mainMenuView .modes {
display: flex;
2024-03-25 08:39:06 +01:00
flex-wrap: wrap;
justify-content: center;
gap: 2rem;
}
#mainMenuView .modes div {
height: 10rem;
width: 10rem;
background-color: black;
border: solid 1px white;
border-radius: 15px;
2024-03-27 15:51:33 +01:00
padding: 0.5rem 1rem;
user-select: none;
cursor: pointer;
transition: all 0.3s;
}
#mainMenuView .modes div:hover {
background-color: white;
color: black;
}
/* PvP/index */
#pvpMenuView .modes {
display: flex;
2024-03-25 08:39:06 +01:00
flex-wrap: wrap;
justify-content: center;
gap: 2rem;
}
#pvpMenuView .modes div {
height: 10rem;
width: 10rem;
background-color: black;
border: solid 1px white;
border-radius: 15px;
2024-03-27 15:51:33 +01:00
padding: 0.5rem 1rem;
user-select: none;
cursor: pointer;
transition: all 0.3s;
}
#pvpMenuView .modes div:hover {
background-color: white;
color: black;
}
/* PvP/create */
#pvpCreateView .modes {
display: flex;
2024-03-25 08:39:06 +01:00
flex-wrap: wrap;
justify-content: center;
gap: 2rem;
}
#pvpCreateView .modes div {
width: 15rem;
background-color: black;
border: solid 1px white;
border-radius: 15px;
user-select: none;
padding: 2rem 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;
2024-03-25 08:39:06 +01:00
flex-wrap: wrap;
justify-content: center;
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;
2024-03-25 08:39:06 +01:00
flex-wrap: wrap;
justify-content: center;
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%;
2024-03-19 22:33:14 +01:00
}
/* Profile */
#profileView {
display: flex;
flex-direction: column;
2024-03-22 11:47:12 +01:00
align-items: center;
2024-03-19 22:33:14 +01:00
}
#profileView .profile {
display: flex;
margin: 3rem;
flex-direction: row;
2024-03-25 08:39:06 +01:00
flex-wrap: wrap;
2024-03-19 22:33:14 +01:00
align-items: center;
2024-03-22 11:47:12 +01:00
width: 45vw;
justify-content: space-between;
2024-03-25 12:41:02 +01:00
gap: 1rem;
2024-03-22 11:47:12 +01:00
}
#profileView .stats {
display: flex;
gap: 1rem;
width: 60vw;
2024-03-25 08:39:06 +01:00
flex-wrap: wrap;
2024-03-19 22:33:14 +01:00
}
#profileView .matchList {
display: flex;
flex-direction: column;
2024-03-22 11:47:12 +01:00
gap: 2rem;
flex: 2;
}
#profileView .matchList::-webkit-scrollbar {
display: none;
2024-03-19 22:33:14 +01:00
}
2024-03-22 11:47:12 +01:00
#profileView .matchList .match {
background-color: rgba(24, 24, 24, 1);
2024-03-19 22:33:14 +01:00
border-radius: 15px;
cursor: pointer;
2024-03-22 11:47:12 +01:00
padding: 0.7rem;
height: 5rem;
overflow: hidden;
transition: height 0.3s;
2024-03-19 22:33:14 +01:00
}
2024-03-22 11:47:12 +01:00
#profileView .matchList .match .statsButton {
2024-03-19 22:33:14 +01:00
background-image: linear-gradient(to right, rgb(255, 255, 255, 1) 20%, rgba(0, 0, 0, 0) 40%);
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
2024-03-22 11:47:12 +01:00
margin: 0;
2024-03-24 19:51:49 +01:00
margin-bottom: 1rem;
2024-03-22 11:47:12 +01:00
2024-03-19 22:33:14 +01:00
background-position: 60%;
background-size: 400%;
background-repeat: no-repeat;
2024-03-22 11:47:12 +01:00
transition: background-position 0.9s;
2024-03-19 22:33:14 +01:00
}
2024-03-22 11:47:12 +01:00
#profileView .matchList .match:hover {
2024-03-24 19:54:09 +01:00
height: 12rem;
2024-03-22 11:47:12 +01:00
}
#profileView .matchList .match:hover .statsButton {
2024-03-19 22:33:14 +01:00
background-position: 0%;
2024-03-22 11:47:12 +01:00
}
#profileView .matchList .match div h1 {
margin: 0;
}
#profileView .matchList .match div {
display: flex;
align-items: center;
width: 100%;
justify-content: center;
gap: 1rem;
margin-bottom: 1.5rem;
margin-top: 1rem;
}
#profileView .matchlist .match div span {
color: white;
font-size: 0.8rem;
line-height: 1rem;
}
#profileView .periodal {
flex: 1;
}
#profileView .periodal .stat {
margin-bottom: 1.5rem;
}
#profileView .periodal .stat h1 {
margin: 0.5rem;
2024-03-25 12:41:02 +01:00
}
.tippyTemplate {
display: none;
}
#settingsView label {
font-size: 1.2rem;
}
#settingsView select {
padding: 0.5rem 1rem;
padding: 0.5rem 2rem;
font-size: 1rem;
background-color: black;
border: solid 1px white;
color: white;
border-radius: 15px;
outline: none;
margin-left: 2rem;
}
#settingsView a {
text-decoration: none;
color: var(--dynamic);
transition: opacity 0.3s;
}
#settingsView a:hover {
opacity: 0.6;
text-decoration: underline;
}
#settingsView .versionInfo {
margin-top: 3rem;
font-family: 'Roboto Mono', monospace;
font-size: 15px;
}
#settingsView button {
background-color: black;
color: white;
border-radius: 15px;
border: 1px solid white;
text-align: center;
padding: 0.5rem 2rem;
outline: none;
cursor: pointer;
font-size: 1rem;
transition: all 0.3s;
}
#settingsView button:hover {
background-color: white;
color: black;
}
#logout {
color: var(--danger);
cursor: pointer;
transition: opacity 0.3s;
}
#logout:hover {
opacity: 0.6;
}
/* PvE */
#vsAiView .modes {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 2rem;
}
#vsAiView .modes div {
/* height: 7rem; */
width: 15rem;
background-color: black;
border: solid 1px white;
border-radius: 15px;
user-select: none;
padding: 2rem 3rem;
}
#vsAiView form {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
#vsAiView 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;
}
#vsAiView form input[type=submit] {
cursor: pointer;
font-size: 1rem;
transition: all 0.3s;
}
#vsAiView form input[type=submit]:hover {
background-color: white;
color: black;
}
#vsAiView select {
padding: 0.5rem 1rem;
padding: 0.5rem 2rem;
font-size: 1rem;
background-color: black;
border: solid 1px white;
color: white;
border-radius: 15px;
outline: none;
}