-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Expand file tree
/
Copy pathaction-sheet.ionic.scss
More file actions
136 lines (104 loc) · 3.23 KB
/
action-sheet.ionic.scss
File metadata and controls
136 lines (104 loc) · 3.23 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
@use "../../themes/ionic/ionic.globals.scss" as globals;
@use "../../themes/mixins" as mixins;
@use "./action-sheet.common";
// Ionic Action Sheet
// --------------------------------------------------
:host {
--background: #{globals.$ion-bg-surface-default};
--backdrop-opacity: 0.7;
--button-background: transparent;
--button-background-selected: #{globals.$ion-semantics-primary-100};
--button-background-selected-opacity: 1;
--button-background-activated: #{globals.$ion-semantics-primary-100};
--button-background-activated-opacity: 1;
--button-background-hover: #{globals.$ion-semantics-primary-100};
--button-background-hover-opacity: 1;
--button-color: #{globals.$ion-text-default};
--button-color-disabled: #{globals.$ion-text-disabled};
--color: #{globals.$ion-text-default};
z-index: 1001;
}
.action-sheet-wrapper {
z-index: 10;
}
.action-sheet-button.ion-focused::after {
@include globals.focused-state(
globals.$ion-border-size-050,
globals.$ion-border-style-solid,
globals.$ion-border-focus-default
);
outline-offset: calc(globals.$ion-border-size-050 * -1);
}
// Action Sheet Wrapper
// -----------------------------------------
.action-sheet-wrapper {
@include mixins.margin(var(--ion-safe-area-top, 0), auto, 0, auto);
}
.action-sheet-title {
@include mixins.padding(globals.$ion-space-400);
@include globals.typography(globals.$ion-heading-h6-medium);
color: var(--color);
text-align: start;
}
.action-sheet-sub-title {
@include globals.typography(globals.$ion-body-md-regular);
color: globals.$ion-text-subtlest;
}
// Action Sheet Group
// -----------------------------------------
.action-sheet-group:first-child {
@include mixins.padding(globals.$ion-space-400, null, null, null);
}
.action-sheet-group:last-child {
@include mixins.padding(null, null, globals.$ion-space-400, null);
}
// Action Sheet Buttons
// -----------------------------------------
.action-sheet-button {
@include mixins.padding(
globals.$ion-space-300,
globals.$ion-space-400,
globals.$ion-space-300,
globals.$ion-space-400
);
@include globals.typography(globals.$ion-body-md-regular);
position: relative;
min-height: 52px;
text-align: start;
contain: content;
overflow: hidden;
}
.action-sheet-icon {
@include mixins.margin(globals.$ion-space-0, globals.$ion-space-600, globals.$ion-space-0, globals.$ion-space-0);
@include globals.typography(globals.$ion-body-md-regular);
color: var(--color, globals.$ion-text-default);
}
.action-sheet-button-inner {
justify-content: flex-start;
}
.action-sheet-selected {
font-weight: bold;
}
// Action Sheet: Select Option
// --------------------------------------------------
.action-sheet-button-label {
gap: globals.$ion-space-300;
}
.select-option-start,
.select-option-end {
gap: globals.$ion-space-200;
}
/**
* Cap slotted children so they can't stretch the option
* row out of proportion, keeping rows visually uniform
* regardless of the content.
*/
.select-option-start > *,
.select-option-end > * {
max-height: globals.$ion-scale-1200;
}
.select-option-description {
@include globals.typography(globals.$ion-body-md-regular);
@include globals.padding(globals.$ion-space-0);
color: globals.$ion-text-subtle;
}