-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathButton.scss
More file actions
77 lines (69 loc) · 1.44 KB
/
Copy pathButton.scss
File metadata and controls
77 lines (69 loc) · 1.44 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
@import '../../theme/fonts.scss';
@import '../../theme/theme.scss';
@import '../../theme/layout';
@import '../../kai-font/style.scss';
:root {
--button-text-focused: var(--color-gs00);
--button-icon-unfocused: var(--color-gs100);
}
.kai-button {
margin: 1rem;
&-input {
line-height: calc(var(--button-height) / 2);
width: 100%;
height: var(--button-height);
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
@extend %text-ellipsis;
overflow: hidden;
border: none;
outline: none;
&:focus {
color: var(--button-text-focused);
}
}
&-icon {
&-focused {
span::before {
@include button-icon;
color: var(--button-text-focused);
}
img {
@include button-icon;
color: var(--button-text-focused);
max-height: calc(var(--button-height) / 2);
}
}
&-unfocused {
span::before {
@include button-icon;
color: var(--button-icon-unfocused);
}
img {
@include button-icon;
color: var(--button-icon-unfocused);
max-height: calc(var(--button-height) / 2);
}
}
}
&-line {
span {
padding: 0;
width: 100%;
overflow: hidden;
}
}
.left {
box-sizing: border-box;
padding: 1rem 0 1rem 1rem;
}
.right {
box-sizing: border-box;
padding: 1rem 1rem 1rem 0;
}
&-text {
@extend .p-btn;
}
}