Skip to content

Commit

Permalink
✨ feat(_config.scss): Add 25p, 75p, and negative versions of absolute…
Browse files Browse the repository at this point in the history
… classes
  • Loading branch information
Spiderpig86 committed Oct 10, 2022
1 parent 06cb0ee commit 4fc644d
Show file tree
Hide file tree
Showing 9 changed files with 640 additions and 122 deletions.
544 changes: 464 additions & 80 deletions dist/cirrus-all.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cirrus-all.min.css

Large diffs are not rendered by default.

96 changes: 80 additions & 16 deletions dist/cirrus-core.css
Original file line number Diff line number Diff line change
Expand Up @@ -12374,18 +12374,34 @@ ul .divider::after {
top: 0 !important;
}

.u-top-50p {
top: 50% !important;
.u-top-25p {
top: 25% !important;
}

.u-top-100p {
top: 100% !important;
.u-top-n25p {
top: -25% !important;
}

.u-top-50p {
top: 50% !important;
}

.u-top-n50p {
top: -50% !important;
}

.u-top-75p {
top: 75% !important;
}

.u-top-n75p {
top: -75% !important;
}

.u-top-100p {
top: 100% !important;
}

.u-top-n100p {
top: -100% !important;
}
Expand All @@ -12398,18 +12414,34 @@ ul .divider::after {
left: 0 !important;
}

.u-left-50p {
left: 50% !important;
.u-left-25p {
left: 25% !important;
}

.u-left-100p {
left: 100% !important;
.u-left-n25p {
left: -25% !important;
}

.u-left-50p {
left: 50% !important;
}

.u-left-n50p {
left: -50% !important;
}

.u-left-75p {
left: 75% !important;
}

.u-left-n75p {
left: -75% !important;
}

.u-left-100p {
left: 100% !important;
}

.u-left-n100p {
left: -100% !important;
}
Expand All @@ -12422,18 +12454,34 @@ ul .divider::after {
right: 0 !important;
}

.u-right-50p {
right: 50% !important;
.u-right-25p {
right: 25% !important;
}

.u-right-100p {
right: 100% !important;
.u-right-n25p {
right: -25% !important;
}

.u-right-50p {
right: 50% !important;
}

.u-right-n50p {
right: -50% !important;
}

.u-right-75p {
right: 75% !important;
}

.u-right-n75p {
right: -75% !important;
}

.u-right-100p {
right: 100% !important;
}

.u-right-n100p {
right: -100% !important;
}
Expand All @@ -12446,18 +12494,34 @@ ul .divider::after {
bottom: 0 !important;
}

.u-bottom-50p {
bottom: 50% !important;
.u-bottom-25p {
bottom: 25% !important;
}

.u-bottom-100p {
bottom: 100% !important;
.u-bottom-n25p {
bottom: -25% !important;
}

.u-bottom-50p {
bottom: 50% !important;
}

.u-bottom-n50p {
bottom: -50% !important;
}

.u-bottom-75p {
bottom: 75% !important;
}

.u-bottom-n75p {
bottom: -75% !important;
}

.u-bottom-100p {
bottom: 100% !important;
}

.u-bottom-n100p {
bottom: -100% !important;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus-core.min.css

Large diffs are not rendered by default.

96 changes: 80 additions & 16 deletions dist/cirrus.css
Original file line number Diff line number Diff line change
Expand Up @@ -12375,18 +12375,34 @@ ul .divider::after {
top: 0 !important;
}

.u-top-50p {
top: 50% !important;
.u-top-25p {
top: 25% !important;
}

.u-top-100p {
top: 100% !important;
.u-top-n25p {
top: -25% !important;
}

.u-top-50p {
top: 50% !important;
}

.u-top-n50p {
top: -50% !important;
}

.u-top-75p {
top: 75% !important;
}

.u-top-n75p {
top: -75% !important;
}

.u-top-100p {
top: 100% !important;
}

.u-top-n100p {
top: -100% !important;
}
Expand All @@ -12399,18 +12415,34 @@ ul .divider::after {
left: 0 !important;
}

.u-left-50p {
left: 50% !important;
.u-left-25p {
left: 25% !important;
}

.u-left-100p {
left: 100% !important;
.u-left-n25p {
left: -25% !important;
}

.u-left-50p {
left: 50% !important;
}

.u-left-n50p {
left: -50% !important;
}

.u-left-75p {
left: 75% !important;
}

.u-left-n75p {
left: -75% !important;
}

.u-left-100p {
left: 100% !important;
}

.u-left-n100p {
left: -100% !important;
}
Expand All @@ -12423,18 +12455,34 @@ ul .divider::after {
right: 0 !important;
}

.u-right-50p {
right: 50% !important;
.u-right-25p {
right: 25% !important;
}

.u-right-100p {
right: 100% !important;
.u-right-n25p {
right: -25% !important;
}

.u-right-50p {
right: 50% !important;
}

.u-right-n50p {
right: -50% !important;
}

.u-right-75p {
right: 75% !important;
}

.u-right-n75p {
right: -75% !important;
}

.u-right-100p {
right: 100% !important;
}

.u-right-n100p {
right: -100% !important;
}
Expand All @@ -12447,18 +12495,34 @@ ul .divider::after {
bottom: 0 !important;
}

.u-bottom-50p {
bottom: 50% !important;
.u-bottom-25p {
bottom: 25% !important;
}

.u-bottom-100p {
bottom: 100% !important;
.u-bottom-n25p {
bottom: -25% !important;
}

.u-bottom-50p {
bottom: 50% !important;
}

.u-bottom-n50p {
bottom: -50% !important;
}

.u-bottom-75p {
bottom: 75% !important;
}

.u-bottom-n75p {
bottom: -75% !important;
}

.u-bottom-100p {
bottom: 100% !important;
}

.u-bottom-n100p {
bottom: -100% !important;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/cirrus.min.css

Large diffs are not rendered by default.

10 changes: 4 additions & 6 deletions src/internal/_config.scss
Original file line number Diff line number Diff line change
Expand Up @@ -611,14 +611,12 @@ $default-config: (
),
// UTILITIES //
absolute:
(
map.merge((
auto: auto,
0: 0,
50p: 50%,
100p: 100%,
n50p: -50%,
n100p: -100%,
),
), (
functions.get-negative-value-map(defaults.$default-quartile-percentages)
)),
blurs: (
'none': (
--cirrus-blur: blur(0),
Expand Down
7 changes: 7 additions & 0 deletions src/internal/_defaults.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,10 @@ $default-breakpoints: (
constants.$lg: 1280px,
constants.$xl: 1536px,
);

$default-quartile-percentages: (
25p: 25%,
50p: 50%,
75p: 75%,
100p: 100%,
);
3 changes: 2 additions & 1 deletion src/internal/_functions.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@use 'sass:string';
@use 'sass:list';
@use 'sass:map';
@use 'sass:math';
@use 'sass-true/sass/config/throw';
@use 'sass-true/sass/true' as *;

Expand Down Expand Up @@ -141,7 +142,7 @@ $DELIMETER: '-';
/// @return {Number} - Unitless number
@function strip-unit($number) {
@if type-of($number) == 'number' and not unitless($number) {
@return $number / ($number * 0 + 1);
@return math.div($number, ($number * 0 + 1));
}

@return $number;
Expand Down

0 comments on commit 4fc644d

Please sign in to comment.