@onpe/ui 1.2.65 → 1.2.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.css +132 -140
- package/dist/components.esm.css +132 -140
- package/dist/index.css +132 -140
- package/dist/index.esm.css +132 -140
- package/package.json +1 -1
package/dist/components.css
CHANGED
|
@@ -218,146 +218,138 @@
|
|
|
218
218
|
background-color: rgba(0, 55, 112, 0.8); /* onpe-ui-blue/80 */
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
/* Modal Component Styles */
|
|
222
|
-
.onpe-modal-container {
|
|
223
|
-
position: fixed;
|
|
224
|
-
top: 0;
|
|
225
|
-
width: 100%;
|
|
226
|
-
height: 100vh;
|
|
227
|
-
display: grid;
|
|
228
|
-
place-items: center;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/* Prevenir scroll del body cuando el modal está abierto */
|
|
232
|
-
body.onpe-modal-open {
|
|
233
|
-
overflow: hidden;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.onpe-modal-container.onpe-modal-open {
|
|
237
|
-
opacity: 1;
|
|
238
|
-
pointer-events: auto;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
.onpe-modal-container.onpe-modal-closed {
|
|
243
|
-
opacity: 0;
|
|
244
|
-
pointer-events: none;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.onpe-modal-content-wrapper {
|
|
248
|
-
position: relative;
|
|
249
|
-
display: grid;
|
|
250
|
-
place-items: center;
|
|
251
|
-
z-index: 20;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.onpe-modal-content {
|
|
255
|
-
position: relative;
|
|
256
|
-
display: flex;
|
|
257
|
-
flex-direction: column;
|
|
258
|
-
align-items: center;
|
|
259
|
-
justify-content: flex-start; /* Cambiar de center a flex-start para que el scroll funcione correctamente */
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.onpe-modal-overlay {
|
|
263
|
-
background: var(--onpe-ui-blue);
|
|
264
|
-
opacity: 0.75;
|
|
265
|
-
inset: 0;
|
|
266
|
-
position: fixed;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.onpe-modal-content.onpe-modal-with-background {
|
|
270
|
-
background-color: white;
|
|
271
|
-
padding: 25px 1rem 50px 1rem; /* Móvil: top 25px, bottom 50px, left/right 1rem */
|
|
272
|
-
min-width: 320px;
|
|
273
|
-
width: 95vw; /* Móvil: 95vw automático */
|
|
274
|
-
max-width: 95vw; /* Móvil: 95vw automático */
|
|
275
|
-
max-height: 90vh;
|
|
276
|
-
overflow-y: auto;
|
|
277
|
-
scroll-behavior: smooth; /* Scroll suave */
|
|
278
|
-
scrollbar-width: thin; /* Scrollbar más delgado */
|
|
279
|
-
scrollbar-color: #cbd5e0 #f7fafc; /* Colores del scrollbar */
|
|
280
|
-
transition: scroll-behavior 0.1s ease-in-out; /* Transición suave para el reset */
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
/* Permitir que el contenido interno defina su propio tamaño */
|
|
284
|
-
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
285
|
-
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/* Estilos para el scrollbar en WebKit (Chrome, Safari, Edge) */
|
|
289
|
-
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar {
|
|
290
|
-
width: 8px;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-track {
|
|
294
|
-
background: #f7fafc;
|
|
295
|
-
border-radius: 4px;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-thumb {
|
|
299
|
-
background: #cbd5e0;
|
|
300
|
-
border-radius: 4px;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-thumb:hover {
|
|
304
|
-
background: #a0aec0;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.onpe-modal-content.onpe-modal-without-background {
|
|
308
|
-
/* Sin fondo - solo contenido */
|
|
309
|
-
background: transparent;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.onpe-modal-close-button {
|
|
313
|
-
position: absolute;
|
|
314
|
-
top:
|
|
315
|
-
right:
|
|
316
|
-
color: var(--onpe-ui-red);
|
|
317
|
-
z-index: 30;
|
|
318
|
-
cursor: pointer;
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
padding: 35px 2rem 54px 2rem; /* Desktop grande: top 35px, bottom 54px, left/right 2rem */
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
/* Permitir que el contenido interno defina su propio tamaño en desktop grande */
|
|
357
|
-
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
358
|
-
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
359
|
-
}
|
|
360
|
-
}
|
|
221
|
+
/* Modal Component Styles */
|
|
222
|
+
.onpe-modal-container {
|
|
223
|
+
position: fixed;
|
|
224
|
+
top: 0;
|
|
225
|
+
width: 100%;
|
|
226
|
+
height: 100vh;
|
|
227
|
+
display: grid;
|
|
228
|
+
place-items: center;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* Prevenir scroll del body cuando el modal está abierto */
|
|
232
|
+
body.onpe-modal-open {
|
|
233
|
+
overflow: hidden;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.onpe-modal-container.onpe-modal-open {
|
|
237
|
+
opacity: 1;
|
|
238
|
+
pointer-events: auto;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
.onpe-modal-container.onpe-modal-closed {
|
|
243
|
+
opacity: 0;
|
|
244
|
+
pointer-events: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.onpe-modal-content-wrapper {
|
|
248
|
+
position: relative;
|
|
249
|
+
display: grid;
|
|
250
|
+
place-items: center;
|
|
251
|
+
z-index: 20;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.onpe-modal-content {
|
|
255
|
+
position: relative;
|
|
256
|
+
display: flex;
|
|
257
|
+
flex-direction: column;
|
|
258
|
+
align-items: center;
|
|
259
|
+
justify-content: flex-start; /* Cambiar de center a flex-start para que el scroll funcione correctamente */
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.onpe-modal-overlay {
|
|
263
|
+
background: var(--onpe-ui-blue);
|
|
264
|
+
opacity: 0.75;
|
|
265
|
+
inset: 0;
|
|
266
|
+
position: fixed;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.onpe-modal-content.onpe-modal-with-background {
|
|
270
|
+
background-color: white;
|
|
271
|
+
padding: 25px 1rem 50px 1rem; /* Móvil: top 25px, bottom 50px, left/right 1rem */
|
|
272
|
+
min-width: 320px;
|
|
273
|
+
width: 95vw; /* Móvil: 95vw automático */
|
|
274
|
+
max-width: 95vw; /* Móvil: 95vw automático */
|
|
275
|
+
max-height: 90vh;
|
|
276
|
+
overflow-y: auto;
|
|
277
|
+
scroll-behavior: smooth; /* Scroll suave */
|
|
278
|
+
scrollbar-width: thin; /* Scrollbar más delgado */
|
|
279
|
+
scrollbar-color: #cbd5e0 #f7fafc; /* Colores del scrollbar */
|
|
280
|
+
transition: scroll-behavior 0.1s ease-in-out; /* Transición suave para el reset */
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* Permitir que el contenido interno defina su propio tamaño */
|
|
284
|
+
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
285
|
+
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* Estilos para el scrollbar en WebKit (Chrome, Safari, Edge) */
|
|
289
|
+
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar {
|
|
290
|
+
width: 8px;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-track {
|
|
294
|
+
background: #f7fafc;
|
|
295
|
+
border-radius: 4px;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-thumb {
|
|
299
|
+
background: #cbd5e0;
|
|
300
|
+
border-radius: 4px;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-thumb:hover {
|
|
304
|
+
background: #a0aec0;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.onpe-modal-content.onpe-modal-without-background {
|
|
308
|
+
/* Sin fondo - solo contenido */
|
|
309
|
+
background: transparent;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.onpe-modal-close-button {
|
|
313
|
+
position: absolute;
|
|
314
|
+
top: 10px; /* top-4 */
|
|
315
|
+
right: 10px; /* right-4 */
|
|
316
|
+
color: var(--onpe-ui-red);
|
|
317
|
+
z-index: 30;
|
|
318
|
+
cursor: pointer;
|
|
319
|
+
width: 16px;
|
|
320
|
+
height: 16px;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
@media (min-width: 768px) {
|
|
325
|
+
.onpe-modal-content.onpe-modal-with-background {
|
|
326
|
+
padding: 35px 2rem 54px 2rem; /* Desktop: top 35px, bottom 54px, left/right 2rem */
|
|
327
|
+
max-width: 1000px;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* Permitir que el contenido interno defina su propio tamaño en desktop */
|
|
331
|
+
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
332
|
+
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.onpe-modal-close-button {
|
|
336
|
+
width: 28px;
|
|
337
|
+
height: 28px;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/* Desktop grande (> 1024px) - El usuario puede definir el tamaño */
|
|
342
|
+
@media (min-width: 1024px) {
|
|
343
|
+
.onpe-modal-content.onpe-modal-with-background {
|
|
344
|
+
/* Siempre 100% - cada modal define su max-width */
|
|
345
|
+
padding: 35px 2rem 54px 2rem; /* Desktop grande: top 35px, bottom 54px, left/right 2rem */
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/* Permitir que el contenido interno defina su propio tamaño en desktop grande */
|
|
349
|
+
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
350
|
+
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
351
|
+
}
|
|
352
|
+
}
|
|
361
353
|
|
|
362
354
|
/* ModalBrowserIncompatible Component Styles */
|
|
363
355
|
.onpe-modal-browser-incompatible-container {
|
package/dist/components.esm.css
CHANGED
|
@@ -218,146 +218,138 @@
|
|
|
218
218
|
background-color: rgba(0, 55, 112, 0.8); /* onpe-ui-blue/80 */
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
/* Modal Component Styles */
|
|
222
|
-
.onpe-modal-container {
|
|
223
|
-
position: fixed;
|
|
224
|
-
top: 0;
|
|
225
|
-
width: 100%;
|
|
226
|
-
height: 100vh;
|
|
227
|
-
display: grid;
|
|
228
|
-
place-items: center;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/* Prevenir scroll del body cuando el modal está abierto */
|
|
232
|
-
body.onpe-modal-open {
|
|
233
|
-
overflow: hidden;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.onpe-modal-container.onpe-modal-open {
|
|
237
|
-
opacity: 1;
|
|
238
|
-
pointer-events: auto;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
.onpe-modal-container.onpe-modal-closed {
|
|
243
|
-
opacity: 0;
|
|
244
|
-
pointer-events: none;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.onpe-modal-content-wrapper {
|
|
248
|
-
position: relative;
|
|
249
|
-
display: grid;
|
|
250
|
-
place-items: center;
|
|
251
|
-
z-index: 20;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.onpe-modal-content {
|
|
255
|
-
position: relative;
|
|
256
|
-
display: flex;
|
|
257
|
-
flex-direction: column;
|
|
258
|
-
align-items: center;
|
|
259
|
-
justify-content: flex-start; /* Cambiar de center a flex-start para que el scroll funcione correctamente */
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.onpe-modal-overlay {
|
|
263
|
-
background: var(--onpe-ui-blue);
|
|
264
|
-
opacity: 0.75;
|
|
265
|
-
inset: 0;
|
|
266
|
-
position: fixed;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.onpe-modal-content.onpe-modal-with-background {
|
|
270
|
-
background-color: white;
|
|
271
|
-
padding: 25px 1rem 50px 1rem; /* Móvil: top 25px, bottom 50px, left/right 1rem */
|
|
272
|
-
min-width: 320px;
|
|
273
|
-
width: 95vw; /* Móvil: 95vw automático */
|
|
274
|
-
max-width: 95vw; /* Móvil: 95vw automático */
|
|
275
|
-
max-height: 90vh;
|
|
276
|
-
overflow-y: auto;
|
|
277
|
-
scroll-behavior: smooth; /* Scroll suave */
|
|
278
|
-
scrollbar-width: thin; /* Scrollbar más delgado */
|
|
279
|
-
scrollbar-color: #cbd5e0 #f7fafc; /* Colores del scrollbar */
|
|
280
|
-
transition: scroll-behavior 0.1s ease-in-out; /* Transición suave para el reset */
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
/* Permitir que el contenido interno defina su propio tamaño */
|
|
284
|
-
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
285
|
-
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/* Estilos para el scrollbar en WebKit (Chrome, Safari, Edge) */
|
|
289
|
-
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar {
|
|
290
|
-
width: 8px;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-track {
|
|
294
|
-
background: #f7fafc;
|
|
295
|
-
border-radius: 4px;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-thumb {
|
|
299
|
-
background: #cbd5e0;
|
|
300
|
-
border-radius: 4px;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-thumb:hover {
|
|
304
|
-
background: #a0aec0;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.onpe-modal-content.onpe-modal-without-background {
|
|
308
|
-
/* Sin fondo - solo contenido */
|
|
309
|
-
background: transparent;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.onpe-modal-close-button {
|
|
313
|
-
position: absolute;
|
|
314
|
-
top:
|
|
315
|
-
right:
|
|
316
|
-
color: var(--onpe-ui-red);
|
|
317
|
-
z-index: 30;
|
|
318
|
-
cursor: pointer;
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
padding: 35px 2rem 54px 2rem; /* Desktop grande: top 35px, bottom 54px, left/right 2rem */
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
/* Permitir que el contenido interno defina su propio tamaño en desktop grande */
|
|
357
|
-
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
358
|
-
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
359
|
-
}
|
|
360
|
-
}
|
|
221
|
+
/* Modal Component Styles */
|
|
222
|
+
.onpe-modal-container {
|
|
223
|
+
position: fixed;
|
|
224
|
+
top: 0;
|
|
225
|
+
width: 100%;
|
|
226
|
+
height: 100vh;
|
|
227
|
+
display: grid;
|
|
228
|
+
place-items: center;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* Prevenir scroll del body cuando el modal está abierto */
|
|
232
|
+
body.onpe-modal-open {
|
|
233
|
+
overflow: hidden;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.onpe-modal-container.onpe-modal-open {
|
|
237
|
+
opacity: 1;
|
|
238
|
+
pointer-events: auto;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
.onpe-modal-container.onpe-modal-closed {
|
|
243
|
+
opacity: 0;
|
|
244
|
+
pointer-events: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.onpe-modal-content-wrapper {
|
|
248
|
+
position: relative;
|
|
249
|
+
display: grid;
|
|
250
|
+
place-items: center;
|
|
251
|
+
z-index: 20;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.onpe-modal-content {
|
|
255
|
+
position: relative;
|
|
256
|
+
display: flex;
|
|
257
|
+
flex-direction: column;
|
|
258
|
+
align-items: center;
|
|
259
|
+
justify-content: flex-start; /* Cambiar de center a flex-start para que el scroll funcione correctamente */
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.onpe-modal-overlay {
|
|
263
|
+
background: var(--onpe-ui-blue);
|
|
264
|
+
opacity: 0.75;
|
|
265
|
+
inset: 0;
|
|
266
|
+
position: fixed;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.onpe-modal-content.onpe-modal-with-background {
|
|
270
|
+
background-color: white;
|
|
271
|
+
padding: 25px 1rem 50px 1rem; /* Móvil: top 25px, bottom 50px, left/right 1rem */
|
|
272
|
+
min-width: 320px;
|
|
273
|
+
width: 95vw; /* Móvil: 95vw automático */
|
|
274
|
+
max-width: 95vw; /* Móvil: 95vw automático */
|
|
275
|
+
max-height: 90vh;
|
|
276
|
+
overflow-y: auto;
|
|
277
|
+
scroll-behavior: smooth; /* Scroll suave */
|
|
278
|
+
scrollbar-width: thin; /* Scrollbar más delgado */
|
|
279
|
+
scrollbar-color: #cbd5e0 #f7fafc; /* Colores del scrollbar */
|
|
280
|
+
transition: scroll-behavior 0.1s ease-in-out; /* Transición suave para el reset */
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* Permitir que el contenido interno defina su propio tamaño */
|
|
284
|
+
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
285
|
+
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* Estilos para el scrollbar en WebKit (Chrome, Safari, Edge) */
|
|
289
|
+
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar {
|
|
290
|
+
width: 8px;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-track {
|
|
294
|
+
background: #f7fafc;
|
|
295
|
+
border-radius: 4px;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-thumb {
|
|
299
|
+
background: #cbd5e0;
|
|
300
|
+
border-radius: 4px;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-thumb:hover {
|
|
304
|
+
background: #a0aec0;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.onpe-modal-content.onpe-modal-without-background {
|
|
308
|
+
/* Sin fondo - solo contenido */
|
|
309
|
+
background: transparent;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.onpe-modal-close-button {
|
|
313
|
+
position: absolute;
|
|
314
|
+
top: 10px; /* top-4 */
|
|
315
|
+
right: 10px; /* right-4 */
|
|
316
|
+
color: var(--onpe-ui-red);
|
|
317
|
+
z-index: 30;
|
|
318
|
+
cursor: pointer;
|
|
319
|
+
width: 16px;
|
|
320
|
+
height: 16px;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
@media (min-width: 768px) {
|
|
325
|
+
.onpe-modal-content.onpe-modal-with-background {
|
|
326
|
+
padding: 35px 2rem 54px 2rem; /* Desktop: top 35px, bottom 54px, left/right 2rem */
|
|
327
|
+
max-width: 1000px;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* Permitir que el contenido interno defina su propio tamaño en desktop */
|
|
331
|
+
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
332
|
+
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.onpe-modal-close-button {
|
|
336
|
+
width: 28px;
|
|
337
|
+
height: 28px;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/* Desktop grande (> 1024px) - El usuario puede definir el tamaño */
|
|
342
|
+
@media (min-width: 1024px) {
|
|
343
|
+
.onpe-modal-content.onpe-modal-with-background {
|
|
344
|
+
/* Siempre 100% - cada modal define su max-width */
|
|
345
|
+
padding: 35px 2rem 54px 2rem; /* Desktop grande: top 35px, bottom 54px, left/right 2rem */
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/* Permitir que el contenido interno defina su propio tamaño en desktop grande */
|
|
349
|
+
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
350
|
+
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
351
|
+
}
|
|
352
|
+
}
|
|
361
353
|
|
|
362
354
|
/* ModalBrowserIncompatible Component Styles */
|
|
363
355
|
.onpe-modal-browser-incompatible-container {
|
package/dist/index.css
CHANGED
|
@@ -218,146 +218,138 @@
|
|
|
218
218
|
background-color: rgba(0, 55, 112, 0.8); /* onpe-ui-blue/80 */
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
/* Modal Component Styles */
|
|
222
|
-
.onpe-modal-container {
|
|
223
|
-
position: fixed;
|
|
224
|
-
top: 0;
|
|
225
|
-
width: 100%;
|
|
226
|
-
height: 100vh;
|
|
227
|
-
display: grid;
|
|
228
|
-
place-items: center;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/* Prevenir scroll del body cuando el modal está abierto */
|
|
232
|
-
body.onpe-modal-open {
|
|
233
|
-
overflow: hidden;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.onpe-modal-container.onpe-modal-open {
|
|
237
|
-
opacity: 1;
|
|
238
|
-
pointer-events: auto;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
.onpe-modal-container.onpe-modal-closed {
|
|
243
|
-
opacity: 0;
|
|
244
|
-
pointer-events: none;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.onpe-modal-content-wrapper {
|
|
248
|
-
position: relative;
|
|
249
|
-
display: grid;
|
|
250
|
-
place-items: center;
|
|
251
|
-
z-index: 20;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.onpe-modal-content {
|
|
255
|
-
position: relative;
|
|
256
|
-
display: flex;
|
|
257
|
-
flex-direction: column;
|
|
258
|
-
align-items: center;
|
|
259
|
-
justify-content: flex-start; /* Cambiar de center a flex-start para que el scroll funcione correctamente */
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.onpe-modal-overlay {
|
|
263
|
-
background: var(--onpe-ui-blue);
|
|
264
|
-
opacity: 0.75;
|
|
265
|
-
inset: 0;
|
|
266
|
-
position: fixed;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.onpe-modal-content.onpe-modal-with-background {
|
|
270
|
-
background-color: white;
|
|
271
|
-
padding: 25px 1rem 50px 1rem; /* Móvil: top 25px, bottom 50px, left/right 1rem */
|
|
272
|
-
min-width: 320px;
|
|
273
|
-
width: 95vw; /* Móvil: 95vw automático */
|
|
274
|
-
max-width: 95vw; /* Móvil: 95vw automático */
|
|
275
|
-
max-height: 90vh;
|
|
276
|
-
overflow-y: auto;
|
|
277
|
-
scroll-behavior: smooth; /* Scroll suave */
|
|
278
|
-
scrollbar-width: thin; /* Scrollbar más delgado */
|
|
279
|
-
scrollbar-color: #cbd5e0 #f7fafc; /* Colores del scrollbar */
|
|
280
|
-
transition: scroll-behavior 0.1s ease-in-out; /* Transición suave para el reset */
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
/* Permitir que el contenido interno defina su propio tamaño */
|
|
284
|
-
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
285
|
-
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/* Estilos para el scrollbar en WebKit (Chrome, Safari, Edge) */
|
|
289
|
-
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar {
|
|
290
|
-
width: 8px;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-track {
|
|
294
|
-
background: #f7fafc;
|
|
295
|
-
border-radius: 4px;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-thumb {
|
|
299
|
-
background: #cbd5e0;
|
|
300
|
-
border-radius: 4px;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-thumb:hover {
|
|
304
|
-
background: #a0aec0;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.onpe-modal-content.onpe-modal-without-background {
|
|
308
|
-
/* Sin fondo - solo contenido */
|
|
309
|
-
background: transparent;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.onpe-modal-close-button {
|
|
313
|
-
position: absolute;
|
|
314
|
-
top:
|
|
315
|
-
right:
|
|
316
|
-
color: var(--onpe-ui-red);
|
|
317
|
-
z-index: 30;
|
|
318
|
-
cursor: pointer;
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
padding: 35px 2rem 54px 2rem; /* Desktop grande: top 35px, bottom 54px, left/right 2rem */
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
/* Permitir que el contenido interno defina su propio tamaño en desktop grande */
|
|
357
|
-
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
358
|
-
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
359
|
-
}
|
|
360
|
-
}
|
|
221
|
+
/* Modal Component Styles */
|
|
222
|
+
.onpe-modal-container {
|
|
223
|
+
position: fixed;
|
|
224
|
+
top: 0;
|
|
225
|
+
width: 100%;
|
|
226
|
+
height: 100vh;
|
|
227
|
+
display: grid;
|
|
228
|
+
place-items: center;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* Prevenir scroll del body cuando el modal está abierto */
|
|
232
|
+
body.onpe-modal-open {
|
|
233
|
+
overflow: hidden;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.onpe-modal-container.onpe-modal-open {
|
|
237
|
+
opacity: 1;
|
|
238
|
+
pointer-events: auto;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
.onpe-modal-container.onpe-modal-closed {
|
|
243
|
+
opacity: 0;
|
|
244
|
+
pointer-events: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.onpe-modal-content-wrapper {
|
|
248
|
+
position: relative;
|
|
249
|
+
display: grid;
|
|
250
|
+
place-items: center;
|
|
251
|
+
z-index: 20;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.onpe-modal-content {
|
|
255
|
+
position: relative;
|
|
256
|
+
display: flex;
|
|
257
|
+
flex-direction: column;
|
|
258
|
+
align-items: center;
|
|
259
|
+
justify-content: flex-start; /* Cambiar de center a flex-start para que el scroll funcione correctamente */
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.onpe-modal-overlay {
|
|
263
|
+
background: var(--onpe-ui-blue);
|
|
264
|
+
opacity: 0.75;
|
|
265
|
+
inset: 0;
|
|
266
|
+
position: fixed;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.onpe-modal-content.onpe-modal-with-background {
|
|
270
|
+
background-color: white;
|
|
271
|
+
padding: 25px 1rem 50px 1rem; /* Móvil: top 25px, bottom 50px, left/right 1rem */
|
|
272
|
+
min-width: 320px;
|
|
273
|
+
width: 95vw; /* Móvil: 95vw automático */
|
|
274
|
+
max-width: 95vw; /* Móvil: 95vw automático */
|
|
275
|
+
max-height: 90vh;
|
|
276
|
+
overflow-y: auto;
|
|
277
|
+
scroll-behavior: smooth; /* Scroll suave */
|
|
278
|
+
scrollbar-width: thin; /* Scrollbar más delgado */
|
|
279
|
+
scrollbar-color: #cbd5e0 #f7fafc; /* Colores del scrollbar */
|
|
280
|
+
transition: scroll-behavior 0.1s ease-in-out; /* Transición suave para el reset */
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* Permitir que el contenido interno defina su propio tamaño */
|
|
284
|
+
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
285
|
+
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* Estilos para el scrollbar en WebKit (Chrome, Safari, Edge) */
|
|
289
|
+
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar {
|
|
290
|
+
width: 8px;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-track {
|
|
294
|
+
background: #f7fafc;
|
|
295
|
+
border-radius: 4px;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-thumb {
|
|
299
|
+
background: #cbd5e0;
|
|
300
|
+
border-radius: 4px;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-thumb:hover {
|
|
304
|
+
background: #a0aec0;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.onpe-modal-content.onpe-modal-without-background {
|
|
308
|
+
/* Sin fondo - solo contenido */
|
|
309
|
+
background: transparent;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.onpe-modal-close-button {
|
|
313
|
+
position: absolute;
|
|
314
|
+
top: 10px; /* top-4 */
|
|
315
|
+
right: 10px; /* right-4 */
|
|
316
|
+
color: var(--onpe-ui-red);
|
|
317
|
+
z-index: 30;
|
|
318
|
+
cursor: pointer;
|
|
319
|
+
width: 16px;
|
|
320
|
+
height: 16px;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
@media (min-width: 768px) {
|
|
325
|
+
.onpe-modal-content.onpe-modal-with-background {
|
|
326
|
+
padding: 35px 2rem 54px 2rem; /* Desktop: top 35px, bottom 54px, left/right 2rem */
|
|
327
|
+
max-width: 1000px;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* Permitir que el contenido interno defina su propio tamaño en desktop */
|
|
331
|
+
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
332
|
+
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.onpe-modal-close-button {
|
|
336
|
+
width: 28px;
|
|
337
|
+
height: 28px;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/* Desktop grande (> 1024px) - El usuario puede definir el tamaño */
|
|
342
|
+
@media (min-width: 1024px) {
|
|
343
|
+
.onpe-modal-content.onpe-modal-with-background {
|
|
344
|
+
/* Siempre 100% - cada modal define su max-width */
|
|
345
|
+
padding: 35px 2rem 54px 2rem; /* Desktop grande: top 35px, bottom 54px, left/right 2rem */
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/* Permitir que el contenido interno defina su propio tamaño en desktop grande */
|
|
349
|
+
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
350
|
+
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
351
|
+
}
|
|
352
|
+
}
|
|
361
353
|
|
|
362
354
|
/* ModalBrowserIncompatible Component Styles */
|
|
363
355
|
.onpe-modal-browser-incompatible-container {
|
package/dist/index.esm.css
CHANGED
|
@@ -218,146 +218,138 @@
|
|
|
218
218
|
background-color: rgba(0, 55, 112, 0.8); /* onpe-ui-blue/80 */
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
-
/* Modal Component Styles */
|
|
222
|
-
.onpe-modal-container {
|
|
223
|
-
position: fixed;
|
|
224
|
-
top: 0;
|
|
225
|
-
width: 100%;
|
|
226
|
-
height: 100vh;
|
|
227
|
-
display: grid;
|
|
228
|
-
place-items: center;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/* Prevenir scroll del body cuando el modal está abierto */
|
|
232
|
-
body.onpe-modal-open {
|
|
233
|
-
overflow: hidden;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.onpe-modal-container.onpe-modal-open {
|
|
237
|
-
opacity: 1;
|
|
238
|
-
pointer-events: auto;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
.onpe-modal-container.onpe-modal-closed {
|
|
243
|
-
opacity: 0;
|
|
244
|
-
pointer-events: none;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.onpe-modal-content-wrapper {
|
|
248
|
-
position: relative;
|
|
249
|
-
display: grid;
|
|
250
|
-
place-items: center;
|
|
251
|
-
z-index: 20;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.onpe-modal-content {
|
|
255
|
-
position: relative;
|
|
256
|
-
display: flex;
|
|
257
|
-
flex-direction: column;
|
|
258
|
-
align-items: center;
|
|
259
|
-
justify-content: flex-start; /* Cambiar de center a flex-start para que el scroll funcione correctamente */
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.onpe-modal-overlay {
|
|
263
|
-
background: var(--onpe-ui-blue);
|
|
264
|
-
opacity: 0.75;
|
|
265
|
-
inset: 0;
|
|
266
|
-
position: fixed;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.onpe-modal-content.onpe-modal-with-background {
|
|
270
|
-
background-color: white;
|
|
271
|
-
padding: 25px 1rem 50px 1rem; /* Móvil: top 25px, bottom 50px, left/right 1rem */
|
|
272
|
-
min-width: 320px;
|
|
273
|
-
width: 95vw; /* Móvil: 95vw automático */
|
|
274
|
-
max-width: 95vw; /* Móvil: 95vw automático */
|
|
275
|
-
max-height: 90vh;
|
|
276
|
-
overflow-y: auto;
|
|
277
|
-
scroll-behavior: smooth; /* Scroll suave */
|
|
278
|
-
scrollbar-width: thin; /* Scrollbar más delgado */
|
|
279
|
-
scrollbar-color: #cbd5e0 #f7fafc; /* Colores del scrollbar */
|
|
280
|
-
transition: scroll-behavior 0.1s ease-in-out; /* Transición suave para el reset */
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
/* Permitir que el contenido interno defina su propio tamaño */
|
|
284
|
-
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
285
|
-
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/* Estilos para el scrollbar en WebKit (Chrome, Safari, Edge) */
|
|
289
|
-
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar {
|
|
290
|
-
width: 8px;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-track {
|
|
294
|
-
background: #f7fafc;
|
|
295
|
-
border-radius: 4px;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-thumb {
|
|
299
|
-
background: #cbd5e0;
|
|
300
|
-
border-radius: 4px;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-thumb:hover {
|
|
304
|
-
background: #a0aec0;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.onpe-modal-content.onpe-modal-without-background {
|
|
308
|
-
/* Sin fondo - solo contenido */
|
|
309
|
-
background: transparent;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.onpe-modal-close-button {
|
|
313
|
-
position: absolute;
|
|
314
|
-
top:
|
|
315
|
-
right:
|
|
316
|
-
color: var(--onpe-ui-red);
|
|
317
|
-
z-index: 30;
|
|
318
|
-
cursor: pointer;
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
padding: 35px 2rem 54px 2rem; /* Desktop grande: top 35px, bottom 54px, left/right 2rem */
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
/* Permitir que el contenido interno defina su propio tamaño en desktop grande */
|
|
357
|
-
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
358
|
-
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
359
|
-
}
|
|
360
|
-
}
|
|
221
|
+
/* Modal Component Styles */
|
|
222
|
+
.onpe-modal-container {
|
|
223
|
+
position: fixed;
|
|
224
|
+
top: 0;
|
|
225
|
+
width: 100%;
|
|
226
|
+
height: 100vh;
|
|
227
|
+
display: grid;
|
|
228
|
+
place-items: center;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* Prevenir scroll del body cuando el modal está abierto */
|
|
232
|
+
body.onpe-modal-open {
|
|
233
|
+
overflow: hidden;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.onpe-modal-container.onpe-modal-open {
|
|
237
|
+
opacity: 1;
|
|
238
|
+
pointer-events: auto;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
.onpe-modal-container.onpe-modal-closed {
|
|
243
|
+
opacity: 0;
|
|
244
|
+
pointer-events: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.onpe-modal-content-wrapper {
|
|
248
|
+
position: relative;
|
|
249
|
+
display: grid;
|
|
250
|
+
place-items: center;
|
|
251
|
+
z-index: 20;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.onpe-modal-content {
|
|
255
|
+
position: relative;
|
|
256
|
+
display: flex;
|
|
257
|
+
flex-direction: column;
|
|
258
|
+
align-items: center;
|
|
259
|
+
justify-content: flex-start; /* Cambiar de center a flex-start para que el scroll funcione correctamente */
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.onpe-modal-overlay {
|
|
263
|
+
background: var(--onpe-ui-blue);
|
|
264
|
+
opacity: 0.75;
|
|
265
|
+
inset: 0;
|
|
266
|
+
position: fixed;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.onpe-modal-content.onpe-modal-with-background {
|
|
270
|
+
background-color: white;
|
|
271
|
+
padding: 25px 1rem 50px 1rem; /* Móvil: top 25px, bottom 50px, left/right 1rem */
|
|
272
|
+
min-width: 320px;
|
|
273
|
+
width: 95vw; /* Móvil: 95vw automático */
|
|
274
|
+
max-width: 95vw; /* Móvil: 95vw automático */
|
|
275
|
+
max-height: 90vh;
|
|
276
|
+
overflow-y: auto;
|
|
277
|
+
scroll-behavior: smooth; /* Scroll suave */
|
|
278
|
+
scrollbar-width: thin; /* Scrollbar más delgado */
|
|
279
|
+
scrollbar-color: #cbd5e0 #f7fafc; /* Colores del scrollbar */
|
|
280
|
+
transition: scroll-behavior 0.1s ease-in-out; /* Transición suave para el reset */
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* Permitir que el contenido interno defina su propio tamaño */
|
|
284
|
+
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
285
|
+
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* Estilos para el scrollbar en WebKit (Chrome, Safari, Edge) */
|
|
289
|
+
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar {
|
|
290
|
+
width: 8px;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-track {
|
|
294
|
+
background: #f7fafc;
|
|
295
|
+
border-radius: 4px;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-thumb {
|
|
299
|
+
background: #cbd5e0;
|
|
300
|
+
border-radius: 4px;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.onpe-modal-content.onpe-modal-with-background::-webkit-scrollbar-thumb:hover {
|
|
304
|
+
background: #a0aec0;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.onpe-modal-content.onpe-modal-without-background {
|
|
308
|
+
/* Sin fondo - solo contenido */
|
|
309
|
+
background: transparent;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.onpe-modal-close-button {
|
|
313
|
+
position: absolute;
|
|
314
|
+
top: 10px; /* top-4 */
|
|
315
|
+
right: 10px; /* right-4 */
|
|
316
|
+
color: var(--onpe-ui-red);
|
|
317
|
+
z-index: 30;
|
|
318
|
+
cursor: pointer;
|
|
319
|
+
width: 16px;
|
|
320
|
+
height: 16px;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
@media (min-width: 768px) {
|
|
325
|
+
.onpe-modal-content.onpe-modal-with-background {
|
|
326
|
+
padding: 35px 2rem 54px 2rem; /* Desktop: top 35px, bottom 54px, left/right 2rem */
|
|
327
|
+
max-width: 1000px;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/* Permitir que el contenido interno defina su propio tamaño en desktop */
|
|
331
|
+
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
332
|
+
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.onpe-modal-close-button {
|
|
336
|
+
width: 28px;
|
|
337
|
+
height: 28px;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
/* Desktop grande (> 1024px) - El usuario puede definir el tamaño */
|
|
342
|
+
@media (min-width: 1024px) {
|
|
343
|
+
.onpe-modal-content.onpe-modal-with-background {
|
|
344
|
+
/* Siempre 100% - cada modal define su max-width */
|
|
345
|
+
padding: 35px 2rem 54px 2rem; /* Desktop grande: top 35px, bottom 54px, left/right 2rem */
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/* Permitir que el contenido interno defina su propio tamaño en desktop grande */
|
|
349
|
+
.onpe-modal-content.onpe-modal-with-background .onpe-modal-browser-incompatible-container {
|
|
350
|
+
max-width: none !important; /* Permitir que el contenido interno defina su tamaño */
|
|
351
|
+
}
|
|
352
|
+
}
|
|
361
353
|
|
|
362
354
|
/* ModalBrowserIncompatible Component Styles */
|
|
363
355
|
.onpe-modal-browser-incompatible-container {
|