mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Add button vars and scope modifiers
This commit is contained in:
4
dist/shoelace.css
vendored
4
dist/shoelace.css
vendored
File diff suppressed because one or more lines are too long
@@ -11,7 +11,7 @@ button,
|
||||
background-color: var(--button-bg-color-primary);
|
||||
border-radius: var(--button-border-radius);
|
||||
border: none;
|
||||
height: var(--input-height);
|
||||
height: var(--button-height);
|
||||
line-height: 1;
|
||||
user-select: none;
|
||||
vertical-align: middle;
|
||||
@@ -24,14 +24,14 @@ button,
|
||||
}
|
||||
|
||||
.button-small {
|
||||
font-size: calc(var(--button-font-size) * .8);
|
||||
height: var(--input-height-small);
|
||||
--button-font-size: var(--button-font-size-small);
|
||||
--button-height: var(--button-height-small);
|
||||
padding: calc(var(--component-spacing) * .25) calc(var(--component-spacing) * .5);
|
||||
}
|
||||
|
||||
.button-big {
|
||||
font-size: calc(var(--button-font-size) * 1.2);
|
||||
height: var(--input-height-big);
|
||||
--button-font-size: var(--button-font-size-big);
|
||||
--button-height: var(--button-height-big);
|
||||
padding: calc(var(--component-spacing) * .75) calc(var(--component-spacing) * 1);
|
||||
}
|
||||
|
||||
|
||||
@@ -133,9 +133,14 @@
|
||||
--badge-spacing-y: .2em;
|
||||
|
||||
/* Buttons */
|
||||
--button-font-family: inherit;
|
||||
--button-font-weight: inherit;
|
||||
--button-font-size: var(--font-size);
|
||||
--button-font-family: var(--input-font-family);
|
||||
--button-font-weight: var(--input-font-weight);
|
||||
--button-font-size: var(--input-font-size);
|
||||
--button-font-size-small: var(--input-font-size-small);
|
||||
--button-font-size-big: var(--input-font-size-big);
|
||||
--button-height: var(--input-height);
|
||||
--button-height-small: var(--input-height-small);
|
||||
--button-height-big: var(--input-height-big);
|
||||
--button-color: var(--color-white);
|
||||
--button-border-radius: var(--component-border-radius);
|
||||
--button-box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), inset 0 -2px 0 rgba(0, 0, 0, .1);
|
||||
|
||||
Reference in New Issue
Block a user