-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
76 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
@mixin base { | ||
padding: var(--padding) var(--padding-2x); | ||
|
||
border-radius: var(--border-radius); | ||
border-top: 1px solid transparent; | ||
border-bottom: 1px solid transparent; | ||
|
||
position: relative; | ||
min-height: var(--button-min-height); | ||
|
||
font-weight: var(--font-weight-bold); | ||
|
||
&[disabled], | ||
&[disabled]:hover { | ||
background: var(--button-disable-background); | ||
color: var(--button-disable-color); | ||
cursor: default; | ||
box-shadow: none; | ||
} | ||
|
||
&:focus { | ||
filter: contrast(1.25); | ||
} | ||
} | ||
|
||
@mixin primary { | ||
background: var(--primary); | ||
color: var(--primary-contrast); | ||
|
||
&:not([disabled]):hover, | ||
&:not([disabled]):focus { | ||
background: var(--primary-shade); | ||
} | ||
} | ||
|
||
@mixin secondary { | ||
background: transparent; | ||
color: var(--button-secondary-color); | ||
border: solid 2px var(--primary); | ||
|
||
&[disabled] { | ||
border: solid 2px transparent; | ||
} | ||
|
||
&:not([disabled]):hover, | ||
&:not([disabled]):focus { | ||
background: var(--button-card-focus-background); | ||
} | ||
} | ||
|
||
@mixin with-icon { | ||
display: inline-flex; | ||
align-items: center; | ||
justify-content: center; | ||
gap: var(--padding-0_5x); | ||
} | ||
|
||
@mixin full-width { | ||
width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters