Skip to content

Commit

Permalink
Merge pull request #30 from webpixels/1.2
Browse files Browse the repository at this point in the history
1.2
  • Loading branch information
extrabright authored Dec 8, 2022
2 parents bb10ad9 + fc9cd74 commit 524cdc4
Show file tree
Hide file tree
Showing 18 changed files with 88 additions and 44 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.

4 changes: 2 additions & 2 deletions 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.2",
"version": "1.2.3",
"version_short": "1.2",
"license": "MIT",
"style": "dist/index.css",
Expand Down
5 changes: 3 additions & 2 deletions scss/components/navbars/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
.navbar-nav {
--#{$prefix}nav-link-padding-x: #{$navbar-nav-link-padding-x};
--#{$prefix}nav-link-padding-y: #{$navbar-nav-link-padding-y};

> .nav-item > .nav-link {

> .nav-item > .nav-link,
> .nav-link {
background-color: var(--#{$prefix}navbar-bg);
color: var(--#{$prefix}navbar-color);
padding-top: var(--#{$prefix}navbar-nav-link-padding-y);
Expand Down
22 changes: 11 additions & 11 deletions scss/core/variables/_grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
// scss-docs-start grid-breakpoints

$breakpoints: (
xs: 0,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px,
xxl: 1400px
xs: 0,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px,
xxl: 1400px
) !default;

$grid-breakpoints: if(map-has-key($theme, breakpoints), map-get($theme, breakpoints), $breakpoints);
Expand All @@ -22,11 +22,11 @@ $grid-breakpoints: if(map-has-key($theme, breakpoints), map-get($theme, breakpoi

// scss-docs-start container-max-widths
$container-max-widths: (
sm: 540px,
md: 720px,
lg: 960px,
xl: 1140px,
xxl: 1360px
sm: 540px,
md: 720px,
lg: 960px,
xl: 1140px,
xxl: 1360px
) !default;
// scss-docs-end container-max-widths

Expand Down
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.2 (https://webpixels.io/)
* Webpixels CSS v1.2.3 (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.2 (https://webpixels.io/)
* Webpixels CSS v1.2.3 (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.2 (https://webpixels.io/)
* Webpixels CSS v1.2.3 (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.2 (https://webpixels.io/)
* Webpixels CSS v1.2.3 (https://webpixels.io/)
* Copyright 2022 Webpixels
* Licensed under MIT (https://github.com/webpixels/css/blob/main/LICENSE)
*/
Expand Down
33 changes: 33 additions & 0 deletions scss/utilities/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,39 @@ $utilities: map-merge($utilities, (
values: auto hidden visible scroll
),

// Scroll
"scroll-behaviour": (
property: scroll-behaviour,
class: scroll,
values: auto smooth
),
"scroll-snap-align": (
property: scroll-snap-align,
class: scroll-snap,
values: start end center none
),
"scroll-snap-stop": (
property: scroll-snap-stop,
class: scroll-snap,
values: normal always
),
"scroll-snap-type": (
property: scroll-snap-type,
class: scroll-snap,
values: (
none: none,
x: x var(--x-scroll-snap-strictness),
y: y var(--x-scroll-snap-strictness),
both: both var(--x-scroll-snap-strictness),
)
),
"scroll-snap-strictness": (
css-var: true,
css-variable-name: scroll-snap-strictness,
class: scroll-snap,
values: mandatory proximity
),

// Transitions
"transition-property": (
property: transition-property,
Expand Down
38 changes: 24 additions & 14 deletions scss/utilities/static/_helpers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,28 +20,38 @@
//

.scrollable-x {
white-space: nowrap;
overflow-x: auto;
overflow-y: hidden;
-ms-overflow-style: -ms-autohiding-scrollbar;
white-space: nowrap;
overflow-x: auto;
overflow-y: hidden;
-ms-overflow-style: -ms-autohiding-scrollbar;

&::-webkit-scrollbar {
display: none;
}
&::-webkit-scrollbar {
display: none;
}
}

.scrollable-y {
white-space: nowrap;
overflow-x: hidden;
overflow-y: auto;
-ms-overflow-style: -ms-autohiding-scrollbar;
white-space: nowrap;
overflow-x: hidden;
overflow-y: auto;
-ms-overflow-style: -ms-autohiding-scrollbar;

&::-webkit-scrollbar {
display: none;
}
&::-webkit-scrollbar {
display: none;
}
}


// Screen offset based on screen sizes
@each $size, $value in $screen-widths {
.offset-left-#{$size} {
padding-left: max($grid-gutter-width * 0.5, calc((100% - $value) / 2 + $grid-gutter-width * 0.5));
}
.offset-right-#{$size} {
padding-right: max($grid-gutter-width * 0.5, calc((100% - $value) / 2 + $grid-gutter-width * 0.5));
}
}

// Fading elements

[class*="faded"],
Expand Down
2 changes: 1 addition & 1 deletion scss/utility.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Webpixels CSS v1.2.2 (https://webpixels.io/)
* Webpixels CSS v1.2.3 (https://webpixels.io/)
* Copyright 2022 Webpixels
* Licensed under MIT (https://github.com/webpixels/css/blob/main/LICENSE)
*/
Expand Down

0 comments on commit 524cdc4

Please sign in to comment.