Commit 752dacedc05ce1001fefab3c6f51152da4c926e2
1 parent
849355e180
Exists in
master
Cambio en los estilos de los checkbox.
Showing
1 changed file
with
28 additions
and
50 deletions
Show diff stats
src/sass/general.scss
1 | @import 'constants'; | 1 | @import 'constants'; |
2 | @import 'admin-seguimiento'; | 2 | @import 'admin-seguimiento'; |
3 | @import 'bootstrap'; | 3 | @import 'bootstrap'; |
4 | @import 'botonera'; | 4 | @import 'botonera'; |
5 | @import 'botonera-lateral'; | 5 | @import 'botonera-lateral'; |
6 | @import 'botonera-principal'; | 6 | @import 'botonera-principal'; |
7 | @import 'botonera-secundaria'; | 7 | @import 'botonera-secundaria'; |
8 | @import 'contenedor'; | 8 | @import 'contenedor'; |
9 | @import 'lista'; | 9 | @import 'lista'; |
10 | @import 'login'; | 10 | @import 'login'; |
11 | @import 'panel-informativo'; | 11 | @import 'panel-informativo'; |
12 | @import 'tabla'; | 12 | @import 'tabla'; |
13 | @import 'teclado'; | 13 | @import 'teclado'; |
14 | @import 'tabla-articulos'; | 14 | @import 'tabla-articulos'; |
15 | @import 'acciones-mobile'; | 15 | @import 'acciones-mobile'; |
16 | @import 'swiper'; | 16 | @import 'swiper'; |
17 | @import 'foca-crear'; | 17 | @import 'foca-crear'; |
18 | @import 'logistica-pedido-ruta'; | 18 | @import 'logistica-pedido-ruta'; |
19 | @import 'tabs'; | 19 | @import 'tabs'; |
20 | @import 'grid'; | 20 | @import 'grid'; |
21 | @import 'paginador-abm'; | 21 | @import 'paginador-abm'; |
22 | @import 'table-autorizar-nota-pedido'; | 22 | @import 'table-autorizar-nota-pedido'; |
23 | 23 | ||
24 | 24 | ||
25 | //OCULTA FLECHAS INPUT NUMBER | 25 | //OCULTA FLECHAS INPUT NUMBER |
26 | input[type='number'] { | 26 | input[type='number'] { |
27 | -moz-appearance:textfield; | 27 | -moz-appearance:textfield; |
28 | } | 28 | } |
29 | 29 | ||
30 | input::-webkit-outer-spin-button, | 30 | input::-webkit-outer-spin-button, |
31 | input::-webkit-inner-spin-button { | 31 | input::-webkit-inner-spin-button { |
32 | -webkit-appearance: none; | 32 | -webkit-appearance: none; |
33 | } | 33 | } |
34 | 34 | ||
35 | .d-md-grid{ | 35 | .d-md-grid{ |
36 | @media (min-width: 768px) { | 36 | @media (min-width: 768px) { |
37 | display: grid !important; | 37 | display: grid !important; |
38 | } | 38 | } |
39 | } | 39 | } |
40 | 40 | ||
41 | .btn-outline-debo{ | 41 | .btn-outline-debo{ |
42 | background-color: transparent; | 42 | background-color: transparent; |
43 | color: $primary; | 43 | color: $primary; |
44 | border-color: $primary; | 44 | border-color: $primary; |
45 | &:hover{ | 45 | &:hover{ |
46 | color: #FFF; | 46 | color: #FFF; |
47 | border-color: transparent; | 47 | border-color: transparent; |
48 | background-color: $primary; | 48 | background-color: $primary; |
49 | } | 49 | } |
50 | &:focus { | 50 | &:focus { |
51 | box-shadow: none !important; | 51 | box-shadow: none !important; |
52 | } | 52 | } |
53 | &:active{ | 53 | &:active{ |
54 | color: #FFF; | 54 | color: #FFF; |
55 | background-color: $primary !important; | 55 | background-color: $primary !important; |
56 | box-shadow: 0px 0px 0px 3px $primaryTransparency !important; | 56 | box-shadow: 0px 0px 0px 3px $primaryTransparency !important; |
57 | } | 57 | } |
58 | } | 58 | } |
59 | 59 | ||
60 | .btn-brown { | 60 | .btn-brown { |
61 | background-color:$primary; | 61 | background-color:$primary; |
62 | -webkit-appearance: none; | 62 | -webkit-appearance: none; |
63 | border-color: transparent; | 63 | border-color: transparent; |
64 | &:focus { | 64 | &:focus { |
65 | outline: 0 !important; | 65 | outline: 0 !important; |
66 | box-shadow: none; | 66 | box-shadow: none; |
67 | } | 67 | } |
68 | .icon-white { | 68 | .icon-white { |
69 | color: white; | 69 | color: white; |
70 | } | 70 | } |
71 | } | 71 | } |
72 | 72 | ||
73 | 73 | ||
74 | .page-item.active .page-link { | 74 | .page-item.active .page-link { |
75 | z-index: 1; | 75 | z-index: 1; |
76 | color: #fff; | 76 | color: #fff; |
77 | background-color: $primary; | 77 | background-color: $primary; |
78 | border-color: $primary; | 78 | border-color: $primary; |
79 | } | 79 | } |
80 | 80 | ||
81 | .foca-input { | 81 | .foca-input { |
82 | &:focus { | 82 | &:focus { |
83 | border-color: $primary; | 83 | border-color: $primary; |
84 | box-shadow: 0 0 5px $primary; | 84 | box-shadow: 0 0 5px $primary; |
85 | } | 85 | } |
86 | } | 86 | } |
87 | 87 | ||
88 | .btn-primary { | 88 | .btn-primary { |
89 | background-color: $primary !important; | 89 | background-color: $primary !important; |
90 | border-color: $primary !important; | 90 | border-color: $primary !important; |
91 | &:focus { | 91 | &:focus { |
92 | box-shadow: none !important; | 92 | box-shadow: none !important; |
93 | } | 93 | } |
94 | &:hover { | 94 | &:hover { |
95 | border-color: $primaryTransparency !important; | 95 | border-color: $primaryTransparency !important; |
96 | background-color: $primaryTransparency !important; | 96 | background-color: $primaryTransparency !important; |
97 | } | 97 | } |
98 | &:active{ | 98 | &:active{ |
99 | background-color: $primary !important; | 99 | background-color: $primary !important; |
100 | box-shadow: 0px 0px 0px 3px $primaryTransparency !important; | 100 | box-shadow: 0px 0px 0px 3px $primaryTransparency !important; |
101 | } | 101 | } |
102 | } | 102 | } |
103 | 103 | ||
104 | .btn-default { | 104 | .btn-default { |
105 | color: #FFF; | 105 | color: #FFF; |
106 | background-color: $default !important; | 106 | background-color: $default !important; |
107 | border-color: $default !important; | 107 | border-color: $default !important; |
108 | &:focus { | 108 | &:focus { |
109 | box-shadow: none !important; | 109 | box-shadow: none !important; |
110 | } | 110 | } |
111 | &:hover { | 111 | &:hover { |
112 | color: #FFF; | 112 | color: #FFF; |
113 | border-color: $defaultTransparency !important; | 113 | border-color: $defaultTransparency !important; |
114 | background-color: $defaultTransparency !important; | 114 | background-color: $defaultTransparency !important; |
115 | } | 115 | } |
116 | &:active{ | 116 | &:active{ |
117 | background-color: $default !important; | 117 | background-color: $default !important; |
118 | box-shadow: 0px 0px 0px 3px $defaultTransparency !important; | 118 | box-shadow: 0px 0px 0px 3px $defaultTransparency !important; |
119 | } | 119 | } |
120 | } | 120 | } |
121 | 121 | ||
122 | .table-celda-total { | 122 | .table-celda-total { |
123 | background-color: $highlightedArea; | 123 | background-color: $highlightedArea; |
124 | } | 124 | } |
125 | 125 | ||
126 | marquee { | 126 | marquee { |
127 | background-color: $highlightedArea; | 127 | background-color: $highlightedArea; |
128 | } | 128 | } |
129 | 129 | ||
130 | .front-index{ | 130 | .front-index{ |
131 | z-index: 9999; | 131 | z-index: 9999; |
132 | } | 132 | } |
133 | 133 | ||
134 | .uib-daypicker{ | 134 | .uib-daypicker{ |
135 | outline: 0 | 135 | outline: 0 |
136 | } | 136 | } |
137 | 137 | ||
138 | .right-0{ | 138 | .right-0{ |
139 | right: 0; | 139 | right: 0; |
140 | } | 140 | } |
141 | 141 | ||
142 | .tabla-factura{ | 142 | .tabla-factura{ |
143 | word-wrap: break-word; | 143 | word-wrap: break-word; |
144 | table-layout: fixed; | 144 | table-layout: fixed; |
145 | } | 145 | } |
146 | 146 | ||
147 | .ladda-w-100 .ladda-label{ | 147 | .ladda-w-100 .ladda-label{ |
148 | width: 100%; | 148 | width: 100%; |
149 | float: right; | 149 | float: right; |
150 | } | 150 | } |
151 | 151 | ||
152 | .btn-delete-image{ | 152 | .btn-delete-image{ |
153 | height: 25px; | 153 | height: 25px; |
154 | width: 25px; | 154 | width: 25px; |
155 | top: -10px; | 155 | top: -10px; |
156 | right: 0; | 156 | right: 0; |
157 | } | 157 | } |
158 | 158 | ||
159 | button.clear-input{ | 159 | button.clear-input{ |
160 | cursor: pointer; | 160 | cursor: pointer; |
161 | background: transparent; | 161 | background: transparent; |
162 | border: none; | 162 | border: none; |
163 | margin-left: -24px; | 163 | margin-left: -24px; |
164 | z-index: 9; | 164 | z-index: 9; |
165 | color: #a3a3a3; | 165 | color: #a3a3a3; |
166 | &:focus{ | 166 | &:focus{ |
167 | outline: none; | 167 | outline: none; |
168 | } | 168 | } |
169 | } | 169 | } |
170 | 170 | .custom-control-input { | |
171 | .checkbox { | 171 | &:checked ~ .custom-control-label::before { |
172 | display: inline-block; | 172 | border: none !important; |
173 | position: relative; | 173 | color: $primary !important; |
174 | } | 174 | background-color: $primary !important; |
175 | 175 | box-shadow: 0px 0px 0px 2px $primaryTransparency !important; | |
176 | /* Hide the browser's default checkbox */ | 176 | } |
177 | .checkbox input { | 177 | &:active ~ .custom-control-label::before { |
178 | position: absolute; | 178 | border: none !important; |
179 | opacity: 0; | 179 | color: $primary !important; |
180 | cursor: pointer; | 180 | background-color: $primary !important; |
181 | height: 0; | 181 | } |
182 | width: 0; | 182 | &:focus ~ .custom-control-label::before { |
183 | } | 183 | border: none !important; |
184 | 184 | box-shadow: 0px 0px 0px 2px $primaryTransparency !important; | |
185 | /* Create a custom checkbox */ | 185 | } |
186 | .checkmark { | 186 | &:focus:not(:checked) ~ .custom-control-label::before { |
187 | cursor: pointer; | 187 | border: none !important; |
188 | position: absolute; | 188 | } |
189 | top: -2px; | 189 | &:not(:disabled):active ~ .custom-control-label::before { |
190 | left: -15px; | 190 | border: none !important; |
191 | height: 12px; | 191 | color: $primary !important; |
192 | width: 12px; | 192 | box-shadow: 0px 0px 0px 2px $primaryTransparency !important; |
193 | background-color: #ffffff; | 193 | } |
194 | border: 1px solid #a3a3a3; | 194 | &:hover ~ .custom-control-label::before { |
195 | } | 195 | border: none !important; |
196 | 196 | background-color: $primaryTransparency; | |
197 | /* When the checkbox is checked, add a blue background */ | 197 | } |
198 | .checkbox input:checked ~ .checkmark { | ||
199 | background-color: $primary; | ||
200 | border: 1px solid $primary; | ||
201 | box-shadow: 0px 0px 0px 3px $primaryTransparency !important; | ||
202 | } | ||
203 | |||
204 | /* Create the checkmark/indicator (hidden when not checked) */ | ||
205 | .checkmark:after { | ||
206 | content: ""; | ||
207 | position: absolute; | ||
208 | display: none; | ||
209 | } | ||
210 | |||
211 | /* Show the checkmark when checked */ | ||
212 | .checkbox input:checked ~ .checkmark:after { | ||
213 | display: block; | ||
214 | } | ||
215 | .col-centered { | ||
216 | display: block; | ||
217 | margin-left: auto; | ||
218 | margin-right: auto; | ||
219 | text-align: center; | ||
220 | } | 198 | } |
221 | 199 |