Skip to content

Commit bcfd10a

Browse files
authored
Merge pull request #20 from webpixels/1.1
minor bug fixes
2 parents 3478fd8 + 8afa282 commit bcfd10a

File tree

7 files changed

+31
-5
lines changed

7 files changed

+31
-5
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = tab
6+
tab_width = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = false
11+
12+
[*.json]
13+
indent_style = space
14+
indent_size = 2
15+
16+
[*.md]
17+
trim_trailing_whitespace = false

dist/index.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@webpixels/css",
33
"description": "Utility and component-centric Design System based on Bootstrap for fast, responsive UI development.",
4-
"version": "1.1.92",
4+
"version": "1.1.93",
55
"version_short": "1.1",
66
"license": "MIT",
77
"style": "dist/index.css",

src/components/buttons/_button.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
@import "bootstrap/scss/buttons";
22

3+
// Soft color variation
4+
@each $color, $value in $theme-colors {
5+
.btn-soft-#{$color} {
6+
@include button-variant(shift-color($value, $btn-soft-bg-level), shift-color($value, $btn-soft-bg-level), $value, $value, color-contrast($value));
7+
}
8+
}
9+
310
// Neutral button variant
411
.btn-neutral {
512
@include button-variant($btn-neutral-bg, $btn-neutral-border-color, $btn-neutral-color, $btn-neutral-hover-bg, $btn-neutral-hover-border-color, $btn-neutral-hover-color);

src/core/variables/_components.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ $btn-focus-width: $input-btn-focus-width !default;
146146
$btn-focus-box-shadow: $input-btn-focus-box-shadow !default;
147147
$btn-active-box-shadow: $box-shadow-transparent !default;
148148

149+
// Customize how soft a background should be on soft button variants
150+
$btn-soft-bg-level: -70% !default;
149151

150152
// Allows for customizing button radius independently from global border radius
151153
$btn-border-radius: $border-radius !default;

src/index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Webpixels CSS v1.1.92 (https://webpixels.io/)
2+
* Webpixels CSS v1.1.93 (https://webpixels.io/)
33
* Copyright 2022 Webpixels
44
* Licensed under MIT (https://github.com/webpixels/css/blob/main/LICENSE)
55
*/

0 commit comments

Comments
 (0)