- Layout ora usa CSS Grid (max-content 1fr) per allineare le colonne dei nomi indipendentemente dalla loro lunghezza - I punti crescono da sinistra verso destra; un watcher Vue imposta scrollLeft al massimo ad ogni aggiornamento, mantenendo visibili gli ultimi punti a destra quando la striscia va oltre lo schermo - Le celle vuote (spazio al posto del punto) non mostrano più lo sfondo giallo-verde (classe item-vuoto)
280 lines
4.5 KiB
CSS
280 lines
4.5 KiB
CSS
:root {
|
|
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
|
|
touch-action: pan-x pan-y;
|
|
height: 100%
|
|
}
|
|
|
|
body {
|
|
overscroll-behavior-y: contain;
|
|
margin: 0;
|
|
place-items: center;
|
|
min-width: 320px;
|
|
width: 100%;
|
|
min-height: 100vh;
|
|
background-color: #000;
|
|
}
|
|
|
|
button {
|
|
margin-left: 10px;
|
|
margin-right: 10px;
|
|
border-radius: 8px;
|
|
border: 1px solid #fff;
|
|
padding: 0.6em 1.2em;
|
|
font-size: 0.8em;
|
|
font-weight: 500;
|
|
font-family: inherit;
|
|
color: #fff;
|
|
background-color: #000;
|
|
cursor: pointer;
|
|
transition: border-color 0.25s;
|
|
}
|
|
button:hover {
|
|
border-color: #646cff;
|
|
background-color: #333;
|
|
}
|
|
button:focus,
|
|
button:focus-visible {
|
|
outline: 4px auto -webkit-focus-ring-color;
|
|
}
|
|
|
|
#app {
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
}
|
|
.campo {
|
|
user-select: none;
|
|
width: 100%;
|
|
display: table;
|
|
color: #fff;
|
|
}
|
|
.hea {
|
|
float: left;
|
|
width: 50%;
|
|
font-size: xx-large;
|
|
}
|
|
.hea span {
|
|
/* Bordo di debug: border: 1px solid #f3fb00; */
|
|
padding-left: 10px;
|
|
padding-right: 10px;
|
|
border-radius: 5px;
|
|
}
|
|
.score-inline {
|
|
display: inline-block;
|
|
min-width: 3ch;
|
|
text-align: center;
|
|
}
|
|
.serv-slot {
|
|
display: inline-flex;
|
|
width: 25px;
|
|
height: 25px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
vertical-align: middle;
|
|
}
|
|
.tal {
|
|
text-align: left;
|
|
}
|
|
.tar {
|
|
text-align: right;
|
|
}
|
|
.bot {
|
|
position: fixed;
|
|
left: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
margin-top: 10px;
|
|
margin-bottom: 1px;
|
|
background-color: #111;
|
|
}
|
|
.col {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
text-align: center;
|
|
float: left;
|
|
width: 50%;
|
|
}
|
|
.punteggio-container {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
}
|
|
.punt {
|
|
font-size: 60vh;
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
min-height: 50vh;
|
|
min-width: 50vw;
|
|
max-width: 50vw;
|
|
overflow: hidden;
|
|
box-sizing: border-box;
|
|
}
|
|
.form {
|
|
font-size: 5vh;
|
|
border-top: #fff dashed 25px;
|
|
padding-top: 50px;
|
|
}
|
|
.formtit {
|
|
font-size: 5vh;
|
|
margin-top: 30px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.formdiv {
|
|
font-size: 20vh;
|
|
float: left;
|
|
width: 32%;
|
|
}
|
|
.home {
|
|
background-color: black;
|
|
color: yellow;
|
|
}
|
|
.guest {
|
|
background-color: blue;
|
|
color: white
|
|
}
|
|
.striscia {
|
|
position: fixed;
|
|
bottom: 50px;
|
|
left: 10px;
|
|
right: 10px;
|
|
display: grid;
|
|
grid-template-columns: max-content 1fr;
|
|
row-gap: 2px;
|
|
align-items: center;
|
|
}
|
|
.striscia-nome {
|
|
white-space: nowrap;
|
|
padding-right: 6px;
|
|
}
|
|
.striscia-items {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
.striscia .item {
|
|
width: 25px;
|
|
min-width: 25px;
|
|
text-align: center;
|
|
font-weight: bold;
|
|
flex-shrink: 0;
|
|
border-radius: 5px;
|
|
}
|
|
.striscia .item:not(.item-vuoto) {
|
|
background-color: rgb(206, 247, 3);
|
|
color: blue;
|
|
}
|
|
|
|
.campo-config {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.campo-pallavolo {
|
|
border: 3px solid #999;
|
|
background-color: rgba(205, 133, 63, 0.25);
|
|
position: relative;
|
|
width: 220px;
|
|
height: 220px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
}
|
|
|
|
.fila-anteriore {
|
|
height: 33.33%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 5px;
|
|
}
|
|
|
|
.fila-posteriore {
|
|
height: 66.67%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 5px;
|
|
}
|
|
|
|
.linea-tre-metri {
|
|
border-top: 2px solid #666;
|
|
width: 100%;
|
|
height: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.cambi-rows {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.cambi-dialog {
|
|
padding: 8px 6px 2px;
|
|
}
|
|
|
|
.cambi-title {
|
|
text-align: center;
|
|
font-weight: 800;
|
|
letter-spacing: 0.5px;
|
|
margin-bottom: 8px;
|
|
padding-bottom: 6px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
|
|
}
|
|
|
|
.cambi-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.cambi-arrow {
|
|
font-weight: 700;
|
|
font-size: 18px;
|
|
line-height: 1;
|
|
padding: 6px 8px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.08);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.cambi-input {
|
|
min-width: 48px;
|
|
max-width: 64px;
|
|
}
|
|
|
|
.cambi-input input,
|
|
.cambi-input .w-input__input,
|
|
.cambi-input .w-input__field {
|
|
border: 2px solid rgba(255, 255, 255, 0.35);
|
|
border-radius: 8px;
|
|
padding: 6px 10px;
|
|
color: #000;
|
|
text-align: center;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.cambi-in input,
|
|
.cambi-in .w-input__input,
|
|
.cambi-in .w-input__field {
|
|
background: rgba(120, 200, 120, 0.4);
|
|
}
|
|
|
|
.cambi-out input,
|
|
.cambi-out .w-input__input,
|
|
.cambi-out .w-input__field {
|
|
background: rgba(200, 120, 120, 0.4);
|
|
}
|
|
|
|
.cambi-input input:focus,
|
|
.cambi-input .w-input__input:focus,
|
|
.cambi-input .w-input__field:focus {
|
|
border-color: rgba(255, 255, 255, 0.7);
|
|
outline: none;
|
|
}
|