File tree Expand file tree Collapse file tree 2 files changed +27
-12
lines changed Expand file tree Collapse file tree 2 files changed +27
-12
lines changed Original file line number Diff line number Diff line change 126
126
127
127
// ------------------ Focus
128
128
129
+ .btn :focus {
130
+ background-color : var (--md-sys-color-primary-container );
131
+ }
132
+
129
133
.btn :focus .elevated {
130
134
@extend .z-depth-1 ;
131
135
color : var (--md-sys-color-primary );
Original file line number Diff line number Diff line change 37
37
38
38
& .tabs-fixed-width {
39
39
display : flex ;
40
+
40
41
.tab {
41
42
flex-grow : 1 ;
42
43
}
43
44
}
44
45
45
46
position : relative ;
46
47
overflow-x : auto ;
47
- overflow-y : hidden ;
48
+ overflow-y : hidden ;
48
49
width : 100% ;
49
50
background-color : var (--md-sys-color-surface );
50
51
margin : 0 auto ;
55
56
list-style-type : none ;
56
57
display : inline-block ;
57
58
text-align : center ;
58
- line-height : 48px ;
59
+ line-height : 48px ;
59
60
padding : 0 ;
60
61
margin : 0 ;
61
62
62
63
i .material-icons {
63
64
position : relative ;
64
- top : 8px ;
65
- vertical-align : middle ;
65
+ top : 8px ;
66
+ vertical-align : middle ;
66
67
}
67
68
68
69
span {
85
86
background-color : rgba (var (--md-sys-color-primary-numeric ), 0.06 );
86
87
}
87
88
88
- & :focus ,
89
+ & :focus {
90
+ background-color : var (--md-sys-color-primary-container );
91
+ }
92
+
89
93
& .active {
90
94
background-color : rgba (var (--md-sys-color-primary-numeric ), 0.18 );
95
+ }
96
+
97
+ & :focus ,
98
+ & .active {
91
99
outline : none ;
92
100
}
93
101
94
102
color : var (--md-sys-color-on-surface-variant );
95
103
display : flex ;
96
- flex-direction : column ;
104
+ flex-direction : column ;
97
105
width : 100% ;
98
106
height : 100% ;
99
107
min-height : 48px ; // needed for only-icons tabs
109
117
& :not (:focus ) {
110
118
background-color : transparent ;
111
119
}
120
+
112
121
color : var (--md-sys-color-on-surface );
113
122
cursor : default ;
114
123
background-color : transparent ;
123
132
will-change : left , right ;
124
133
border-radius : 3px 3px 0 0 ;
125
134
}
126
-
127
- & .tabs-horizontal .tab {
135
+
136
+ & .tabs-horizontal .tab {
128
137
height : 48px ;
129
138
130
139
a {
131
140
display : block ;
132
141
}
133
-
142
+
134
143
i .material-icons {
135
144
padding : 0 4px ;
136
- position : relative ;
137
- top : -2px ;
138
- vertical-align : middle ;
145
+ position : relative ;
146
+ top : -2px ;
147
+ vertical-align : middle ;
139
148
}
140
149
}
141
150
}
145
154
@media #{$medium-and-down } {
146
155
.tabs {
147
156
display : flex ;
157
+
148
158
.tab {
149
159
flex-grow : 1 ;
160
+
150
161
a {
151
162
padding : 0 12px ;
152
163
}
You can’t perform that action at this time.
0 commit comments