Commit 5541ec9631e929982cd2de081566e02b70d36b0d
1 parent
83ca972321
Exists in
develop
Add
Boton de cierre para modal sinonimos
Showing
2 changed files
with
12 additions
and
1 deletions
 
Show diff stats
src/app/shared/sinonimo/sinonimo.component.html
| 1 | <div class="bg-primary rounded text-white"> | 1 | <div class="bg-primary rounded text-white"> | 
| 2 | <div class="modal-header"> | 2 | <div class="modal-header pt-5"> | 
| 3 | <img | ||
| 4 | draggable="false" | ||
| 5 | ondragstart="return false;" | ||
| 6 | (contextmenu)="false" | ||
| 7 | (click)="modalRef.hide()" | ||
| 8 | class="btn-effect icon-30 mt-2 mr-2 position-absolute right-0 top-0" | ||
| 9 | src="assets/img/icono-cancelar-blanco.svg"> | ||
| 3 | <p class="col-7 h4 px-0 align-self-center">{{articulo.DetArt}}</p> | 10 | <p class="col-7 h4 px-0 align-self-center">{{articulo.DetArt}}</p> | 
| 4 | <div class="col-5 pr-0 text-right"> | 11 | <div class="col-5 pr-0 text-right"> | 
| 5 | <p *ngFor="let s of sinonimos; let i = index"> | 12 | <p *ngFor="let s of sinonimos; let i = index"> | 
| 6 | <span | 13 | <span | 
| 7 | class="btn-effect" | 14 | class="btn-effect" | 
| 8 | (click)="scrollTo(i)"> | 15 | (click)="scrollTo(i)"> | 
| 9 | Ir a opción {{i+1}} | 16 | Ir a opción {{i+1}} | 
| 10 | <i class="far fa-hand-point-left"></i> | 17 | <i class="far fa-hand-point-left"></i> | 
| 11 | </span> | 18 | </span> | 
| 12 | </p> | 19 | </p> | 
| 13 | </div> | 20 | </div> | 
| 14 | </div> | 21 | </div> | 
| 15 | 22 | ||
| 16 | <div class="modal-body lista-sinonimos scroll-y-visible my-2 mr-2"> | 23 | <div class="modal-body lista-sinonimos scroll-y-visible my-2 mr-2"> | 
| 17 | <div *ngFor="let s of sinonimos; let i = index"> | 24 | <div *ngFor="let s of sinonimos; let i = index"> | 
| 18 | <div [id]="i"></div> | 25 | <div [id]="i"></div> | 
| 19 | <hr [hidden]="i === 0" class="bg-white"> | 26 | <hr [hidden]="i === 0" class="bg-white"> | 
| 20 | <div *ngFor="let articulo of s.productos"> | 27 | <div *ngFor="let articulo of s.productos"> | 
| 21 | <div class="custom-control custom-checkbox"> | 28 | <div class="custom-control custom-checkbox"> | 
| 22 | <input | 29 | <input | 
| 23 | type="checkbox" | 30 | type="checkbox" | 
| 24 | class="custom-control-input" | 31 | class="custom-control-input" | 
| 25 | [(ngModel)]="articulo.seleccionado" | 32 | [(ngModel)]="articulo.seleccionado" | 
| 26 | (click)="selectSinonimo(i, articulo)" | 33 | (click)="selectSinonimo(i, articulo)" | 
| 27 | [id]="articulo.id"> | 34 | [id]="articulo.id"> | 
| 28 | <label | 35 | <label | 
| 29 | class="custom-control-label" | 36 | class="custom-control-label" | 
| 30 | [for]="articulo.id"> | 37 | [for]="articulo.id"> | 
| 31 | {{articulo.DET_LAR.toUpperCase()}} | 38 | {{articulo.DET_LAR.toUpperCase()}} | 
| 32 | </label> | 39 | </label> | 
| 33 | </div> | 40 | </div> | 
| 34 | </div> | 41 | </div> | 
| 35 | </div> | 42 | </div> | 
| 36 | </div> | 43 | </div> | 
| 37 | 44 | ||
| 38 | <div class="modal-footer"> | 45 | <div class="modal-footer"> | 
| 39 | <div | 46 | <div | 
| 40 | [ngClass]="validate()" | 47 | [ngClass]="validate()" | 
| 41 | class="d-inline-block py-1 bg-white badge-pill text-primary" | 48 | class="d-inline-block py-1 bg-white badge-pill text-primary" | 
| 42 | (click)="continue()"> | 49 | (click)="continue()"> | 
| 43 | CONTINUAR | 50 | CONTINUAR | 
| 44 | <img | 51 | <img | 
| 45 | draggable="false" | 52 | draggable="false" | 
| 46 | ondragstart="return false;" | 53 | ondragstart="return false;" | 
| 47 | (contextmenu)="false" | 54 | (contextmenu)="false" | 
| 48 | class="icon-30" | 55 | class="icon-30" | 
| 49 | src="assets/img/ir-color.svg"> | 56 | src="assets/img/ir-color.svg"> | 
| 50 | </div> | 57 | </div> | 
| 51 | </div> | 58 | </div> | 
| 52 | </div> | 59 | </div> | 
| 53 | 60 | 
src/styles.scss
| 1 | @import "scss/styles-bootstrap.scss"; | 1 | @import "scss/styles-bootstrap.scss"; | 
| 2 | @import "scss/typography.scss"; | 2 | @import "scss/typography.scss"; | 
| 3 | @import "scss/height-width.scss"; | 3 | @import "scss/height-width.scss"; | 
| 4 | @import "scss/animations.scss"; | 4 | @import "scss/animations.scss"; | 
| 5 | @import "scss/icons.scss"; | 5 | @import "scss/icons.scss"; | 
| 6 | @import "scss/scroll.scss"; | 6 | @import "scss/scroll.scss"; | 
| 7 | @import "node_modules/bootstrap/scss/_variables.scss"; | 7 | @import "node_modules/bootstrap/scss/_variables.scss"; | 
| 8 | 8 | ||
| 9 | @font-face { | 9 | @font-face { | 
| 10 | font-family: "Gotham"; | 10 | font-family: "Gotham"; | 
| 11 | font-style: normal; | 11 | font-style: normal; | 
| 12 | font-weight: normal; | 12 | font-weight: normal; | 
| 13 | src: url("assets/fonts/gotham-medium.woff") format("woff"); | 13 | src: url("assets/fonts/gotham-medium.woff") format("woff"); | 
| 14 | } | 14 | } | 
| 15 | 15 | ||
| 16 | html, | 16 | html, | 
| 17 | body { | 17 | body { | 
| 18 | max-height: 100vh; | 18 | max-height: 100vh; | 
| 19 | height: 100%; | 19 | height: 100%; | 
| 20 | font-family: "Gotham"; | 20 | font-family: "Gotham"; | 
| 21 | overflow: hidden; | 21 | overflow: hidden; | 
| 22 | user-select: none; | 22 | user-select: none; | 
| 23 | } | 23 | } | 
| 24 | 24 | ||
| 25 | body.media-pantalla { | 25 | body.media-pantalla { | 
| 26 | height: calc(50%) !important; | 26 | height: calc(50%) !important; | 
| 27 | position: absolute; | 27 | position: absolute; | 
| 28 | bottom: 0; | 28 | bottom: 0; | 
| 29 | width: 100%; | 29 | width: 100%; | 
| 30 | background-color: #3d3d3d; | 30 | background-color: #3d3d3d; | 
| 31 | } | 31 | } | 
| 32 | 32 | ||
| 33 | .btn-effect { | 33 | .btn-effect { | 
| 34 | transition: all 0.3s !important; | 34 | transition: all 0.3s !important; | 
| 35 | &:hover { | 35 | &:hover { | 
| 36 | cursor: pointer !important; | 36 | cursor: pointer !important; | 
| 37 | opacity: 0.7 !important; | 37 | opacity: 0.7 !important; | 
| 38 | } | 38 | } | 
| 39 | &:active { | 39 | &:active { | 
| 40 | transform: scale(1.02) !important; | 40 | transform: scale(1.02) !important; | 
| 41 | } | 41 | } | 
| 42 | } | 42 | } | 
| 43 | 43 | ||
| 44 | .cursor-pointer { | 44 | .cursor-pointer { | 
| 45 | cursor: pointer; | 45 | cursor: pointer; | 
| 46 | } | 46 | } | 
| 47 | 47 | ||
| 48 | p { | 48 | p { | 
| 49 | margin: 0 !important; | 49 | margin: 0 !important; | 
| 50 | } | 50 | } | 
| 51 | 51 | ||
| 52 | .img-in-top { | 52 | .img-in-top { | 
| 53 | position: absolute; | 53 | position: absolute; | 
| 54 | top: -35px; | 54 | top: -35px; | 
| 55 | left: 50%; | 55 | left: 50%; | 
| 56 | height: 70px; | 56 | height: 70px; | 
| 57 | -webkit-transform: translateX(-50%); | 57 | -webkit-transform: translateX(-50%); | 
| 58 | transform: translateX(-50%); | 58 | transform: translateX(-50%); | 
| 59 | } | 59 | } | 
| 60 | 60 | ||
| 61 | .right-0 { | 61 | .right-0 { | 
| 62 | right: 0; | 62 | right: 0; | 
| 63 | } | 63 | } | 
| 64 | 64 | ||
| 65 | .top-0 { | ||
| 66 | top: 0; | ||
| 67 | } | ||
| 68 | |||
| 65 | .left-0 { | 69 | .left-0 { | 
| 66 | left: 0; | 70 | left: 0; | 
| 67 | } | 71 | } | 
| 68 | 72 | ||
| 69 | .rotate-45 { | 73 | .rotate-45 { | 
| 70 | transform: rotate(45deg); | 74 | transform: rotate(45deg); | 
| 71 | } | 75 | } | 
| 72 | 76 | ||
| 73 | .rotate-90 { | 77 | .rotate-90 { | 
| 74 | transform: rotate(90deg); | 78 | transform: rotate(90deg); | 
| 75 | } | 79 | } | 
| 76 | 80 | ||
| 77 | .rotate-90-neg { | 81 | .rotate-90-neg { | 
| 78 | transform: rotate(-90deg); | 82 | transform: rotate(-90deg); | 
| 79 | } | 83 | } | 
| 80 | 84 | ||
| 81 | .rotate-180-neg { | 85 | .rotate-180-neg { | 
| 82 | transform: rotate(-180deg); | 86 | transform: rotate(-180deg); | 
| 83 | } | 87 | } | 
| 84 | 88 | ||
| 85 | .disabled { | 89 | .disabled { | 
| 86 | opacity: 0.5; | 90 | opacity: 0.5; | 
| 87 | } | 91 | } | 
| 88 | 92 | ||
| 89 | .modal-content.media-pantalla { | 93 | .modal-content.media-pantalla { | 
| 90 | margin-top: auto !important; | 94 | margin-top: auto !important; | 
| 91 | margin-bottom: 50px !important; | 95 | margin-bottom: 50px !important; | 
| 92 | } | 96 | } | 
| 93 | 97 | ||
| 94 | .modal-content { | 98 | .modal-content { | 
| 95 | background: transparent !important; | 99 | background: transparent !important; | 
| 96 | } | 100 | } | 
| 97 | 101 |