Battleship_Server/public/style.css
2024-04-05 02:00:23 +02:00

249 lines
4.1 KiB
CSS

@font-face {
font-family: 'ITC Machine Std Bold';
src: url('./assets/ITC Machine Std Bold.otf') format('opentype');
}
* {
box-sizing: border-box;
min-width: 0;
}
ul,
li {
list-style: square;
margin: 0;
margin-left: 0.8rem;
padding: 0;
}
li {
font-size: small;
color: wheat;
}
h1,
h2,
h3,
h4 {
margin: 0;
padding: 0;
}
html,
body {
height: 100%;
min-width: 800px;
margin: 0;
padding: 0;
}
body {
padding: 1rem;
background: linear-gradient(to bottom right, #0f2027, #203a43, #2c5364);
color: #bf360c;
font-family: 'ITC Machine Std Bold', sans-serif;
}
.container {
height: 100%;
display: flex;
flex-direction: row;
gap: 0.5rem;
}
.container_row,
.container_games {
display: flex;
height: 100%;
gap: 0.2rem;
border: 3px solid red;
padding: 0.4rem;
border: 4px solid #2c5364;
border-radius: 10px;
}
.container_col {
display: flex;
flex-direction: column;
gap: 0.4rem;
padding: 1rem;
width: 100%;
height: 100%;
border: 4px solid #2c5364;
border-radius: 10px;
}
.container_games {
max-height: 9rem;
min-height: 9rem;
padding: 1rem;
gap: 1rem;
align-items: center;
flex-wrap: wrap;
flex-grow: 1;
overflow-y: auto;
}
/* Estilo base para los botones */
.button {
padding: 0.5rem 1rem;
font-size: 1rem;
border: none;
border-radius: 0.4rem;
color: white;
cursor: pointer;
transition: background-color 0.3s ease;
}
/* Estilo para el botón naranja */
.button-orange {
background-color: #ff5722;
}
/* Estilo para el botón naranja claro al pasar el cursor */
.button-orange:hover {
background-color: #e64a19;
}
/* Estilo para el botón naranja oscuro al hacer clic */
.button-orange:active {
background-color: #bf360c;
}
/* Estilo para el botón azul */
.button-blue {
background-color: #2196f3;
}
/* Estilo para el botón azul claro al pasar el cursor */
.button-blue:hover {
background-color: #0d47a1;
}
/* Estilo para el botón azul oscuro al hacer clic */
.button-blue:active {
background-color: #002171;
}
/* Estilo para el botón verde */
.button-green {
background-color: #4caf50;
}
/* Estilo para el botón verde claro al pasar el cursor */
.button-green:hover {
background-color: #388e3c;
}
/* Estilo para el botón verde oscuro al hacer clic */
.button-green:active {
background-color: #1b5e20;
}
/* Estilo para el botón personalizado dentro de la clase .cardGame */
.cardGame .button {
padding: 0 0.4rem;
font-size: medium;
width: 100%;
border-radius: 4px;
}
.cardGame {
min-width: 140px;
width: 140px;
height: 80px;
display: flex;
flex-direction: column;
justify-content: space-between;
border-radius: 10px;
background-color: #162930;
text-align: center;
align-items: center;
padding: 0.4rem;
font-size: small;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
border: 1px solid rgba(0, 0, 0, 0.2);
}
#login-input,
#chatinput {
font-family: 'roboto', sans-serif;
padding: 0.4rem;
font-weight: bold;
border-radius: 0.4rem;
background-color: transparent;
color: wheat;
outline: none;
}
#logchat {
min-width: 15rem;
width: 100%;
max-height: 100%;
padding: 0.1rem;
padding-right: 0.4rem;
font-family: 'roboto', sans-serif;
font-size: small;
font-weight: bold;
border-radius: 0.4rem;
background-color: transparent;
overflow-y: auto;
}
#logchat p {
margin: 0;
}
.broadcastMsg {
display: block;
text-align: right;
font-size: x-small;
color: #72d5ff;
}
.spanNickPropio {
color: #f8c51c;
}
.spanNick {
color: #87db18;
}
.spanNickOffline {
color: #2c5364;
}
.parpadea {
animation-name: parpadeo;
animation-duration: 2s;
animation-timing-function: linear;
animation-iteration-count: infinite;
-webkit-animation-name: parpadeo;
-webkit-animation-duration: 2s;
-webkit-animation-timing-function: linear;
-webkit-animation-iteration-count: infinite;
}
@-moz-keyframes parpadeo {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@-webkit-keyframes parpadeo {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes parpadeo {
0% {
opacity: 1;
}
50% {
opacity: 0;
}
100% {
opacity: 1;
}
}