Skip to content

Commit

Permalink
Merge pull request #32 from webpixels/1.2
Browse files Browse the repository at this point in the history
1.2
  • Loading branch information
extrabright committed Dec 30, 2022
2 parents 6956f0a + 113e4c7 commit 236e9d2
Show file tree
Hide file tree
Showing 17 changed files with 139 additions and 124 deletions.
2 changes: 1 addition & 1 deletion dist/extra.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/extra.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/index.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/main.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/utility.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/utility.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@webpixels/css",
"description": "Utility and component-centric design system based on Bootstrap for fast, responsive UI development.",
"version": "1.2.4",
"version": "1.2.5",
"version_short": "1.2",
"license": "MIT",
"style": "dist/index.css",
Expand Down
19 changes: 13 additions & 6 deletions scss/core/variables/_sizing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,20 @@ $percentage-sizers: map-merge((
15\/10: 150%,
), $percentage-sizers);

// This variable affects the `.pc-*`, `.max-pc-*` classes.
// This variable affects the `.w-screen-*`, `.max-w-screen-*` classes.
$screen-width-sm: 640px !default;
$screen-width-md: 768px !default;
$screen-width-lg: 1024px !default;
$screen-width-xl: 1280px !default;
$screen-width-xxl: 1536px !default;

// Map
$screen-widths: () !default;
// stylelint-disable-next-line scss/dollar-variable-default
$screen-widths: map-merge((
screen-sm: 640px,
screen-md: 768px,
screen-lg: 1024px,
screen-xl: 1280px,
screen-xxl: 1536px
screen-sm: $screen-width-sm,
screen-md: $screen-width-md,
screen-lg: $screen-width-lg,
screen-xl: $screen-width-xl,
screen-xxl: $screen-width-xxl
), $screen-widths);
2 changes: 1 addition & 1 deletion scss/extra.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Webpixels CSS v1.2.4 (https://webpixels.io/)
* Webpixels CSS v1.2.5 (https://webpixels.io/)
* Copyright 2022 Webpixels
* Licensed under MIT (https://github.com/webpixels/css/blob/main/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion scss/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Webpixels CSS v1.2.4 (https://webpixels.io/)
* Webpixels CSS v1.2.5 (https://webpixels.io/)
* Copyright 2022 Webpixels
* Licensed under MIT (https://github.com/webpixels/css/blob/main/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion scss/light.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Webpixels CSS v1.2.4 (https://webpixels.io/)
* Webpixels CSS v1.2.5 (https://webpixels.io/)
* Copyright 2022 Webpixels
* Licensed under MIT (https://github.com/webpixels/css/blob/main/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion scss/main.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Webpixels CSS v1.2.4 (https://webpixels.io/)
* Webpixels CSS v1.2.5 (https://webpixels.io/)
* Copyright 2022 Webpixels
* Licensed under MIT (https://github.com/webpixels/css/blob/main/LICENSE)
*/
Expand Down
19 changes: 19 additions & 0 deletions scss/utilities/static/_gradient.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@
background-image: linear-gradient(to top left, var(--#{$prefix}gradient)) !important;
}

// For transparent values
.start-transparent,
.start-transparent-hover:hover {
--#{$prefix}start-color: transparent;
--#{$prefix}gradient: var(--#{$prefix}start-color), var(--#{$prefix}end-color, rgba(0, 0, 0, 0));
}

// For color values
@each $color, $value in $colors {
$end-color: rgba(0, 0, 0, 0);
.start-#{$color},
Expand All @@ -37,6 +45,12 @@
}
}

.middle-transparent,
.middle-transparent-hover:hover {
--#{$prefix}middle-color: transparent;
--#{$prefix}gradient: var(--#{$prefix}start-color), var(--#{$prefix}middle-color), var(--#{$prefix}end-color, rgba(0, 0, 0, 0));
}

@each $color, $value in $colors {
$end-color: rgba($value, 0);
.middle-#{$color},
Expand All @@ -46,6 +60,11 @@
}
}

.end-transparent,
.end-transparent-hover:hover {
--#{$prefix}end-color: transparent;
}

@each $color, $value in $colors {
.end-#{$color},
.end-#{$color}-hover:hover {
Expand Down

0 comments on commit 236e9d2

Please sign in to comment.