Skip to content

Commit

Permalink
Fix background on button cards
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Mar 23, 2024
1 parent 0a95c56 commit 1d820db
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@linwooddev/style",
"description": "",
"main": "index.js",
"version": "0.3.6",
"version": "0.3.7",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"watch": "sass --watch scss/:css/",
Expand Down
5 changes: 4 additions & 1 deletion packages/web/scss/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
@use "colors";

button, .btn {
display: inline-block;
display: flex;
align-items: center;
justify-content: center;
gap: map-get(vars.$spacing, 'xs');
background: transparent;
border: none;
text-decoration: none;
Expand Down
13 changes: 9 additions & 4 deletions packages/web/scss/_card.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
@use 'colors';
@use 'vars';
@use "colors";
@use "vars";

.card, button.card {
.card,
button.card {
display: flex;
flex-direction: column;
gap: 1rem;
Expand All @@ -22,6 +23,7 @@
font-weight: bold;
}
&.secondary {
background-color: transparent;
border-color: colors.$elevation;
}
&.secondary:hover {
Expand All @@ -32,12 +34,15 @@
&.primary {
border-color: colors.$primary-light;
color: colors.$primary;
background-color: transparent;
}
&.primary:hover {
box-shadow: 0 0 10px 0px colors.$primary;
border-color: colors.$primary;
background-color: transparent;
}
&.fill, &.paper {
&.fill,
&.paper {
backdrop-filter: vars.$elevation-filter;
background-color: colors.$elevation;
color: colors.$background-text;
Expand Down

0 comments on commit 1d820db

Please sign in to comment.