-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Expand file tree
/
Copy pathmodal.native.scss
More file actions
64 lines (52 loc) · 1.42 KB
/
modal.native.scss
File metadata and controls
64 lines (52 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@use "./modal.common";
@import "./modal.native.vars.scss";
@import "../../themes/native/native.globals";
// Modals: Native Styles
// --------------------------------------------------
:host {
--background: #{$background-color};
--border-radius: 0;
--backdrop-opacity: 0;
color: $modal-text-color;
}
@media only screen and (min-width: $modal-inset-min-width) and (min-height: $modal-inset-min-height-small) {
:host {
--width: #{$modal-inset-width};
--height: #{$modal-inset-height-small};
--ion-safe-area-top: 0px;
--ion-safe-area-bottom: 0px;
--ion-safe-area-right: 0px;
--ion-safe-area-left: 0px;
}
}
@media only screen and (min-width: $modal-inset-min-width) and (min-height: $modal-inset-min-height-large) {
:host {
--width: #{$modal-inset-width};
--height: #{$modal-inset-height-large};
}
}
// Sheet Modal
// --------------------------------------------------
.modal-handle {
@include position(5px, 0px, null, 0px);
@include border-radius(8px, 8px, 8px, 8px);
width: 36px;
height: 5px;
background: var(--ion-background-color-step-350, #c0c0be);
&::before {
/**
* Adds a 4px tap area to the perimeter
* of the handle.
*/
@include padding(4px, 4px, 4px, 4px);
width: 36px;
height: 5px;
}
}
/**
* Ensure that the sheet modal does not
* completely cover the content.
*/
:host(.modal-sheet) {
--height: calc(100% - (var(--ion-safe-area-top) + 10px));
}