2024-01-15 13:47:16 -08:00
|
|
|
$sizes: (
|
|
|
|
"auto": auto,
|
|
|
|
"0": 0px,
|
|
|
|
"1": 2px,
|
|
|
|
"2": 5px,
|
|
|
|
"3": 8px,
|
|
|
|
"4": 10px,
|
|
|
|
"5": 15px
|
|
|
|
);
|
|
|
|
$directions: (
|
|
|
|
"s": "left",
|
|
|
|
"e": "right",
|
|
|
|
"t": "top",
|
|
|
|
"b": "bottom"
|
|
|
|
);
|
|
|
|
|
2024-01-17 20:46:13 -08:00
|
|
|
|
|
|
|
|
2024-01-15 13:47:16 -08:00
|
|
|
@each $size, $val in $sizes {
|
|
|
|
.m-#{$size} {
|
|
|
|
margin: $val;
|
|
|
|
}
|
2024-01-19 21:05:08 -08:00
|
|
|
.p-#{$size} {
|
|
|
|
padding: $val;
|
|
|
|
}
|
2024-01-15 13:47:16 -08:00
|
|
|
@each $dir, $dir-val in $directions {
|
|
|
|
.m#{$dir}-#{$size} {
|
|
|
|
margin-#{$dir-val}: $val;
|
|
|
|
}
|
|
|
|
.p#{$dir}-#{$size} {
|
|
|
|
padding-#{$dir-val}: $val;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
.mx-#{$size} {
|
|
|
|
margin-left: $val;
|
|
|
|
margin-right: $val;
|
|
|
|
}
|
|
|
|
.my-#{$size} {
|
|
|
|
margin-top: $val;
|
2024-01-19 21:05:08 -08:00
|
|
|
margin-bottom: $val;
|
2024-01-15 13:47:16 -08:00
|
|
|
}
|
|
|
|
.px-#{$size} {
|
|
|
|
padding-left: $val;
|
|
|
|
padding-right: $val;
|
|
|
|
}
|
|
|
|
.py-#{$size} {
|
|
|
|
padding-top: $val;
|
|
|
|
padding-bottom: $val;
|
|
|
|
}
|
|
|
|
}
|
2024-01-19 21:05:08 -08:00
|
|
|
.m-auto {
|
|
|
|
margin: auto;
|
|
|
|
}
|
2024-01-15 13:47:16 -08:00
|
|
|
.my-auto {
|
|
|
|
margin-top: auto;
|
|
|
|
margin-bottom: auto;
|
|
|
|
}
|
|
|
|
.mx-auto {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
2024-01-17 20:46:13 -08:00
|
|
|
$w_h_sizes: (
|
|
|
|
'25': 25%,
|
|
|
|
'50': 50%,
|
|
|
|
'75': 75%,
|
|
|
|
'80': 80%,
|
|
|
|
'100': 100%,
|
|
|
|
'auto': auto,
|
|
|
|
);
|
|
|
|
|
|
|
|
// Loop through the sizes and generate classes
|
|
|
|
@each $name, $value in $w_h_sizes {
|
|
|
|
.h-#{$name} {
|
|
|
|
height: $value;
|
|
|
|
}
|
|
|
|
|
|
|
|
.w-#{$name} {
|
|
|
|
width: $value;
|
|
|
|
}
|
2024-01-15 13:47:16 -08:00
|
|
|
}
|
2024-01-17 20:46:13 -08:00
|
|
|
|
2024-01-15 13:47:16 -08:00
|
|
|
.d-flex {
|
|
|
|
display: flex;
|
|
|
|
}
|
2024-01-17 20:46:13 -08:00
|
|
|
.d-flex-col {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
.d-block {
|
|
|
|
display: block;
|
|
|
|
}
|
2024-01-15 13:47:16 -08:00
|
|
|
.cr-all {
|
|
|
|
border-radius: $border-radius;
|
|
|
|
}
|
|
|
|
.cr-top {
|
|
|
|
border-radius: $border-radius $border-radius 0px 0px;
|
|
|
|
}
|
|
|
|
.cr-right {
|
|
|
|
border-radius: 0px $border-radius $border-radius 0px;
|
|
|
|
}
|
|
|
|
.cr-left {
|
|
|
|
border-radius: $border-radius 0px 0px $border-radius;
|
|
|
|
}
|
|
|
|
.cr-bottom {
|
|
|
|
border-radius: 0px 0px $border-radius $border-radius;
|
|
|
|
}
|
2024-01-15 19:26:51 -08:00
|
|
|
|
|
|
|
.t-s {
|
|
|
|
text-align: start;
|
|
|
|
}
|
|
|
|
.t-e {
|
|
|
|
text-align: end;
|
|
|
|
}
|
2024-01-19 21:05:08 -08:00
|
|
|
.t-m {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2024-01-15 19:26:51 -08:00
|
|
|
|
|
|
|
table.table {
|
|
|
|
color: var(--#{$prefix}-text);
|
|
|
|
td {
|
|
|
|
padding-right: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
table.table-striped {
|
|
|
|
border-collapse: collapse;
|
|
|
|
overflow: hidden;
|
|
|
|
thead {
|
|
|
|
background-color: var(--#{$prefix}-surface0);
|
|
|
|
}
|
|
|
|
tbody {
|
|
|
|
tr {
|
|
|
|
&.row_awaiting_processing {
|
|
|
|
background-color: var(--#{$prefix}-bg) !important;
|
|
|
|
max-width: 0px;
|
|
|
|
div {
|
|
|
|
opacity: 0;
|
|
|
|
max-height: 0px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
div {
|
|
|
|
display: block;
|
|
|
|
overflow: hidden;
|
|
|
|
max-height: 50px;
|
|
|
|
transition: max-height 0.6s cubic-bezier(0.02, 0.15, 0.84, 0.98),
|
|
|
|
opacity 0.5s ease-in;
|
|
|
|
}
|
|
|
|
max-width: 100%;
|
|
|
|
transition: all 0.5s ease-in;
|
|
|
|
&:nth-child(odd) {
|
|
|
|
background-color: var(--#{$prefix}-crust);
|
|
|
|
}
|
|
|
|
&:nth-child(even) {
|
|
|
|
background-color: var(--#{$prefix}-mantle);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.positive {
|
|
|
|
color: var(--#{$prefix}-green);
|
|
|
|
}
|
|
|
|
.negative {
|
|
|
|
color: var(--#{$prefix}-red);
|
|
|
|
}
|
|
|
|
}
|