Commit | Line | Data |
---|---|---|
435f14c7 MW |
1 | .flexibleButtonGroup { |
2 | display: flex; | |
ef929498 | 3 | flex-wrap: wrap; |
8a52619a | 4 | |
435f14c7 MW |
5 | > li { |
6 | display: flex; | |
7 | flex: 0 0 auto; | |
8a52619a | 8 | |
435f14c7 MW |
9 | &:not(:last-child) { |
10 | margin-right: 5px; | |
8a52619a | 11 | |
435f14c7 MW |
12 | &.spaceAfter { |
13 | margin-right: 20px; | |
14 | } | |
15 | } | |
8a52619a | 16 | |
435f14c7 | 17 | > input[type="radio"] { |
4711ba07 MW |
18 | left: -3000px; |
19 | opacity: 0; | |
20 | position: absolute; | |
8a52619a | 21 | |
435f14c7 MW |
22 | &:checked + label { |
23 | cursor: default; | |
8a52619a | 24 | |
435f14c7 MW |
25 | > .icon { |
26 | cursor: default !important; | |
27 | } | |
28 | } | |
8a52619a | 29 | |
4711ba07 | 30 | &:focus + label { |
8a52619a | 31 | border-color: rgba(0, 0, 0, 0.3); |
4711ba07 | 32 | } |
435f14c7 | 33 | } |
8a52619a | 34 | |
435f14c7 MW |
35 | > a, |
36 | > label { | |
7f877f24 | 37 | background-color: rgb(207, 216, 220); |
4711ba07 | 38 | border: 1px solid transparent; |
7f877f24 | 39 | color: rgb(33, 33, 33); |
435f14c7 MW |
40 | cursor: pointer; |
41 | padding: 5px 10px; | |
8a52619a | 42 | |
4711ba07 MW |
43 | > .icon { |
44 | color: inherit; | |
45 | } | |
8a52619a | 46 | |
435f14c7 | 47 | > .icon { |
7f877f24 | 48 | color: inherit !important; |
435f14c7 MW |
49 | cursor: pointer !important; |
50 | } | |
51 | } | |
8a52619a | 52 | |
435f14c7 MW |
53 | > a.active, |
54 | > input[type="radio"]:checked + label, | |
55 | > input[type="radio"] + label:hover { | |
56 | color: #fff; | |
8a52619a | 57 | |
435f14c7 | 58 | &.green { |
7f877f24 | 59 | background-color: rgb(46, 125, 50); |
435f14c7 | 60 | } |
8a52619a | 61 | |
435f14c7 | 62 | &.red { |
7f877f24 | 63 | background-color: rgb(198, 40, 40); |
435f14c7 | 64 | } |
8a52619a | 65 | |
435f14c7 | 66 | &.yellow { |
60147fd8 AE |
67 | background-color: rgb(251, 140, 0); |
68 | color: #000; | |
435f14c7 MW |
69 | } |
70 | } | |
87bb7d16 AE |
71 | } |
72 | } | |
73 | ||
74 | .disabled .flexibleButtonGroup > li > input[type="radio"]:checked + label, | |
75 | .flexibleButtonGroup > li > input[type="radio"]:disabled + label { | |
76 | background-color: rgb(242, 242, 242) !important; | |
77 | color: rgb(125, 130, 100) !important; | |
78 | cursor: default; | |
8a52619a | 79 | |
87bb7d16 AE |
80 | > .icon { |
81 | color: rgb(125, 130, 100) !important; | |
82 | cursor: default !important; | |
435f14c7 MW |
83 | } |
84 | } |