1
0
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:
Paweł Kuna
2025-02-12 21:12:52 +01:00
committed by GitHub
parent afd070012d
commit bd3d959cea
4 changed files with 9 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
---
"@tabler/core": patch
---
Refactor SCSS files to replace divide function with calc

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;
}
}