refs #5966 Added Poppins font-face bold css
gitea/worker-time-control/pipeline/head This commit looks good Details

This commit is contained in:
Guillermo Bonet 2023-08-23 12:03:15 +02:00
parent ad691730a3
commit 6c7f612f98
3 changed files with 15 additions and 73 deletions

View File

@ -2,21 +2,18 @@
Created on : 29-jul-2019, 11:30:28 Created on : 29-jul-2019, 11:30:28
Author : enrique blasco blanquer Author : enrique blasco blanquer
*/ */
* { * {
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: border-box;
user-select: none; user-select: none;
} }
html, body { html, body {
width: 100%; width: 100%;
height: 100%; height: 100%;
font-family: 'Poppins', 'Verdana', 'Sans'; font-family: 'Poppins', 'Verdana', 'Sans';
background: #121212; background: #121212;
} }
h1 { h1 {
position: fixed; position: fixed;
bottom: 20px; bottom: 20px;
@ -28,7 +25,6 @@ h1 {
span { span {
color: #ED4947; color: #ED4947;
} }
.total { .total {
float: right; float: right;
font-weight: bold; font-weight: bold;
@ -36,11 +32,9 @@ span {
margin-top: -40px; margin-top: -40px;
color: white; color: white;
} }
ul { ul {
list-style: none; list-style: none;
} }
.pinContainer { .pinContainer {
width: 320px; width: 320px;
height: 460px; height: 460px;
@ -56,7 +50,6 @@ ul {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
#txtPin { #txtPin {
text-align: center; text-align: center;
padding: 15px 5px; padding: 15px 5px;
@ -65,7 +58,6 @@ ul {
font-weight: 400; font-weight: 400;
font-size: 1.5em; font-size: 1.5em;
border-radius: 50px; border-radius: 50px;
display: block; display: block;
width: 310px; width: 310px;
height: 70px; height: 70px;
@ -74,12 +66,10 @@ ul {
overflow: hidden; overflow: hidden;
font-size: 26px; font-size: 26px;
} }
#logo { #logo {
width: 30%; width: 30%;
padding-bottom: 20px; padding-bottom: 20px;
} }
.btnPin { .btnPin {
display: flex; display: flex;
align-items: center; align-items: center;
@ -102,11 +92,9 @@ ul {
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.btnPinNum:active { .btnPinNum:active {
background: #333;; background: #333;;
} }
.btnCancel { .btnCancel {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -120,7 +108,6 @@ ul {
.btnCancel:active { .btnCancel:active {
background: rgb(172,55,54); background: rgb(172,55,54);
} }
.btnOk { .btnOk {
width: 100%; width: 100%;
height: 100%; height: 100%;
@ -131,15 +118,12 @@ ul {
color: #fff; color: #fff;
border-radius: 50%; border-radius: 50%;
} }
#invertColor { #invertColor {
filter: invert(100%); filter: invert(100%);
} }
.btnOk:active { .btnOk:active {
background: rgb(130, 136, 31); background: rgb(130, 136, 31);
} }
#txtNombre { #txtNombre {
padding-top: 0px; padding-top: 0px;
padding-left: 10px; padding-left: 10px;
@ -149,12 +133,10 @@ ul {
font-size: 1.8em; font-size: 1.8em;
font-weight: bold; font-weight: bold;
} }
.paneles { .paneles {
overflow: hidden; overflow: hidden;
width: 100%; width: 100%;
} }
.planPanel { .planPanel {
float: left; float: left;
width: 100%; width: 100%;
@ -186,7 +168,6 @@ h3 {
font-weight: normal; font-weight: normal;
} }
.footer { .footer {
display: none; display: none;
position: absolute; position: absolute;
@ -195,7 +176,6 @@ h3 {
height: 100px; height: 100px;
text-align: center; text-align: center;
} }
.in, .inMiddle { .in, .inMiddle {
display: inline; display: inline;
position: static; position: static;
@ -207,7 +187,6 @@ h3 {
text-align: center; text-align: center;
border-radius: 50px; border-radius: 50px;
} }
.in:active { .in:active {
background: rgb(69, 171, 38,); background: rgb(69, 171, 38,);
} }
@ -225,32 +204,25 @@ h3 {
text-align: center; text-align: center;
border-radius: 50px; border-radius: 50px;
} }
.out:active { .out:active {
background: rgb(237,73,71); background: rgb(237,73,71);
} }
.inMiddle { .inMiddle {
background: rgba(210, 172, 2, 0.9); background: rgba(210, 172, 2, 0.9);
} }
.outMiddle { .outMiddle {
background: rgba(210, 172, 2, 0.9); background: rgba(210, 172, 2, 0.9);
} }
.inMiddle:active { .inMiddle:active {
background: rgb(210, 172, 2); background: rgb(210, 172, 2);
} }
.outMiddle:active { .outMiddle:active {
background: rgb(210, 172, 2); background: rgb(210, 172, 2);
} }
header { header {
overflow: hidden; overflow: hidden;
padding: 20px 20px 0px 20px; padding: 20px 20px 0px 20px;
} }
.btnSalir { .btnSalir {
float: right; float: right;
background: rgba(237,73,71,.90); background: rgba(237,73,71,.90);
@ -259,25 +231,22 @@ header {
color: #fff; color: #fff;
border-radius: 50px; border-radius: 50px;
} }
.btnSalir:active { .btnSalir:active {
background: rgb(237,73,71); background: rgb(237,73,71);
} }
#txtIncidencia { #txtIncidencia {
color: #ED4947; color: #ED4947;
font-weight: bold; font-weight: bold;
font-size: 1.4em; font-size: 1.4em;
margin-top: 10px; margin-top: 10px;
} }
.listHorario { .listHorario {
margin-top: 20px; margin-top: 20px;
width: 100%; width: 100%;
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
justify-content: center; /* Esto alinea horizontalmente en el centro */ justify-content: center;
align-items: center; /* Esto alinea verticalmente en el centro */ align-items: center;
} }
.listHorario .hrTop { .listHorario .hrTop {
width: 100%; width: 100%;
@ -319,7 +288,6 @@ header {
.listHorario .time div { .listHorario .time div {
display: inline-block; display: inline-block;
} }
.listHorario .time img { .listHorario .time img {
width: 20px; width: 20px;
float: left; float: left;
@ -327,7 +295,6 @@ header {
margin-top: 8.5px; margin-top: 8.5px;
filter: invert(100%); filter: invert(100%);
} }
.listHorario .time p { .listHorario .time p {
float: left; float: left;
background: #121212; background: #121212;
@ -337,19 +304,12 @@ header {
width: 72.5px; width: 72.5px;
box-shadow: 0 1px 5px #0003,0 2px 2px #00000024,0 3px 1px -2px #0000001f; box-shadow: 0 1px 5px #0003,0 2px 2px #00000024,0 3px 1px -2px #0000001f;
} }
.impar {
color: rgba(163,171,38,.90);
font-weight: bold;
}
.hide { .hide {
opacity: 0; opacity: 0;
} }
.show { .show {
opacity: 1; opacity: 1;
} }
.confirm { .confirm {
display: none; display: none;
position: fixed; position: fixed;
@ -365,7 +325,6 @@ header {
background: #ffcdd2; background: #ffcdd2;
color: #A00; color: #A00;
} }
.contConfirm { .contConfirm {
position: fixed; position: fixed;
margin: auto; margin: auto;
@ -377,12 +336,10 @@ header {
height: 170px; height: 170px;
text-align: center; text-align: center;
} }
.contConfirm h4 { .contConfirm h4 {
font-size: 2.5em; font-size: 2.5em;
margin-bottom: 20px; margin-bottom: 20px;
} }
.btnconfirmar { .btnconfirmar {
float: left; float: left;
font-size: 1.2em; font-size: 1.2em;
@ -391,22 +348,6 @@ header {
color: #fff; color: #fff;
margin: 15px; margin: 15px;
} }
.btnnoconfirm {
float: left;
font-size: 1.2em;
padding: 18px;
background: rgba(237,73,71,.90);
color: #fff;
margin: 15px;
}
.botonera {
margin: auto;
width: 310px;
overflow: hidden;
}
.loading { .loading {
display: none; display: none;
top: 0; top: 0;
@ -424,7 +365,6 @@ header {
background: linear-gradient(45deg, rgba(255, 255, 255, .5) 0%, rgb(0, 0, 0, .5) 100%); background: linear-gradient(45deg, rgba(255, 255, 255, .5) 0%, rgb(0, 0, 0, .5) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#199aa6', endColorstr='#27d88b', GradientType=1 ); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#199aa6', endColorstr='#27d88b', GradientType=1 );
} }
.loadingcontent { .loadingcontent {
position: fixed; position: fixed;
height: 50px; height: 50px;
@ -434,13 +374,11 @@ header {
bottom: 0; bottom: 0;
left: 0; left: 0;
} }
.sk-cube-grid { .sk-cube-grid {
width: 40px; width: 40px;
height: 40px; height: 40px;
margin: auto; margin: auto;
} }
.sk-cube-grid .sk-cube { .sk-cube-grid .sk-cube {
width: 33%; width: 33%;
height: 33%; height: 33%;
@ -486,7 +424,6 @@ header {
transform: scale3D(0, 0, 1); transform: scale3D(0, 0, 1);
} }
} }
@keyframes sk-cubeGridScaleDelay { @keyframes sk-cubeGridScaleDelay {
0%, 70%, 100% { 0%, 70%, 100% {
-webkit-transform: scale3D(1, 1, 1); -webkit-transform: scale3D(1, 1, 1);
@ -501,3 +438,8 @@ header {
font-family: 'Poppins'; font-family: 'Poppins';
src: url('../font/Poppins.ttf') format('truetype'); src: url('../font/Poppins.ttf') format('truetype');
} }
@font-face {
font-family: 'Poppins';
src: url('../font/Poppins-Bold.ttf') format('truetype');
font-weight: bold;
}

BIN
font/Poppins-Bold.ttf Normal file

Binary file not shown.

View File

@ -161,13 +161,13 @@ function printTotalHours(timetable) {
$(".listHorario").append('<hr>'); $(".listHorario").append('<hr>');
$(".listHorario").append('<li><div class="time">' + secondsToHm(ifIsEmptyText(timetable[0]["6daysAgoTotal"])) $(".listHorario").append('<li><div class="time">' + secondsToHm(ifIsEmptyText(timetable[0]["6daysAgoTotal"]))
+ '</div><div class="time">' + secondsToHm(ifIsEmptyText(timetable[0]["5daysAgoTotal"])) + ' h</div><div class="time">' + secondsToHm(ifIsEmptyText(timetable[0]["5daysAgoTotal"]))
+ '</div><div class="time">' + secondsToHm(ifIsEmptyText(timetable[0]["4daysAgoTotal"])) + ' h</div><div class="time">' + secondsToHm(ifIsEmptyText(timetable[0]["4daysAgoTotal"]))
+ '</div><div class="time">' + secondsToHm(ifIsEmptyText(timetable[0]["3daysAgoTotal"])) + ' h</div><div class="time">' + secondsToHm(ifIsEmptyText(timetable[0]["3daysAgoTotal"]))
+ '</div><div class="time">' + secondsToHm(ifIsEmptyText(timetable[0]["2daysAgoTotal"])) + ' h</div><div class="time">' + secondsToHm(ifIsEmptyText(timetable[0]["2daysAgoTotal"]))
+ '</div><div class="time">' + secondsToHm(ifIsEmptyText(timetable[0]["1daysAgoTotal"])) + ' h</div><div class="time">' + secondsToHm(ifIsEmptyText(timetable[0]["1daysAgoTotal"]))
+ '</div><div class="time">' + secondsToHm(ifIsEmptyText(timetable[0]["0daysAgoTotal"])) + ' h</div><div class="time">' + secondsToHm(ifIsEmptyText(timetable[0]["0daysAgoTotal"]))
+ '</div></li>'); + ' h</div></li>');
$(".total").text('Total: ' + $(".total").text('Total: ' +
secondsToHm( secondsToHm(
@ -178,7 +178,7 @@ function printTotalHours(timetable) {
Number(timetable[0]["2daysAgoTotal"]) + Number(timetable[0]["2daysAgoTotal"]) +
Number(timetable[0]["1daysAgoTotal"]) + Number(timetable[0]["1daysAgoTotal"]) +
Number(timetable[0]["0daysAgoTotal"]) Number(timetable[0]["0daysAgoTotal"])
) + 'h'); ) + ' h');
} else{ } else{
$(".total").text('Total: 0h'); $(".total").text('Total: 0h');
} }