diff options
Diffstat (limited to 'assets/css/components/_outer-button.scss')
| -rw-r--r-- | assets/css/components/_outer-button.scss | 42 |
1 files changed, 23 insertions, 19 deletions
diff --git a/assets/css/components/_outer-button.scss b/assets/css/components/_outer-button.scss index 13614bb..b92dd9e 100644 --- a/assets/css/components/_outer-button.scss +++ b/assets/css/components/_outer-button.scss | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | --bg: prop(--colors --accent --color, $global: true), | 7 | --bg: prop(--colors --accent --color, $global: true), |
| 8 | --fg: prop(--colors --bg-hi, $global: true), | 8 | --fg: prop(--colors --bg-hi, $global: true), |
| 9 | ), | 9 | ), |
| 10 | --logo: ( | 10 | --icon: ( |
| 11 | --fg: prop(--colors --fg-lo, $global: true), | 11 | --fg: prop(--colors --fg-lo, $global: true), |
| 12 | --bg: prop(--colors --bg-hi, $global: true), | 12 | --bg: prop(--colors --bg-hi, $global: true), |
| 13 | --hover: ( | 13 | --hover: ( |
| @@ -24,31 +24,34 @@ | |||
| 24 | transition: background-color .2s, color .2s; | 24 | transition: background-color .2s, color .2s; |
| 25 | background-color: prop(--colors --bg); | 25 | background-color: prop(--colors --bg); |
| 26 | color: prop(--colors --fg); | 26 | color: prop(--colors --fg); |
| 27 | font-weight: 500; | 27 | font-weight: 450; |
| 28 | text-decoration: none; | 28 | text-decoration: none; |
| 29 | 29 | ||
| 30 | &:hover { | 30 | @include element('icon') { |
| 31 | background-color: prop(--colors --hover --bg); | 31 | display: flex; |
| 32 | color: prop(--colors --hover --fg); | 32 | position: relative; |
| 33 | flex: 0 0 auto; | ||
| 34 | align-items: center; | ||
| 35 | justify-content: center; | ||
| 36 | width: prop(--dims --outer, $global: true); | ||
| 37 | height: 100%; | ||
| 38 | transition: background-color .2s, color .2s; | ||
| 39 | background-color: prop(--colors --icon --bg); | ||
| 40 | color: prop(--colors --icon --fg); | ||
| 33 | } | 41 | } |
| 34 | 42 | ||
| 35 | @include modifier('logo') { | 43 | @include modifier('icon-only') { |
| 36 | background-color: prop(--colors --logo --bg); | 44 | @include element('icon') { |
| 37 | color: prop(--colors --logo --fg); | 45 | background-color: prop(--colors --bg); |
| 38 | 46 | color: prop(--colors --fg); | |
| 39 | &:hover { | ||
| 40 | background-color: prop(--colors --logo --hover --bg); | ||
| 41 | color: prop(--colors --logo --hover --fg); | ||
| 42 | } | 47 | } |
| 43 | } | 48 | } |
| 44 | 49 | ||
| 45 | @include element('icon') { | 50 | &:hover { |
| 46 | display: flex; | 51 | @include multi('&', 'element' 'icon') { |
| 47 | position: relative; | 52 | background-color: prop(--colors --hover --bg); |
| 48 | align-items: center; | 53 | color: prop(--colors --hover --fg); |
| 49 | justify-content: center; | 54 | } |
| 50 | width: prop(--dims --outer, $global: true); | ||
| 51 | height: 100%; | ||
| 52 | } | 55 | } |
| 53 | 56 | ||
| 54 | @include element('icon-symbol') { | 57 | @include element('icon-symbol') { |
| @@ -62,6 +65,7 @@ | |||
| 62 | padding-right: prop(--dims --outer-spacing, $global: true); | 65 | padding-right: prop(--dims --outer-spacing, $global: true); |
| 63 | padding-left: prop(--dims --outer-spacing, $global: true); | 66 | padding-left: prop(--dims --outer-spacing, $global: true); |
| 64 | line-height: prop(--dims --outer, $global: true); | 67 | line-height: prop(--dims --outer, $global: true); |
| 68 | white-space: nowrap; | ||
| 65 | } | 69 | } |
| 66 | } | 70 | } |
| 67 | } | 71 | } |
