Skip to content

Commit 5aa2507

Browse files
committed
in date-range-input, when is in mobile mode, change to a popup
1 parent 6fe3c81 commit 5aa2507

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

projects/some-angular-utils/filter/src/lib/components/date-range-input/date-range-input.component.scss

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,18 +143,29 @@
143143
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
144144
padding: 1.25rem;
145145
width: 540px;
146+
max-width: calc(100vw - 2rem);
146147
display: flex;
147148
flex-direction: column;
148149
gap: 1rem;
149150
cursor: default;
150151
box-sizing: border-box;
151152

153+
@media (min-width: 769px) {
154+
.sau-filter__item:nth-last-child(-n+2) & {
155+
left: auto;
156+
right: 0;
157+
}
158+
}
159+
152160
@media (max-width: 768px) {
153-
width: calc(100vw - 2rem);
161+
width: calc(100vw - 1.5rem);
154162
max-width: 340px;
163+
position: fixed;
164+
top: 50%;
155165
left: 50%;
156-
/* Centrado en pantallas móviles */
157-
transform: translateX(-50%);
166+
transform: translate(-50%, -50%);
167+
z-index: 100;
168+
box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.4);
158169
}
159170
}
160171

0 commit comments

Comments
 (0)