|
96 | 96 | width: 100%; |
97 | 97 | text-align: left; |
98 | 98 | padding: 8px 12px; |
| 99 | + margin: 3px 0; |
99 | 100 |
|
100 | 101 | i { |
101 | 102 | margin-right: 8px; |
|
108 | 109 | } |
109 | 110 | } |
110 | 111 |
|
111 | | - .btn { |
112 | | - margin: 5px 0; |
| 112 | + .btn.dialog-button { |
| 113 | + background-color: @bc-btn-bg; |
| 114 | + color: @bc-text; |
| 115 | + border: 1px solid @bc-btn-border; |
| 116 | + border-radius: @bc-border-radius; |
| 117 | + box-shadow: inset 0 1px @bc-highlight-hard; |
| 118 | + font-size: (@baseFontSize + 1); |
| 119 | + font-weight: @font-weight-semibold; |
| 120 | + margin: 3px 0; |
113 | 121 | transition: background-color 0.2s ease; |
114 | 122 |
|
115 | | - &.btn-primary { |
| 123 | + &:not(:disabled):not(.disabled):hover { |
| 124 | + background-color: lighten(@bc-btn-bg, 5%); |
| 125 | + color: @bc-text; |
| 126 | + } |
| 127 | + |
| 128 | + &:active:not([disabled]) { |
| 129 | + background-color: @bc-btn-bg-down; |
| 130 | + box-shadow: inset 0 1px 0 @bc-shadow-small; |
| 131 | + } |
| 132 | + |
| 133 | + &.primary { |
116 | 134 | background-color: @bc-primary-btn-bg; |
117 | 135 | border: 1px solid @bc-primary-btn-border; |
118 | 136 | box-shadow: inset 0 1px 0 @bc-highlight; |
|
124 | 142 | margin-right: 5px; |
125 | 143 | } |
126 | 144 |
|
127 | | - &:hover { |
| 145 | + &:not(:disabled):not(.disabled):hover { |
128 | 146 | background-color: lighten(@bc-primary-btn-bg, 10%); |
| 147 | + color: @bc-text-alt; |
129 | 148 | } |
130 | 149 |
|
131 | | - &:active { |
| 150 | + &:active:not([disabled]) { |
132 | 151 | background-color: @bc-primary-btn-bg-down; |
133 | 152 | box-shadow: inset 0 1px 0 @bc-shadow-small; |
134 | 153 | } |
135 | 154 | } |
136 | | - |
137 | | - &.btn-default { |
138 | | - background-color: @bc-btn-bg; |
139 | | - border: 1px solid @bc-btn-border; |
140 | | - box-shadow: inset 0 1px 0 @bc-highlight; |
141 | | - |
142 | | - &:hover { |
143 | | - background-color: lighten(@bc-btn-bg, 10%); |
144 | | - } |
145 | | - |
146 | | - &:active { |
147 | | - background-color: @bc-btn-bg-down; |
148 | | - box-shadow: inset 0 1px 0 @bc-shadow-small; |
149 | | - } |
150 | | - } |
151 | | - |
152 | | - &.btn-link { |
153 | | - background: none; |
154 | | - border: none; |
155 | | - box-shadow: none; |
156 | | - color: @bc-text-thin-quiet; |
157 | | - |
158 | | - i { |
159 | | - margin-right: 5px; |
160 | | - } |
161 | | - |
162 | | - &:hover { |
163 | | - color: @bc-text; |
164 | | - text-decoration: none; |
165 | | - } |
166 | | - } |
167 | 155 | } |
168 | 156 | } |
169 | 157 |
|
|
197 | 185 | } |
198 | 186 | } |
199 | 187 |
|
200 | | - .btn { |
201 | | - &.btn-primary { |
| 188 | + .btn.dialog-button { |
| 189 | + background-color: @dark-bc-btn-bg; |
| 190 | + border: 1px solid @dark-bc-btn-border; |
| 191 | + box-shadow: inset 0 1px 0 @dark-bc-highlight; |
| 192 | + color: @dark-bc-text; |
| 193 | + |
| 194 | + &:not(:disabled):not(.disabled):hover { |
| 195 | + background-color: lighten(@dark-bc-btn-bg, 10%); |
| 196 | + color: @dark-bc-text; |
| 197 | + } |
| 198 | + |
| 199 | + &:active:not([disabled]) { |
| 200 | + background-color: @dark-bc-btn-bg-down; |
| 201 | + box-shadow: inset 0 1px 0 @dark-bc-shadow-small; |
| 202 | + } |
| 203 | + |
| 204 | + &.primary { |
202 | 205 | background-color: @dark-bc-primary-btn-bg; |
203 | 206 | border: 1px solid @dark-bc-primary-btn-border; |
204 | 207 | box-shadow: inset 0 1px 0 @dark-bc-highlight; |
205 | 208 | color: @dark-bc-text-alt; |
206 | 209 |
|
207 | | - &:hover { |
| 210 | + &:not(:disabled):not(.disabled):hover { |
208 | 211 | background-color: lighten(@dark-bc-primary-btn-bg, 10%); |
| 212 | + color: @dark-bc-text-alt; |
209 | 213 | } |
210 | 214 |
|
211 | | - &:active { |
| 215 | + &:active:not([disabled]) { |
212 | 216 | background-color: @dark-bc-primary-btn-bg-down; |
213 | 217 | box-shadow: inset 0 1px 0 @dark-bc-shadow-small; |
214 | 218 | } |
215 | 219 | } |
216 | | - |
217 | | - &.btn-default { |
218 | | - background-color: @dark-bc-btn-bg; |
219 | | - border: 1px solid @dark-bc-btn-border; |
220 | | - box-shadow: inset 0 1px 0 @dark-bc-highlight; |
221 | | - color: @dark-bc-text; |
222 | | - |
223 | | - &:hover { |
224 | | - background-color: lighten(@dark-bc-btn-bg, 10%); |
225 | | - } |
226 | | - |
227 | | - &:active { |
228 | | - background-color: @dark-bc-btn-bg-down; |
229 | | - box-shadow: inset 0 1px 0 @dark-bc-shadow-small; |
230 | | - } |
231 | | - } |
232 | | - |
233 | | - &.btn-link { |
234 | | - color: @dark-bc-text-thin-quiet; |
235 | | - |
236 | | - &:hover { |
237 | | - color: @dark-bc-text; |
238 | | - } |
239 | | - } |
240 | 220 | } |
241 | 221 | } |
242 | 222 |
|
|
0 commit comments