mirror of
https://github.com/tabler/tabler.git
synced 2025-12-21 17:34:25 +04:00
Refactor SCSS files to replace divide function with calc (#2150)
This commit is contained in:
5
.changeset/gorgeous-mugs-admire.md
Normal file
5
.changeset/gorgeous-mugs-admire.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@tabler/core": patch
|
||||
---
|
||||
|
||||
Refactor SCSS files to replace divide function with calc
|
||||
@@ -5,7 +5,7 @@
|
||||
overflow: hidden;
|
||||
user-select: none;
|
||||
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;
|
||||
letter-spacing: .04em;
|
||||
vertical-align: bottom;
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
}
|
||||
|
||||
.calendar-date {
|
||||
flex: 0 0 divide(100%, 7);
|
||||
max-width: divide(100%, 7);
|
||||
flex: 0 0 calc(100% / 7);
|
||||
max-width: calc(100% / 7);
|
||||
padding: .2rem;
|
||||
text-align: center;
|
||||
border: 0;
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
@for $i from 0 through 20 {
|
||||
.opacity-#{$i * 5} {
|
||||
opacity: divide($i * 5, 100) !important;
|
||||
opacity: calc(#{$i * 5} / 100) !important;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user