1 | @import "mixins/components.buttons";
|
2 |
|
3 | .c-button {
|
4 | @include button;
|
5 | }
|
6 |
|
7 | .c-button--close {
|
8 | @include button-color(transparent, inherit);
|
9 | position: absolute;
|
10 | right: $spacing-small;
|
11 | padding: 0;
|
12 | outline: 0;
|
13 | font-size: $button-close-font-size;
|
14 | font-weight: $button-close-font-weight;
|
15 | line-height: 1;
|
16 | }
|
17 |
|
18 | .c-button--block {
|
19 | display: inline-block;
|
20 | width: 100%;
|
21 | }
|
22 |
|
23 | .c-button--rounded {
|
24 | border-radius: $button-rounded-border-radius;
|
25 | }
|
26 |
|
27 | .c-button--brand {
|
28 | @include button-color($button-brand-background-color, $button-brand-color);
|
29 | }
|
30 |
|
31 | .c-button--info {
|
32 | @include button-color($button-info-background-color, $button-info-color);
|
33 | }
|
34 |
|
35 | .c-button--warning {
|
36 | @include button-color($button-warning-background-color, $button-warning-color);
|
37 | }
|
38 |
|
39 | .c-button--success {
|
40 | @include button-color($button-success-background-color, $button-success-color);
|
41 | }
|
42 |
|
43 | .c-button--error {
|
44 | @include button-color($button-error-background-color, $button-error-color);
|
45 | }
|
46 |
|
47 | .c-button--ghost {
|
48 | @include button-ghost;
|
49 | }
|
50 |
|
51 | .c-button--ghost-brand {
|
52 | @include button-ghost($button-ghost-brand-color, $button-ghost-brand-hover-color);
|
53 | }
|
54 |
|
55 | .c-button--ghost-info {
|
56 | @include button-ghost($button-ghost-info-color, $button-ghost-info-hover-color);
|
57 | }
|
58 |
|
59 | .c-button--ghost-warning {
|
60 | @include button-ghost($button-ghost-warning-color, $button-ghost-warning-hover-color);
|
61 | }
|
62 |
|
63 | .c-button--ghost-success {
|
64 | @include button-ghost($button-ghost-success-color, $button-ghost-success-hover-color);
|
65 | }
|
66 |
|
67 | .c-button--ghost-error {
|
68 | @include button-ghost($button-ghost-error-color, $button-ghost-error-hover-color);
|
69 | }
|
70 |
|
71 | .c-button__icon-left {
|
72 | padding-right: $button-icon-left-padding;
|
73 | }
|
74 |
|
75 | .c-button__icon-right {
|
76 | padding-left: $button-icon-right-padding;
|
77 | }
|