diff --git a/src/app/acciones/acciones.component.html b/src/app/acciones/acciones.component.html new file mode 100644 index 0000000..cdf10a7 --- /dev/null +++ b/src/app/acciones/acciones.component.html @@ -0,0 +1,39 @@ + +
+
+
+
+
+
+ + +
+
+
+
+
+
+ +
+
+ Salir + Guardar +
+
\ No newline at end of file diff --git a/src/app/acciones/acciones.component.scss b/src/app/acciones/acciones.component.scss new file mode 100644 index 0000000..2ef6346 --- /dev/null +++ b/src/app/acciones/acciones.component.scss @@ -0,0 +1,96 @@ +.acciones-mobile { + line-height: 0.5em; + color: orange; + font-size: 1.25em +} + +.botonera-lateral { + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 402px; + &.teclado{ + top: 449px; + z-index: 100000; + } + .row{ + margin: 0 !important; + pointer-events: none; + } + + .container{ + @media (min-width: 768px){ + display: grid !important; + } + } + + button{ + pointer-events: all; + background-color: #DDD; + } + + .teclado-activar { + background-color: #17d236 !important; + color: #FFF !important; + } + div[ladda]{ + background-color: #DDD; + } + + button, .btn-group-toggle{ + background-color: #DDD; + color: #000; + text-transform: uppercase; + min-width: 109px; + &:hover{ + color: #FFF; + .boton-activar-teclado{ + color: #FFF; + } + background-color: #000; + } + } + + + .btn-group-toggle{ + pointer-events: all; + &.active{ + background-color: transparent; + .boton-activar-teclado{ + color: #FFF; + } + } + + .boton-activar-teclado{ + cursor: pointer; + color: #000; + background-color: transparent; + } + + input{ + display: none; + } + } + + .guardado{ + animation:guardado 4s 1; + -webkit-animation:guardado 4s 1; /* Safari and Chrome */ + } + + @keyframes guardado + { + 0% {background:#DDD; color: #000;} + 25% {background:#28a745; color: #FFF;} + 75% {background:#28a745; color: #FFF;} + 100% {background:#DDD; color: #000;} + } + + @-webkit-keyframes guardado /* Safari and Chrome */ + { + 0% {background:#DDD; color: #000;} + 25% {background:#28a745; color: #FFF;} + 75% {background:#28a745; color: #FFF;} + 100% {background:#DDD; color: #000;} + } +} diff --git a/src/app/acciones/acciones.component.ts b/src/app/acciones/acciones.component.ts new file mode 100644 index 0000000..b113605 --- /dev/null +++ b/src/app/acciones/acciones.component.ts @@ -0,0 +1,25 @@ +import { Component, OnInit, Output, EventEmitter } from '@angular/core'; +@Component({ + selector: 'app-acciones', + templateUrl: './acciones.component.html', + styleUrls: ['./acciones.component.scss'] +}) +export class AccionesComponent implements OnInit { + + @Output() guardar = new EventEmitter(); + saveLoading = false; + + constructor() { } + + ngOnInit() { + } + + callSave() { + //llamo función guardar pasada en el componente + this.saveLoading = true; + + setTimeout(() => { + this.saveLoading = false; + }, 10000); + } +}