mirror of
https://github.com/primer/css.git
synced 2024-12-28 08:31:58 +03:00
Add small variant, and update documentation
This commit is contained in:
parent
802321a1ca
commit
6d1b94c21e
@ -25,14 +25,19 @@ The solid blue and solid green buttons have more visual emphasis than the blue o
|
||||
|
||||
## Sizes
|
||||
|
||||
Available in two sizes, marketing buttons have a default size and a large size.
|
||||
Available in three sizes, marketing buttons have a default size and a large size.
|
||||
|
||||
```html live
|
||||
<button class="btn-mktg btn-sm-mktg mr-2" type="button">Learn more</button>
|
||||
<button class="btn-mktg btn-primary-mktg btn-sm-mktg mr-2" type="button">Sign up</button>
|
||||
<button class="btn-mktg btn-outline-mktg btn-sm-mktg mr-2" type="button">Learn more</button>
|
||||
<hr>
|
||||
<button class="btn-mktg mr-2" type="button">Learn more</button>
|
||||
<button class="btn-mktg btn-primary-mktg mr-2" type="button">Sign up</button>
|
||||
<button class="btn-mktg btn-outline-mktg mr-2" type="button">Learn more</button>
|
||||
<hr>
|
||||
<button class="btn-mktg btn-large-mktg mr-2" type="button">Learn more</button>
|
||||
<button class="btn-mktg btn-primary-mktg btn-large-mktg mr-2" type="button">Sign up</button>
|
||||
<button class="btn-mktg btn-outline-mktg btn-large-mktg mr-2" type="button">Learn more</button>
|
||||
<button class="btn-mktg btn-lg-mktg mr-2" type="button">Learn more</button>
|
||||
<button class="btn-mktg btn-primary-mktg btn-lg-mktg mr-2" type="button">Sign up</button>
|
||||
<button class="btn-mktg btn-outline-mktg btn-lg-mktg mr-2" type="button">Learn more</button>
|
||||
<hr>
|
||||
```
|
||||
|
@ -69,9 +69,14 @@
|
||||
transition: box-shadow 0.4s, color 0.4s;
|
||||
}
|
||||
|
||||
// Large
|
||||
// Size modifiers
|
||||
|
||||
.btn-large-mktg {
|
||||
.btn-sm-mktg {
|
||||
// stylelint-disable-next-line primer/spacing
|
||||
padding: rem(10px) rem($spacer-4) rem(12px);
|
||||
}
|
||||
|
||||
.btn-lg-mktg {
|
||||
// stylelint-disable-next-line primer/spacing
|
||||
padding: 20px 30px 22px !important;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user