-
Notifications
You must be signed in to change notification settings - Fork 37
/
styles.styl
97 lines (78 loc) · 2.04 KB
/
styles.styl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
@require '../../stylus/components/forms'
@require '../../stylus/settings/breakpoints'
@require '../../stylus/tools/mixins'
.select-control__input
width 0
height 0
overflow hidden
.select--autowidth
max-width 32rem
.select--disabled
@extends $select--disabled
.select--fullwidth
@extends $select--fullwidth
padding-right 0
.select-option
display flex
flex-direction row
justify-content flex-start
align-items center
padding rem(8)
border-left rem(4) solid transparent
color var(--charcoalGrey)
transition all .2s ease-out
white-space normal /* otherwise the tick can be wrongly placed in Firefox */
&:hover:not(.select-option--disabled)
background-color var(--paleGrey)
cursor pointer
.select-option__actions
opacity 1
.select-option--focused:not(.select-option--disabled)
background-color var(--paleGrey)
.select-option--selected
background-color var(--paleGrey)
border-left-color var(--primaryColor)
.select-option--disabled
color var(--silver)
cursor not-allowed
.select-option__checkbox
margin-right rem(8)
vertical-align top
.select-option__label
flex-grow 1
display flex
justify-content space-between
align-items center
width 100%
overflow hidden
.select-option__checkmark
width rem(32)
.select-option__actions
opacity 0
white-space nowrap
transition opacity .2s ease-out
+medium-screen()
opacity 1
.select__overlay
// Covers all the app so that clicking outside ends up
// not on an option (hence not selecting) but on the select
// so that anything under does not get clicked.
&::before
content '\00a0'
width 200vw
height 200vh
top -50vh
left -50vh
display block
position fixed
.MenuList
display flex
flex-direction column
.Group
overflow-y auto
padding-top 0.25rem !important
padding-bottom .25rem !important
.FixedGroup
@extend .Group
flex-shrink 0
border-top silver 1px solid