37 | This light-weight* css module is a set simple utilities you can use to create a variety of button style links. Easily customize or extend btns.css to fit your sites styles. 38 | 39 |
40 | * 663B gzipped and minified. 41 |The default button
45 |
46 |
47 | <a href="#" class="btn">A Button<a>
48 |
49 |
50 | A Button
51 | 52 |53 | 54 |
Button Sizes
57 |
58 | By default the base button class does not declare a font-size, so it is naturally set to 1em.
59 | Extensions to the .btn
class are available for an additional three sizes: small, medium, and large.
60 |
62 | If you'd like to extend or customize the size of the buttons, it's incredibly easy. Just apply a new font-size to the button and watch it shrink/grow. 63 |
64 |
65 |
66 | <a href="#" class="btn btn--l">A Button<a>
67 | <a href="#" class="btn">A Button<a>
68 | <a href="#" class="btn btn--m">A Button<a>
69 | <a href="#" class="btn btn--s">A Button<a>
70 |
71 |
72 | Button Skins
87 |Black & White
89 |
90 |
91 | <a href="#" class="btn btn--m btn--black">A button link</a>
92 | <a href="#" class="btn btn--m btn--white">A button link</a>
93 |
94 |
95 |
96 | A button link
97 | View on github
98 | Download .zip
99 | Sign Up ▸
100 | The grays
110 |
111 |
112 | <a href="#" class="btn btn--m btn--gray">A button link</a>
113 | <a href="#" class="btn btn--m btn--gray-dark">A button link</a>
114 | <a href="#" class="btn btn--m btn--gray-border">A button link</a>
115 |
116 |
117 |
123 |
129 |
135 |
136 | The blues
139 |
140 |
141 | <a href="#" class="btn btn--m btn--blue">A button link</a>
142 |
143 |
144 | A button link
145 | View on github
146 | Download a .zip
147 | View more ▸
148 | Block buttons
152 |Avoid having buttons that are obscenely large on tablets and desktop with the .btn--full
extension.
Centered, full-width on mobile, with a max-width of 16em on larger screens.
154 | Save 155 | Submit 156 | Cancel 157 | Sign Up 158 |