1
|
//
|
2
|
// Component: Button
|
3
|
//
|
4
|
// ========================================================================
|
5
|
|
6
|
|
7
|
// Variables
|
8
|
// ========================================================================
|
9
|
|
10
|
$button-line-height: $global-control-height - ($button-border-width * 2) !default;
|
11
|
$button-small-line-height: $global-control-small-height - ($button-border-width * 2) !default;
|
12
|
$button-large-line-height: $global-control-large-height - ($button-border-width * 2) !default;
|
13
|
|
14
|
$button-font-size: $global-small-font-size !default;
|
15
|
$button-large-font-size: $global-small-font-size !default;
|
16
|
|
17
|
$button-default-background: transparent !default;
|
18
|
$button-default-hover-background: transparent !default;
|
19
|
$button-default-active-background: transparent !default;
|
20
|
|
21
|
$button-disabled-background: transparent !default;
|
22
|
|
23
|
$button-text-color: $global-emphasis-color !default;
|
24
|
$button-text-hover-color: $global-emphasis-color !default;
|
25
|
|
26
|
//
|
27
|
// New
|
28
|
//
|
29
|
|
30
|
$button-text-transform: uppercase !default;
|
31
|
|
32
|
$button-border-width: $global-border-width !default;
|
33
|
|
34
|
$button-default-border: $global-border !default;
|
35
|
$button-default-hover-border: darken($global-border, 20%) !default;
|
36
|
$button-default-active-border: darken($global-border, 30%) !default;
|
37
|
|
38
|
$button-disabled-border: $global-border !default;
|
39
|
|
40
|
$button-text-border-width: $global-border-width !default;
|
41
|
$button-text-border: $button-text-hover-color !default;
|
42
|
|
43
|
|
44
|
// Component
|
45
|
// ========================================================================
|
46
|
|
47
|
|
48
|
|
49
|
// @mixin hook-button-hover(){}
|
50
|
|
51
|
// @mixin hook-button-focus(){}
|
52
|
|
53
|
// @mixin hook-button-active(){}
|
54
|
|
55
|
|
56
|
// Style modifiers
|
57
|
// ========================================================================
|
58
|
|
59
|
|
60
|
|
61
|
|
62
|
|
63
|
|
64
|
|
65
|
//
|
66
|
// Primary
|
67
|
//
|
68
|
|
69
|
|
70
|
|
71
|
// @mixin hook-button-primary-hover(){}
|
72
|
|
73
|
// @mixin hook-button-primary-active(){}
|
74
|
|
75
|
//
|
76
|
// Secondary
|
77
|
//
|
78
|
|
79
|
|
80
|
|
81
|
// @mixin hook-button-secondary-hover(){}
|
82
|
|
83
|
// @mixin hook-button-secondary-active(){}
|
84
|
|
85
|
//
|
86
|
// Danger
|
87
|
//
|
88
|
|
89
|
|
90
|
|
91
|
// @mixin hook-button-danger-hover(){}
|
92
|
|
93
|
// @mixin hook-button-danger-active(){}
|
94
|
|
95
|
|
96
|
// Disabled
|
97
|
// ========================================================================
|
98
|
|
99
|
|
100
|
|
101
|
|
102
|
// Size modifiers
|
103
|
// ========================================================================
|
104
|
|
105
|
// @mixin hook-button-small(){}
|
106
|
|
107
|
// @mixin hook-button-large(){}
|
108
|
|
109
|
|
110
|
// Text modifier
|
111
|
// ========================================================================
|
112
|
|
113
|
|
114
|
|
115
|
|
116
|
|
117
|
|
118
|
|
119
|
|
120
|
// Link modifier
|
121
|
// ========================================================================
|
122
|
|
123
|
// @mixin hook-button-link(){}
|
124
|
|
125
|
|
126
|
// Miscellaneous
|
127
|
// ========================================================================
|
128
|
|
129
|
|
130
|
|
131
|
|
132
|
// Inverse
|
133
|
// ========================================================================
|
134
|
|
135
|
$inverse-button-default-background: transparent !default;
|
136
|
$inverse-button-default-color: $inverse-global-emphasis-color !default;
|
137
|
$inverse-button-default-hover-background: transparent !default;
|
138
|
$inverse-button-default-hover-color: $inverse-global-emphasis-color !default;
|
139
|
$inverse-button-default-active-background: transparent !default;
|
140
|
$inverse-button-default-active-color: $inverse-global-emphasis-color !default;
|
141
|
|
142
|
$inverse-button-text-color: $inverse-global-emphasis-color !default;
|
143
|
$inverse-button-text-hover-color: $inverse-global-emphasis-color !default;
|
144
|
|
145
|
//
|
146
|
// Hooks
|
147
|
//
|
148
|
|
149
|
|
150
|
|
151
|
|
152
|
|
153
|
// @mixin hook-inverse-button-primary(){}
|
154
|
// @mixin hook-inverse-button-primary-hover(){}
|
155
|
// @mixin hook-inverse-button-primary-active(){}
|
156
|
|
157
|
// @mixin hook-inverse-button-secondary(){}
|
158
|
// @mixin hook-inverse-button-secondary-hover(){}
|
159
|
// @mixin hook-inverse-button-secondary-active(){}
|
160
|
|
161
|
|
162
|
// @mixin hook-inverse-button-text-hover(){}
|
163
|
// @mixin hook-inverse-button-text-disabled(){}
|