diff options
| author | Volpeon <git@volpeon.ink> | 2024-10-19 19:37:18 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2024-10-19 19:37:18 +0200 |
| commit | 4f472e44dbd2ffa1e4e10c63b7ab74105d8e894b (patch) | |
| tree | 287b995743e5e4e4437b955df9f8cad8d2598ab0 /src_old/objects/_table.scss | |
| parent | Refactoring complete (diff) | |
| download | iro-design-4f472e44dbd2ffa1e4e10c63b7ab74105d8e894b.tar.gz iro-design-4f472e44dbd2ffa1e4e10c63b7ab74105d8e894b.tar.bz2 iro-design-4f472e44dbd2ffa1e4e10c63b7ab74105d8e894b.zip | |
Remove old code
Diffstat (limited to 'src_old/objects/_table.scss')
| -rw-r--r-- | src_old/objects/_table.scss | 168 |
1 files changed, 0 insertions, 168 deletions
diff --git a/src_old/objects/_table.scss b/src_old/objects/_table.scss deleted file mode 100644 index 2c9f65b..0000000 --- a/src_old/objects/_table.scss +++ /dev/null | |||
| @@ -1,168 +0,0 @@ | |||
| 1 | @use 'iro-sass/src/index' as iro; | ||
| 2 | @use '../functions' as fn; | ||
| 3 | @use '../mixins' as mx; | ||
| 4 | |||
| 5 | @include iro.props-namespace('table') { | ||
| 6 | @include iro.props-store(( | ||
| 7 | --dims: ( | ||
| 8 | --pad-i: fn.global-dim(--size --175), | ||
| 9 | --pad-b: fn.global-dim(--size --125), | ||
| 10 | --rounding: fn.global-dim(--rounding), | ||
| 11 | --border: fn.global-dim(--border --thin), | ||
| 12 | |||
| 13 | --sm: ( | ||
| 14 | --pad-b: fn.global-dim(--size --75), | ||
| 15 | ) | ||
| 16 | ), | ||
| 17 | --colors: ( | ||
| 18 | --border: fn.global-color(--border), | ||
| 19 | --heading: fn.global-color(--heading), | ||
| 20 | --hover: fn.global-color(--border-mute), | ||
| 21 | --active: fn.global-color(--border), | ||
| 22 | --box: ( | ||
| 23 | --bg: fn.global-color(--base --50), | ||
| 24 | --hover: fn.global-color(--bg-base), | ||
| 25 | --active: fn.global-color(--border-mute), | ||
| 26 | ) | ||
| 27 | ) | ||
| 28 | )); | ||
| 29 | |||
| 30 | @include iro.bem-object(iro.props-namespace()) { | ||
| 31 | border-spacing: 0; | ||
| 32 | border-collapse: separate; | ||
| 33 | |||
| 34 | @include iro.bem-modifier('fixed') { | ||
| 35 | table-layout: fixed; | ||
| 36 | } | ||
| 37 | |||
| 38 | @include iro.bem-elem('head-cell') { | ||
| 39 | @include mx.set-font(--standard, ( | ||
| 40 | --line-height: null, | ||
| 41 | --size: fn.global-dim(--font-size --50), | ||
| 42 | --weight: bold, | ||
| 43 | --transform: uppercase, | ||
| 44 | --spacing: .5px | ||
| 45 | )); | ||
| 46 | |||
| 47 | padding-inline: fn.dim(--pad-i); | ||
| 48 | padding-block: fn.dim(--pad-b); | ||
| 49 | color: fn.color(--heading); | ||
| 50 | text-align: start; | ||
| 51 | } | ||
| 52 | |||
| 53 | @include iro.bem-elem('cell') { | ||
| 54 | padding-inline: fn.dim(--pad-i); | ||
| 55 | padding-block: fn.dim(--pad-b); | ||
| 56 | border-width: 0; | ||
| 57 | border-block-start-width: fn.dim(--border); | ||
| 58 | border-style: solid; | ||
| 59 | border-color: fn.color(--border); | ||
| 60 | |||
| 61 | @include iro.bem-modifier('divider') { | ||
| 62 | border-inline-end-width: fn.dim(--border); | ||
| 63 | } | ||
| 64 | } | ||
| 65 | |||
| 66 | @include iro.bem-elem('row') { | ||
| 67 | &:last-child { | ||
| 68 | @include iro.bem-elem('cell') { | ||
| 69 | border-block-end-width: fn.dim(--border); | ||
| 70 | } | ||
| 71 | } | ||
| 72 | } | ||
| 73 | |||
| 74 | @include iro.bem-modifier('flush') { | ||
| 75 | @include iro.bem-elem('head-cell', 'cell') { | ||
| 76 | &:first-child { | ||
| 77 | padding-inline-start: 0; | ||
| 78 | } | ||
| 79 | |||
| 80 | &:last-child { | ||
| 81 | padding-inline-end: 0; | ||
| 82 | } | ||
| 83 | } | ||
| 84 | } | ||
| 85 | |||
| 86 | @include iro.bem-modifier('box') { | ||
| 87 | @include iro.bem-elem('cell') { | ||
| 88 | background-color: fn.color(--box --bg); | ||
| 89 | |||
| 90 | &:first-child { | ||
| 91 | border-inline-start-width: fn.dim(--border); | ||
| 92 | } | ||
| 93 | |||
| 94 | &:last-child { | ||
| 95 | border-inline-end-width: fn.dim(--border); | ||
| 96 | } | ||
| 97 | } | ||
| 98 | |||
| 99 | @include iro.bem-elem('row') { | ||
| 100 | &:first-child { | ||
| 101 | @include iro.bem-elem('cell') { | ||
| 102 | &:first-child { | ||
| 103 | border-start-start-radius: fn.dim(--rounding); | ||
| 104 | } | ||
| 105 | |||
| 106 | &:last-child { | ||
| 107 | border-start-end-radius: fn.dim(--rounding); | ||
| 108 | } | ||
| 109 | } | ||
| 110 | } | ||
| 111 | |||
| 112 | &:last-child { | ||
| 113 | @include iro.bem-elem('cell') { | ||
| 114 | &:first-child { | ||
| 115 | border-end-start-radius: fn.dim(--rounding); | ||
| 116 | } | ||
| 117 | |||
| 118 | &:last-child { | ||
| 119 | border-end-end-radius: fn.dim(--rounding); | ||
| 120 | } | ||
| 121 | } | ||
| 122 | } | ||
| 123 | } | ||
| 124 | } | ||
| 125 | |||
| 126 | @include iro.bem-modifier('interactive') { | ||
| 127 | @include iro.bem-elem('row') { | ||
| 128 | @include iro.bem-elem('cell') { | ||
| 129 | cursor: pointer; | ||
| 130 | } | ||
| 131 | |||
| 132 | &:hover { | ||
| 133 | @include iro.bem-elem('cell') { | ||
| 134 | background-color: fn.color(--hover); | ||
| 135 | } | ||
| 136 | } | ||
| 137 | |||
| 138 | &:active { | ||
| 139 | @include iro.bem-elem('cell') { | ||
| 140 | background-color: fn.color(--active); | ||
| 141 | } | ||
| 142 | } | ||
| 143 | } | ||
| 144 | |||
| 145 | @include iro.bem-modifier('box') { | ||
| 146 | @include iro.bem-elem('row') { | ||
| 147 | &:hover { | ||
| 148 | @include iro.bem-elem('cell') { | ||
| 149 | background-color: fn.color(--box --hover); | ||
| 150 | } | ||
| 151 | } | ||
| 152 | |||
| 153 | &:active { | ||
| 154 | @include iro.bem-elem('cell') { | ||
| 155 | background-color: fn.color(--box --active); | ||
| 156 | } | ||
| 157 | } | ||
| 158 | } | ||
| 159 | } | ||
| 160 | } | ||
| 161 | |||
| 162 | @include iro.bem-modifier('sm') { | ||
| 163 | @include iro.bem-elem('head-cell', 'cell') { | ||
| 164 | padding-block: fn.dim(--sm --pad-b); | ||
| 165 | } | ||
| 166 | } | ||
| 167 | } | ||
| 168 | } | ||
