-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathSoftKey.scss
More file actions
84 lines (74 loc) · 1.91 KB
/
Copy pathSoftKey.scss
File metadata and controls
84 lines (74 loc) · 1.91 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
@import '../../theme/fonts.scss';
@import '../../theme/theme.scss';
@import '../../theme/layout';
:root {
--softkeybar-background-color: var(--color-gs20, #cccccc);
--softkey-color: var(--color-gs90, #323232);
--softkey-color--icon: var(--color-gs70, #6a6a6a);
--softkey-color--disabled: var(--color-eta, #c7c7c7);
--softkey-background-color--active: #00aacc;
--softkey-icon-size: 2rem;
}
.kai-softkey {
$skbar-gap: 0.5rem;
z-index: var(--z-index--softkey, 9999);
display: flex;
justify-content: space-between;
outline: none;
text-align: center;
color: var(--softkey-color);
background-color: var(--softkeybar-background-color);
position: absolute;
bottom: 0;
width: 100%;
&:not(.visible) {
opacity: 0;
}
> * {
text-transform: capitalize;
&:first-child {
@extend h5;
min-width: 7.2rem + $skbar-gap;
padding: 0 0 0 $skbar-gap;
text-align: left;
}
&:nth-child(2) {
font-size: 1.6rem;
font-weight: 700;
min-width: 2rem + $skbar-gap * 2; // min gap between LSK & RSK = 2rem
max-width: 7.6rem;
text-transform: uppercase;
padding: 0 $skbar-gap;
}
&:last-child {
@extend h5;
min-width: 7.2rem + $skbar-gap;
text-align: right;
padding: 0 $skbar-gap 0 0;
}
}
&-btn {
display: block;
min-width: 1rem;
height: var(--softkeybar-height);
line-height: var(--softkeybar-height);
border: unset;
overflow: hidden;
@extend %text-ellipsis;
color: var(--softkey-color);
background: unset;
&:active,
&.active {
background-color: var(--softkey-background-color--active);
}
&[disabled] {
--softkey-color: var(--softkey-color--disabled);
background-color: transparent;
pointer-events: auto;
}
&[data-icon] {
--softkey-font-size: var(--softkey-icon-size);
--softkey-color: var(--softkey-color--icon);
}
}
}