Skip to content

Commit 2a41608

Browse files
committed
Apply background and text opacity modifiers to buttons
1 parent 12ffda8 commit 2a41608

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

dist/all.css

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

dist/all.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.

dist/button.css

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

dist/button.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,6 +1,6 @@
11
{
22
"name": "purecss-utilities",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "Utility CSS classes that complement PureCSS",
55
"main": "index.js",
66
"scripts": {

src/shared/_button.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
$foreRbgVar: map.get($buttons-text-colors, $colorName);
77

88
.pure-button-#{$colorName} {
9-
color: rgba(var(#{$foreRbgVar}), 1);
10-
background: rgba(var(#{$backRbgVar}), 1);
9+
color: rgba(var(#{$foreRbgVar}), var(--pureTxtOpacity));
10+
background: rgba(var(#{$backRbgVar}), var(--pureBgOpacity));
1111
border-radius: 4px;
1212
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
1313
}

0 commit comments

Comments
 (0)