update buttons
This commit is contained in:
parent
a063d227d3
commit
ec37d566b4
2 changed files with 9 additions and 4 deletions
|
|
@ -15,6 +15,7 @@
|
|||
--button-font-weight: var(--font-regular);
|
||||
--button-font-size: var(--size-step-0);
|
||||
--button-text-transform: none;
|
||||
--button-tracking: normal;
|
||||
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
|
|
@ -32,6 +33,7 @@
|
|||
font-size: var(--button-font-size);
|
||||
line-height: var(--leading-flat);
|
||||
text-transform: var(--button-text-transform);
|
||||
letter-spacing: var(--button-tracking);
|
||||
/* trim the space at the cap height - in Safari Technology Preview */
|
||||
text-box-trim: trim-both;
|
||||
text-box-edge: cap alphabetic;
|
||||
|
|
@ -39,7 +41,6 @@
|
|||
|
||||
.button svg {
|
||||
block-size: var(--button-icon-size, 1.2cap);
|
||||
flex: none;
|
||||
}
|
||||
|
||||
/* Hover/focus/active */
|
||||
|
|
@ -97,6 +98,7 @@
|
|||
--button-font-size: var(--size-step-min-2);
|
||||
--button-padding: var(--space-2xs) var(--space-s) var(--space-3xs) var(--space-s);
|
||||
--button-text-transform: uppercase;
|
||||
--button-tracking: var(--tracking-wide);
|
||||
}
|
||||
/* Radius variants */
|
||||
.button[data-button-radius='hard'] {
|
||||
|
|
|
|||
|
|
@ -37,13 +37,13 @@ customGradients:
|
|||
<a href="#" class="button">Default button</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="button" data-button-variant="primary">pink button</a>
|
||||
<a href="#" class="button" data-button-variant="primary">primary button</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="button" data-button-variant="secondary">blue button</a>
|
||||
<a href="#" class="button" data-button-variant="secondary">secondary button</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="button" data-button-variant="tertiary">gold button</a>
|
||||
<a href="#" class="button" data-button-variant="tertiary">tertiary button</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
|
|
@ -55,6 +55,9 @@ customGradients:
|
|||
<li>
|
||||
<a href="#" class="button"> {% svg "misc/star" %} Button with icon </a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" class="button" data-small-button>small button</a>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue