|
277 | 277 | /// OUTLINED STYLE |
278 | 278 | /// |
279 | 279 | @if $outlined { |
| 280 | + $textcolor: if(theme('type') == 'dark', theme('color', 'negative'), $bg-color); |
280 | 281 | background: transparent; |
281 | | - @if(theme('type') == 'dark') { |
282 | | - color: theme('color', 'negative'); |
283 | | - } @else { |
284 | | - color: $bg-color; |
| 282 | + color: $textcolor; |
| 283 | + i, [class^="#{class('icon', 'class-name')}"] { |
| 284 | + color: $textcolor; |
285 | 285 | } |
286 | 286 | } @else { |
287 | 287 | background: $bg-color; |
288 | 288 | color: theme('color', 'negative'); |
| 289 | + i, [class^="#{class('icon', 'class-name')}"] { |
| 290 | + color: theme('color', 'negative'); |
| 291 | + } |
289 | 292 | } |
290 | 293 | text-shadow: 0 1px 1px darken($bg-color, 6%); |
291 | 294 | border: theme('border', 'width') theme('border', 'style') $border-color; |
292 | 295 | &:hover { |
293 | 296 | background: lighten($bg-color, 7.5%); |
294 | 297 | color: theme('color', 'negative'); |
| 298 | + i, [class^="#{class('icon', 'class-name')}"] { |
| 299 | + color: theme('color', 'negative'); |
| 300 | + } |
295 | 301 | } |
296 | 302 | &:active, |
297 | 303 | &.#{class('button', 'active')} { |
|
302 | 308 | background: lighten($bg-color, 12.5%); |
303 | 309 | } |
304 | 310 | } |
305 | | - i, [class^="#{class('icon', 'class-name')}"] { |
306 | | - color: theme('color', 'negative'); |
307 | | - } |
308 | 311 |
|
309 | 312 | /// |
310 | 313 | /// GRADIENT |
|
0 commit comments