Repository navigation
Expand file tree
/
Copy pathionic-tabs.css
More file actions
113 lines (101 loc) · 2.88 KB
/
Copy pathionic-tabs.css
File metadata and controls
113 lines (101 loc) · 2.88 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
.vertical-bars-leading ion-tab-bar,
.vertical-bars-trailing ion-tab-bar {
position: absolute;
bottom: var(--vertical-tab-bar-bottom, 24px);
z-index: 10;
flex-direction: column;
width: 52px;
height: auto;
padding: 3px 2px;
border: none;
border-radius: 24.5px;
contain: none;
background: rgba(255, 255, 255, 0.78);
-webkit-backdrop-filter: blur(12px) saturate(180%);
backdrop-filter: blur(12px) saturate(180%);
--color-selected: #0071e3;
box-shadow:
inset 0 0 0 0.5px rgba(0, 0, 0, 0.2),
inset 0 0 8px rgba(0, 0, 0, 0.04),
0 2px 10px rgba(0, 0, 0, 0.05);
}
.vertical-bars-leading ion-tab-bar {
inset-inline-start: 24px;
}
.vertical-bars-trailing ion-tab-bar {
inset-inline-end: 24px;
}
.vertical-bars-leading ion-tab-button,
.vertical-bars-trailing ion-tab-button {
--background: transparent;
--background-focused: transparent;
--color: #111;
--color-selected: #0088ff;
--padding-start: 0;
--padding-end: 0;
flex: 0 0 auto;
width: 100%;
min-width: 44px;
max-width: none;
height: 54px;
min-height: 48px;
border-radius: 22px;
}
/* Hidden to the eye, still there for VoiceOver and TalkBack: `display: none`
would take the tab's name out of the accessibility tree. */
.vertical-bars-leading ion-tab-button ion-label,
.vertical-bars-trailing ion-tab-button ion-label {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
border: 0;
overflow: hidden;
clip: rect(0 0 0 0);
clip-path: inset(50%);
white-space: nowrap;
}
.vertical-bars-leading ion-tab-button.tab-selected,
.vertical-bars-trailing ion-tab-button.tab-selected {
background: rgba(0, 0, 0, 0.08);
}
.vertical-bars-leading ion-content {
--padding-start: env(safe-area-inset-left);
}
.vertical-bars-trailing ion-content {
--padding-end: env(safe-area-inset-right);
}
.foldable-keyboard-open ion-tab-bar,
ion-tab-bar[hidden] {
display: none;
}
@media (prefers-color-scheme: dark) {
.vertical-bars-leading ion-tab-bar,
.vertical-bars-trailing ion-tab-bar {
background: rgba(40, 40, 40, 0.78);
box-shadow:
inset 0 0 0 0.5px rgba(255, 255, 255, 0.18),
inset 0 0 8px rgba(255, 255, 255, 0.04),
0 2px 10px rgba(0, 0, 0, 0.3);
}
.vertical-bars-leading ion-tab-button,
.vertical-bars-trailing ion-tab-button {
--color: #f2f2f2;
}
.vertical-bars-leading ion-tab-button.tab-selected,
.vertical-bars-trailing ion-tab-button.tab-selected {
background: rgba(255, 255, 255, 0.1);
}
}
/* Reduced transparency, higher contrast, forced colours: drop the blur and
give the pill an opaque background so the icons stay legible. */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
.vertical-bars-leading ion-tab-bar,
.vertical-bars-trailing ion-tab-bar {
background: Canvas;
-webkit-backdrop-filter: none;
backdrop-filter: none;
border: 1px solid CanvasText;
}
}