diff options
Diffstat (limited to 'assets/css/components/_outer-button.scss')
| -rw-r--r-- | assets/css/components/_outer-button.scss | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/assets/css/components/_outer-button.scss b/assets/css/components/_outer-button.scss deleted file mode 100644 index fb3a51e..0000000 --- a/assets/css/components/_outer-button.scss +++ /dev/null | |||
| @@ -1,89 +0,0 @@ | |||
| 1 | @include namespace('outer-button') { | ||
| 2 | @include store(( | ||
| 3 | --colors: ( | ||
| 4 | --fg: prop(--colors --bg-hi, $global: true), | ||
| 5 | --bg: prop(--colors --fg-lo, $global: true), | ||
| 6 | --border: prop(--colors --fg, $global: true), | ||
| 7 | --hover: ( | ||
| 8 | --bg: prop(--colors --accent --color, $global: true), | ||
| 9 | --fg: prop(--colors --bg-hi, $global: true), | ||
| 10 | ), | ||
| 11 | --inverted: ( | ||
| 12 | --fg: prop(--colors --fg-lo, $global: true), | ||
| 13 | --bg: prop(--colors --bg-hi, $global: true), | ||
| 14 | ) | ||
| 15 | ), | ||
| 16 | --dims: ( | ||
| 17 | --pad-x: 1.7rem, | ||
| 18 | ) | ||
| 19 | )); | ||
| 20 | |||
| 21 | @include component(namespace()) { | ||
| 22 | display: flex; | ||
| 23 | height: prop(--dims --outer, $global: true); | ||
| 24 | transition: background-color .2s, color .2s; | ||
| 25 | background-color: prop(--colors --bg); | ||
| 26 | color: prop(--colors --fg); | ||
| 27 | font-size: 1rem; | ||
| 28 | font-weight: 700; | ||
| 29 | letter-spacing: .5px; | ||
| 30 | text-decoration: none; | ||
| 31 | text-transform: uppercase; | ||
| 32 | |||
| 33 | @include modifier('inverted') { | ||
| 34 | background-color: prop(--colors --inverted --bg); | ||
| 35 | color: prop(--colors --inverted --fg); | ||
| 36 | } | ||
| 37 | |||
| 38 | @include modifier('scroll-top') { | ||
| 39 | position: absolute; | ||
| 40 | right: 0; | ||
| 41 | bottom: 0; | ||
| 42 | } | ||
| 43 | |||
| 44 | @include element('icon') { | ||
| 45 | display: flex; | ||
| 46 | position: relative; | ||
| 47 | flex: 0 0 auto; | ||
| 48 | align-items: center; | ||
| 49 | justify-content: center; | ||
| 50 | width: prop(--dims --outer, $global: true); | ||
| 51 | height: 100%; | ||
| 52 | |||
| 53 | @include next-element('content') { | ||
| 54 | margin-left: -1px; | ||
| 55 | border-left: 1px solid prop(--colors --border); | ||
| 56 | } | ||
| 57 | } | ||
| 58 | |||
| 59 | @include element('icon-symbol') { | ||
| 60 | display: block; | ||
| 61 | width: 1.5em; | ||
| 62 | height: 1.5em; | ||
| 63 | } | ||
| 64 | |||
| 65 | @include element('content') { | ||
| 66 | height: 100%; | ||
| 67 | padding-right: prop(--dims --pad-x); | ||
| 68 | padding-left: prop(--dims --pad-x); | ||
| 69 | transition: border-left-color .2s; | ||
| 70 | font-size: 1 / 16 * 14em; | ||
| 71 | line-height: prop(--dims --outer, $global: true); | ||
| 72 | white-space: nowrap; | ||
| 73 | } | ||
| 74 | |||
| 75 | &:link, | ||
| 76 | &:visited { | ||
| 77 | &:hover { | ||
| 78 | background-color: prop(--colors --hover --bg); | ||
| 79 | color: prop(--colors --hover --fg); | ||
| 80 | |||
| 81 | @include element('icon') { | ||
| 82 | @include next-element('content') { | ||
| 83 | border-left-color: transparent; | ||
| 84 | } | ||
| 85 | } | ||
| 86 | } | ||
| 87 | } | ||
| 88 | } | ||
| 89 | } | ||
