@@ -19,11 +19,14 @@ $toolbar-order-md: (
19
19
$toolbar-md-padding : 4px !default ;
20
20
$toolbar-md-height : 5.6rem !default ;
21
21
$toolbar-md-title-font-size : 2rem !default ;
22
+ $toolbar-md-title-text-color : color-contrast ($colors-md , $toolbar-md-background , true ) !default ;
23
+
22
24
$toolbar-md-button-font-size : 1.4rem !default ;
23
- $navbar-md-height : $toolbar-md-height !default ;
24
25
25
- $bar-button-md-color : $toolbar-md-button-color !default ;
26
- $bar-button-md-border-radius : 2px !default ;
26
+ $toolbar-md-button-color : $toolbar-md-title-text-color !default ;
27
+ $toolbar-md-button-border-radius : 2px !default ;
28
+
29
+ $navbar-md-height : $toolbar-md-height !default ;
27
30
28
31
29
32
.toolbar {
@@ -62,7 +65,7 @@ ion-navbar-section {
62
65
63
66
font-size : $toolbar-md-title-font-size ;
64
67
font-weight : 500 ;
65
- color : $toolbar-md-text-color ;
68
+ color : $toolbar-md-title- text-color ;
66
69
}
67
70
68
71
@mixin md-toolbar-theme ($color-name , $color-base , $color-contrast ) {
@@ -142,7 +145,7 @@ ion-buttons[right] {
142
145
height : 32px ;
143
146
144
147
border : 0 ;
145
- border-radius : $bar-button-md -border-radius ;
148
+ border-radius : $toolbar-md-button -border-radius ;
146
149
font-size : $toolbar-md-button-font-size ;
147
150
font-weight : 500 ;
148
151
text-transform : uppercase ;
@@ -174,17 +177,17 @@ ion-buttons[right] {
174
177
.bar-button-outline {
175
178
border-width : 1px ;
176
179
border-style : solid ;
177
- border-color : $bar-button-md -color ;
178
- color : $bar-button-md -color ;
180
+ border-color : $toolbar-md-button -color ;
181
+ color : $toolbar-md-button -color ;
179
182
background-color : transparent ;
180
183
181
184
& :hover:not (.disable-hover ) {
182
185
opacity : .4 ;
183
186
}
184
187
185
188
& .activated {
186
- color : color-contrast ($colors-md , $bar-button- md-color );
187
- background-color : $bar-button-md -color ;
189
+ color : color-contrast ($colors-md , $toolbar- md-button- color , true );
190
+ background-color : $toolbar-md-button -color ;
188
191
}
189
192
}
190
193
@@ -209,16 +212,16 @@ ion-buttons[right] {
209
212
// --------------------------------------------------
210
213
211
214
.bar-button-solid {
212
- color : color-contrast ($colors-md , $bar-button- md-color );
213
- background-color : $bar-button-md -color ;
215
+ color : color-contrast ($colors-md , $toolbar- md-button- color , true );
216
+ background-color : $toolbar-md-button -color ;
214
217
215
218
& :hover:not (.disable-hover ) {
216
- color : color-contrast ($colors-md , $bar-button- md-color );
219
+ color : color-contrast ($colors-md , $toolbar- md-button- color , true );
217
220
}
218
221
219
222
& .activated {
220
- color : color-contrast ($colors-md , $bar-button- md-color );
221
- background-color : color-shade ($bar-button-md -color );
223
+ color : color-contrast ($colors-md , $toolbar- md-button- color , true );
224
+ background-color : color-shade ($toolbar-md-button -color );
222
225
}
223
226
}
224
227
@@ -326,7 +329,7 @@ ion-buttons[right] {
326
329
// Material Design Toolbar Color Generation
327
330
// --------------------------------------------------
328
331
329
- @include md-bar-button-default (default , $bar-button- md-color , color-contrast ($colors-md , $bar-button- md-color ));
332
+ @include md-bar-button-default (default , $toolbar- md-button- color , color-contrast ($colors-md , $toolbar- md-button- color , true ));
330
333
331
334
@each $color-name , $color-base , $color-contrast in get-colors ($colors-md ) {
332
335
@include md-toolbar-theme ($color-name , $color-base , $color-contrast );
0 commit comments