mirror of
https://github.com/tabler/tabler.git
synced 2026-06-18 21:30:11 +04:00
Refactor SCSS files to replace divide function with calc (#2150)
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@tabler/core": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Refactor SCSS files to replace divide function with calc
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
border: var(--#{$prefix}border-width) var(--#{$prefix}border-style) transparent;
|
border: var(--#{$prefix}border-width) var(--#{$prefix}border-style) transparent;
|
||||||
min-width: ($badge-padding-y * 2 ) + (divide($badge-font-size, 100%) * 1em);
|
min-width: 1.25rem;
|
||||||
font-weight: $headings-font-weight;
|
font-weight: $headings-font-weight;
|
||||||
letter-spacing: .04em;
|
letter-spacing: .04em;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
|
|||||||
@@ -28,8 +28,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.calendar-date {
|
.calendar-date {
|
||||||
flex: 0 0 divide(100%, 7);
|
flex: 0 0 calc(100% / 7);
|
||||||
max-width: divide(100%, 7);
|
max-width: calc(100% / 7);
|
||||||
padding: .2rem;
|
padding: .2rem;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border: 0;
|
border: 0;
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
|
|
||||||
@for $i from 0 through 20 {
|
@for $i from 0 through 20 {
|
||||||
.opacity-#{$i * 5} {
|
.opacity-#{$i * 5} {
|
||||||
opacity: divide($i * 5, 100) !important;
|
opacity: calc(#{$i * 5} / 100) !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user