|
161 | 161 | transition: opacity .3s ease-in; |
162 | 162 | } |
163 | 163 |
|
164 | | - > box, > label { |
| 164 | + > box { |
165 | 165 | padding: 0 ($spacing * 3) ($spacing + 1); // top | left/right | bottom |
166 | 166 | border-width: 2px; |
167 | 167 | border-style: solid; |
|
177 | 177 | button, button:hover { |
178 | 178 | opacity: 1; |
179 | 179 | } |
180 | | - |
181 | | - &:checked { |
182 | | - background-color: mix($bg_color, $base_color, .6); |
183 | | - } |
184 | 180 | } |
185 | 181 |
|
186 | 182 | &:checked { |
| 183 | + background-color: mix($bg_color, $base_color, .4); |
187 | 184 | border-bottom-color: transparent; |
188 | 185 | outline: none; |
189 | 186 |
|
|
194 | 191 | &:hover { |
195 | 192 | background-color: mix($bg_color, $base_color, .6); |
196 | 193 | } |
| 194 | + |
| 195 | + &:not(:first-child:only-child){ |
| 196 | + box-shadow: -1px 0 1px 0 rgba(0,0,0,0.1); |
| 197 | + } |
| 198 | + |
| 199 | + &:not(:last-child:only-child) { |
| 200 | + box-shadow: 1px 0 1px 0 rgba(0,0,0,0.1); |
| 201 | + } |
197 | 202 | } |
198 | 203 |
|
199 | 204 | label { |
|
214 | 219 | border-bottom-width: 1px; |
215 | 220 | transition: border-bottom-color .3s ease-out; |
216 | 221 |
|
217 | | - > box, > label { |
| 222 | + > box { |
218 | 223 | padding: 0 ($spacing * 3) ($spacing + 1); // top | left/right | bottom |
219 | 224 | } |
220 | 225 |
|
221 | 226 | &:hover { |
222 | | - border-bottom-color: shade($base_color, .65); |
223 | 227 | outline: none; |
224 | | - |
225 | | - > box, > label { |
226 | | - border-bottom-color: shade($base_color, .65); |
227 | | - } |
228 | 228 | } |
229 | 229 |
|
230 | 230 | &:checked { |
231 | 231 | border-bottom-color: $selected_bg_color; |
232 | 232 | outline: none; |
233 | 233 |
|
234 | | - > box, > label { |
| 234 | + > box { |
235 | 235 | border-bottom-color: $selected_bg_color; |
236 | 236 | } |
237 | 237 |
|
|
254 | 254 | border-left-width: 1px; |
255 | 255 | transition: border-left-color .3s ease-out; |
256 | 256 |
|
257 | | - > box, > label { |
| 257 | + > box { |
258 | 258 | padding: ($spacing + 1) ($spacing * 3); // top | right | bottom | left |
259 | 259 | } |
260 | 260 |
|
261 | 261 | &:hover { |
262 | | - border-left-color: shade($base_color, .65); |
263 | 262 | outline: none; |
264 | | - |
265 | | - > box, > label { |
266 | | - border-left-color: shade($base_color, .65); |
267 | | - } |
268 | 263 | } |
269 | 264 |
|
270 | 265 | &:checked { |
271 | 266 | border-left-color: $selected_bg_color; |
272 | 267 | outline: none; |
273 | 268 |
|
274 | | - > box, > label { |
| 269 | + > box { |
275 | 270 | border-left-color: $selected_bg_color; |
276 | 271 | } |
277 | 272 |
|
|
294 | 289 | border-top-width: 1px; |
295 | 290 | transition: border-top-color .3s ease-out; |
296 | 291 |
|
297 | | - > box, > label { |
| 292 | + > box { |
298 | 293 | padding: ($spacing + 1) ($spacing * 3) 0; // top/bottom | left/right |
299 | 294 | } |
300 | 295 |
|
301 | 296 | &:hover { |
302 | | - border-top-color: shade($base_color, .65); |
303 | 297 | outline: none; |
304 | | - |
305 | | - > box, > label { |
306 | | - border-top-color: shade($base_color, .65); |
307 | | - } |
308 | 298 | } |
309 | 299 |
|
310 | 300 | &:checked { |
311 | 301 | border-top-color: $selected_bg_color; |
312 | 302 | outline: none; |
313 | 303 |
|
314 | | - > box, > label { |
| 304 | + > box { |
315 | 305 | border-top-color: $selected_bg_color; |
316 | 306 | } |
317 | 307 |
|
|
334 | 324 | border-right-width: 1px; |
335 | 325 | transition: border-right-color .3s ease-out; |
336 | 326 |
|
337 | | - > box, > label { |
| 327 | + > box { |
338 | 328 | padding: ($spacing + 1) ($spacing * 3); // top/bottom | left/right |
339 | 329 | } |
340 | 330 |
|
341 | 331 | &:hover { |
342 | | - border-right-color: shade($base_color, .65); |
343 | 332 | outline: none; |
344 | | - |
345 | | - > box, > label { |
346 | | - border-right-color: shade($base_color, .65); |
347 | | - } |
348 | 333 | } |
349 | 334 |
|
350 | 335 | &:checked { |
351 | 336 | border-right-color: $selected_bg_color; |
352 | 337 | outline: none; |
353 | 338 |
|
354 | | - > box, > label { |
| 339 | + > box { |
355 | 340 | border-right-color: $selected_bg_color; |
356 | 341 | } |
357 | 342 |
|
|
0 commit comments