UNPKG

2.56 kBSCSSView Raw
1$button-family: $family-secondary;
2
3@import "bulma/sass/elements/button.sass";
4
5.button {
6 text-transform: uppercase;
7 font-weight: 600;
8 line-height: 0;
9 border: 0.125rem solid $color-dark-gray;
10 color: $color-dark-gray;
11 background-color: $color-white;
12 font-size: 1.43rem;
13 padding: calc(#{$space-bigger} - 0.187rem) $space-large;
14
15 &:hover {
16 background-color: $color-dark-gray;
17 border-color: $color-dark-gray;
18 color: $color-white;
19 text-decoration: none;
20 }
21
22 &.big {
23 font-size: 1.75rem;
24 padding: calc(#{$space-large} - 0.093rem) $space-large;
25 }
26
27 &.small {
28 font-size: 1rem;
29 padding: $space-small calc(#{$space-normal} + 0.2rem);
30 }
31
32 &.tiny {
33 font-family: $family-source-sans-pro;
34 padding: 0 $space-small;
35 font-size: 1rem;
36 text-transform: none;
37 height: 2rem;
38 }
39
40 &.tag {
41 font-family: $family-source-sans-pro;
42 padding: 0 $space-normal;
43 font-size: 0.81rem;
44 text-transform: none;
45 height: 1.81rem;
46 border-radius: 18.75rem;
47 border: 0.125rem solid $color-light-gray;
48 &:hover {
49 border-color: $color-dark-gray;
50 }
51
52 &--removable {
53 font-family: $family-source-sans-pro;
54 padding: 0 $space-normal;
55 font-size: 0.81rem;
56 text-transform: none;
57 height: 1.81rem;
58 border-radius: 18.75rem;
59 border: 0.125rem solid $color-light-gray;
60 &:hover {
61 color: $color-dark-gray;
62 background-color: $color-white;
63 border: 0.125rem solid $color-dark-gray;
64 }
65
66 &:hover > .icon {
67 color: $color-white;
68 background-color: $color-dark-gray;
69
70 &:first-child:last-child {
71 margin-right: calc(-1rem - 1px);
72 }
73 }
74 }
75
76 &--removable .icon {
77 height: 1.56rem;
78 width: 1.9rem;
79 line-height: 1.56rem;
80 font-size: 1rem;
81 background-color: $color-white;
82 color: $color-light-gray;
83 border-top-right-radius: 18.75rem;
84 border-bottom-right-radius: 18.75rem;
85
86 &:first-child:last-child {
87 margin-left: 0.3rem;
88 margin-right: -1rem;
89 }
90 }
91 }
92
93 &.is-primary:hover {
94 background-color: $color-brighter-tomato;
95 }
96
97 &.is-success:hover {
98 background-color: $color-brighter-forest-green;
99 }
100
101 &.is-info:hover {
102 background-color: $color-brighter-forest-green;
103 }
104
105 &.donate {
106 background-color: $color-gold;
107 border: none;
108 color: $color-black;
109
110 &:hover {
111 background-color: $color-brighter-gold;
112 color: $color-black;
113 text-decoration: none;
114 }
115 }
116
117 &.is-text {
118 text-decoration: none;
119 @extend .is-paddingless;
120
121 &:hover,
122 &:active,
123 &:focus {
124 border-color: transparent;
125 box-shadow: none;
126 background-color: transparent;
127 }
128 }
129}