From 4f472e44dbd2ffa1e4e10c63b7ab74105d8e894b Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 19 Oct 2024 19:37:18 +0200 Subject: Remove old code --- src_old/objects/_table.scss | 168 -------------------------------------------- 1 file changed, 168 deletions(-) delete mode 100644 src_old/objects/_table.scss (limited to 'src_old/objects/_table.scss') 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 @@ -@use 'iro-sass/src/index' as iro; -@use '../functions' as fn; -@use '../mixins' as mx; - -@include iro.props-namespace('table') { - @include iro.props-store(( - --dims: ( - --pad-i: fn.global-dim(--size --175), - --pad-b: fn.global-dim(--size --125), - --rounding: fn.global-dim(--rounding), - --border: fn.global-dim(--border --thin), - - --sm: ( - --pad-b: fn.global-dim(--size --75), - ) - ), - --colors: ( - --border: fn.global-color(--border), - --heading: fn.global-color(--heading), - --hover: fn.global-color(--border-mute), - --active: fn.global-color(--border), - --box: ( - --bg: fn.global-color(--base --50), - --hover: fn.global-color(--bg-base), - --active: fn.global-color(--border-mute), - ) - ) - )); - - @include iro.bem-object(iro.props-namespace()) { - border-spacing: 0; - border-collapse: separate; - - @include iro.bem-modifier('fixed') { - table-layout: fixed; - } - - @include iro.bem-elem('head-cell') { - @include mx.set-font(--standard, ( - --line-height: null, - --size: fn.global-dim(--font-size --50), - --weight: bold, - --transform: uppercase, - --spacing: .5px - )); - - padding-inline: fn.dim(--pad-i); - padding-block: fn.dim(--pad-b); - color: fn.color(--heading); - text-align: start; - } - - @include iro.bem-elem('cell') { - padding-inline: fn.dim(--pad-i); - padding-block: fn.dim(--pad-b); - border-width: 0; - border-block-start-width: fn.dim(--border); - border-style: solid; - border-color: fn.color(--border); - - @include iro.bem-modifier('divider') { - border-inline-end-width: fn.dim(--border); - } - } - - @include iro.bem-elem('row') { - &:last-child { - @include iro.bem-elem('cell') { - border-block-end-width: fn.dim(--border); - } - } - } - - @include iro.bem-modifier('flush') { - @include iro.bem-elem('head-cell', 'cell') { - &:first-child { - padding-inline-start: 0; - } - - &:last-child { - padding-inline-end: 0; - } - } - } - - @include iro.bem-modifier('box') { - @include iro.bem-elem('cell') { - background-color: fn.color(--box --bg); - - &:first-child { - border-inline-start-width: fn.dim(--border); - } - - &:last-child { - border-inline-end-width: fn.dim(--border); - } - } - - @include iro.bem-elem('row') { - &:first-child { - @include iro.bem-elem('cell') { - &:first-child { - border-start-start-radius: fn.dim(--rounding); - } - - &:last-child { - border-start-end-radius: fn.dim(--rounding); - } - } - } - - &:last-child { - @include iro.bem-elem('cell') { - &:first-child { - border-end-start-radius: fn.dim(--rounding); - } - - &:last-child { - border-end-end-radius: fn.dim(--rounding); - } - } - } - } - } - - @include iro.bem-modifier('interactive') { - @include iro.bem-elem('row') { - @include iro.bem-elem('cell') { - cursor: pointer; - } - - &:hover { - @include iro.bem-elem('cell') { - background-color: fn.color(--hover); - } - } - - &:active { - @include iro.bem-elem('cell') { - background-color: fn.color(--active); - } - } - } - - @include iro.bem-modifier('box') { - @include iro.bem-elem('row') { - &:hover { - @include iro.bem-elem('cell') { - background-color: fn.color(--box --hover); - } - } - - &:active { - @include iro.bem-elem('cell') { - background-color: fn.color(--box --active); - } - } - } - } - } - - @include iro.bem-modifier('sm') { - @include iro.bem-elem('head-cell', 'cell') { - padding-block: fn.dim(--sm --pad-b); - } - } - } -} -- cgit v1.2.3-70-g09d2