blob: b9b8073b2c98d09bf3c1f02d6425308e81104290 [file] [log] [blame]
Yoshie Muranaka996d2d52019-12-30 09:06:45 -08001.btn {
2 font-weight: $headings-font-weight;
Derick Montague3f6710a2020-03-04 00:59:47 -06003 padding-top: $spacer / 2;
4 padding-right: $spacer;
5 padding-bottom: $spacer / 2;
6 padding-left: $spacer;
7
8 // Buttons with SVGs and text expect
9 // text to be wrapped in a span element
10 svg + span {
11 margin-left: $spacer / 4;
Yoshie Muranaka996d2d52019-12-30 09:06:45 -080012 }
13}
14
15.btn-primary {
Derick Montague7f970a12020-03-02 17:56:09 -060016 fill: currentColor;
Yoshie Muranaka996d2d52019-12-30 09:06:45 -080017}
18
19.btn-secondary {
Derick Montague7f970a12020-03-02 17:56:09 -060020 fill: currentColor;
Yoshie Muranaka996d2d52019-12-30 09:06:45 -080021}
22
23.btn-link {
24 fill: $primary;
25 text-decoration: none !important;
Derick Montague3f6710a2020-03-04 00:59:47 -060026
Yoshie Muranaka996d2d52019-12-30 09:06:45 -080027 &:focus {
28 box-shadow: $btn-focus-box-shadow;
29 }
30 &:hover {
31 fill: darken($primary, 15%);
32 }
Derick Montague3f6710a2020-03-04 00:59:47 -060033}
34
35.btn:disabled {
36 color: $gray-600;
37 fill: currentColor;
38
39 &:not(.btn-link) {
40 border-color: $gray-400;
41 background-color: $gray-400;
42 }
Yoshie Muranaka996d2d52019-12-30 09:06:45 -080043}