Commit 18db4a9f27bcf9c18a686a45c141122033b4565b
1 parent
d65458909e
Exists in
develop
Fix
En alturas de filtro de categorias
Showing
2 changed files
with
5 additions
and
5 deletions
Show diff stats
src/app/modules/seleccion-articulos/filtro-categorias/filtro-categorias.component.html
1 | <!-- FILTRO CATEGORIAS --> | 1 | <!-- FILTRO CATEGORIAS --> |
2 | <p class="h6 h-6 m-0 text-center"><small>CATEGORÍAS</small></p> | 2 | <p class="h6 h-6 m-0 text-center"><small>CATEGORÍAS</small></p> |
3 | <div class="row mx-0 h-94 justify-content-center align-items-center"> | 3 | <div class="row mx-0 h-94 justify-content-center align-items-center"> |
4 | <div class="col-auto btn-effect h-5 cat-btn"> | 4 | <div class="col-auto btn-effect h-5 cat-btn"> |
5 | <img | 5 | <img |
6 | draggable="false" | 6 | draggable="false" |
7 | ondragstart="return false;" | 7 | ondragstart="return false;" |
8 | (contextmenu)="false" | 8 | (contextmenu)="false" |
9 | class="h-100 d-block mx-auto rotate-90-neg" | 9 | class="h-100 d-block mx-auto rotate-90-neg" |
10 | src="assets/img/ir-color.svg" | 10 | src="assets/img/ir-color.svg" |
11 | (mousedown)="scrollY(templateCategorias, -100)" | 11 | (mousedown)="scrollY(templateCategorias, -100)" |
12 | (mouseup)="mouseup()" | 12 | (mouseup)="mouseup()" |
13 | (mouseleave)="mouseup()"> | 13 | (mouseleave)="mouseup()"> |
14 | </div> | 14 | </div> |
15 | <!-- CATEGORIAS --> | 15 | <!-- CATEGORIAS --> |
16 | <div | 16 | <div |
17 | #templateCategorias | 17 | #templateCategorias |
18 | class="col-12 px-0 mx-0 box-categorias border border-primary py-1 | 18 | class="col-12 px-0 mx-0 box-categorias border border-primary py-1 |
19 | border-left-0 rounded-right scroll-y cat-box" | 19 | border-left-0 rounded-right scroll-y cat-box" |
20 | (scroll)="scrollEvent($event)"> | 20 | (scroll)="scrollEvent($event)"> |
21 | <div | 21 | <div |
22 | class="row mx-2 mb-2 h-25 h-lg-30 justify-content-center tab cat-content" | 22 | class="row mx-2 mb-2 h-25 h-lg-30 justify-content-center tab cat-content" |
23 | [ngClass]="{ 'active rounded shadow px-2': allActive, 'border-bottom-effect': !allActive }" | 23 | [ngClass]="{ 'active rounded shadow px-2': allActive, 'border-bottom-effect': !allActive }" |
24 | (click)="selectCategoria(-1, 0)"> | 24 | (click)="selectCategoria(-1, 0)"> |
25 | <img | 25 | <img |
26 | draggable="false" | 26 | draggable="false" |
27 | ondragstart="return false;" | 27 | ondragstart="return false;" |
28 | (contextmenu)="false" | 28 | (contextmenu)="false" |
29 | class="img-fluid align-self-end d-none d-sm-block rounded-circle h-100 h-md-70" | 29 | class="img-fluid align-self-end d-none d-sm-block rounded-circle h-70" |
30 | src="assets/img/logo-spot.svg"> | 30 | src="assets/img/logo-spot.svg"> |
31 | <small class="col-12 px-0 my-1 h-100 h-md-20 align-self-end text-center text-truncate">Todos</small> | 31 | <small class="col-12 px-0 my-1 h-100 h-sm-20 align-self-end text-center text-truncate">Todos</small> |
32 | </div> | 32 | </div> |
33 | <div | 33 | <div |
34 | class="row mx-2 mb-2 h-25 h-lg-30 justify-content-center tab cat-content" | 34 | class="row mx-2 mb-2 h-25 h-lg-30 justify-content-center tab cat-content" |
35 | [ngClass]="{ | 35 | [ngClass]="{ |
36 | 'active rounded shadow px-2': categoria.selected, | 36 | 'active rounded shadow px-2': categoria.selected, |
37 | 'border-bottom-effect': !categoria.selected, | 37 | 'border-bottom-effect': !categoria.selected, |
38 | 'media-pantalla': templateCategorias.classList.contains('media-pantalla') | 38 | 'media-pantalla': templateCategorias.classList.contains('media-pantalla') |
39 | }" | 39 | }" |
40 | (click)="selectCategoria(i, categoria.id)" | 40 | (click)="selectCategoria(i, categoria.id)" |
41 | id="cat-content" | 41 | id="cat-content" |
42 | *ngFor="let categoria of categorias; let i = index;" | 42 | *ngFor="let categoria of categorias; let i = index;" |
43 | [hidden]="categoria.articulos <= 0 | 43 | [hidden]="categoria.articulos <= 0 |
44 | || validarFecha(categoria.vigencia_desde, categoria.vigencia_hasta)"> | 44 | || validarFecha(categoria.vigencia_desde, categoria.vigencia_hasta)"> |
45 | <img | 45 | <img |
46 | draggable="false" | 46 | draggable="false" |
47 | ondragstart="return false;" | 47 | ondragstart="return false;" |
48 | (contextmenu)="false" | 48 | (contextmenu)="false" |
49 | class="d-none d-sm-block rounded-circle w-auto h-100 h-md-70" | 49 | class="d-none d-sm-block rounded-circle w-auto h-75" |
50 | src="{{urlImagenes}}{{categoria.path_imagen}}" | 50 | src="{{urlImagenes}}{{categoria.path_imagen}}" |
51 | onerror="this.src='assets/img/imagen-no-encontrada.jpg'"> | 51 | onerror="this.src='assets/img/imagen-no-encontrada.jpg'"> |
52 | <small class="col-12 px-1 my-1 h-100 h-md-20 align-self-end text-center text-truncate">{{categoria.detalle}}</small> | 52 | <small class="col-12 px-1 my-1 h-100 h-sm-15 align-self-end text-center text-truncate">{{categoria.detalle}}</small> |
53 | </div> | 53 | </div> |
54 | </div> | 54 | </div> |
55 | <div class="col-auto btn-effect h-5 cat-btn"> | 55 | <div class="col-auto btn-effect h-5 cat-btn"> |
56 | <img | 56 | <img |
57 | draggable="false" | 57 | draggable="false" |
58 | ondragstart="return false;" | 58 | ondragstart="return false;" |
59 | (contextmenu)="false" | 59 | (contextmenu)="false" |
60 | class="h-100 d-block mx-auto rotate-90" | 60 | class="h-100 d-block mx-auto rotate-90" |
61 | src="assets/img/ir-color.svg" | 61 | src="assets/img/ir-color.svg" |
62 | (mousedown)="scrollY(templateCategorias, 100)" | 62 | (mousedown)="scrollY(templateCategorias, 100)" |
63 | (mouseup)="mouseup()" | 63 | (mouseup)="mouseup()" |
64 | (mouseleave)="mouseup()"> | 64 | (mouseleave)="mouseup()"> |
65 | </div> | 65 | </div> |
66 | </div> | 66 | </div> |
67 | 67 |
src/app/modules/seleccion-articulos/filtro-categorias/filtro-categorias.component.scss
1 | $primary: #aa006b; | 1 | @import "../../../../scss/styles-bootstrap.scss"; |
2 | 2 | ||
3 | .box-categorias { | 3 | .box-categorias { |
4 | height: calc(100% - 100px) !important; | 4 | height: calc(100% - 100px) !important; |
5 | } | 5 | } |
6 | 6 | ||
7 | .active { | 7 | .active { |
8 | transition: 0.3s; | 8 | transition: 0.3s; |
9 | background-color: white; | 9 | background-color: white; |
10 | border-bottom: 3px solid $primary !important; | 10 | border-bottom: 3px solid $primary !important; |
11 | border-top: 3px solid $primary !important; | 11 | border-top: 3px solid $primary !important; |
12 | border-left: 3px solid $primary !important; | 12 | border-left: 3px solid $primary !important; |
13 | border-right: 3px solid $primary !important; | 13 | border-right: 3px solid $primary !important; |
14 | } | 14 | } |
15 | 15 | ||
16 | .border-bottom-effect { | 16 | .border-bottom-effect { |
17 | border: none; | 17 | border: none; |
18 | position: relative; | 18 | position: relative; |
19 | &:hover { | 19 | &:hover { |
20 | border: none; | 20 | border: none; |
21 | } | 21 | } |
22 | &::after { | 22 | &::after { |
23 | content: ""; | 23 | content: ""; |
24 | position: absolute; | 24 | position: absolute; |
25 | width: 0px; | 25 | width: 0px; |
26 | height: 3px; | 26 | height: 3px; |
27 | left: 50%; | 27 | left: 50%; |
28 | bottom: 0; | 28 | bottom: 0; |
29 | background-color: $primary; | 29 | background-color: $primary; |
30 | transition: all ease-in-out 0.2s; | 30 | transition: all ease-in-out 0.2s; |
31 | } | 31 | } |
32 | &:hover::after { | 32 | &:hover::after { |
33 | width: 100%; | 33 | width: 100%; |
34 | left: 0; | 34 | left: 0; |
35 | } | 35 | } |
36 | } | 36 | } |
37 | 37 | ||
38 | .cat-content.media-pantalla, | 38 | .cat-content.media-pantalla, |
39 | #cat-content.media-pantalla { | 39 | #cat-content.media-pantalla { |
40 | margin: 0.5rem 0.7rem !important; | 40 | margin: 0.5rem 0.7rem !important; |
41 | height: 95% !important; | 41 | height: 95% !important; |
42 | } | 42 | } |
43 | 43 | ||
44 | .cat-box.media-pantalla { | 44 | .cat-box.media-pantalla { |
45 | height: calc(100% - 85px) !important; | 45 | height: calc(100% - 85px) !important; |
46 | } | 46 | } |
47 | 47 | ||
48 | .cat-btn.media-pantalla { | 48 | .cat-btn.media-pantalla { |
49 | height: 7% !important; | 49 | height: 7% !important; |
50 | } | 50 | } |
51 | 51 | ||
52 | #content.media-pantalla, | 52 | #content.media-pantalla, |
53 | #boxCarrito.media-pantalla { | 53 | #boxCarrito.media-pantalla { |
54 | max-height: 60% !important; | 54 | max-height: 60% !important; |
55 | } | 55 | } |
56 | 56 |