| 1 |
$accent-color: #57abd5; |
| 2 |
$light-color: #ffffff; |
| 3 |
$color-grey: #cccccc; |
| 4 |
$text-color-dark: #416b7e; |
| 5 |
$text-color-light: rgba(65, 107, 126, 0.7); |
| 6 |
|
| 7 |
// ---TABS--- |
| 8 |
.sm-radio-group { |
| 9 |
position: relative; |
| 10 |
border-radius: 999em; |
| 11 |
overflow: hidden; |
| 12 |
|
| 13 |
//max-width: 20.285em; |
| 14 |
height: 2.428em; |
| 15 |
|
| 16 |
display: flex; |
| 17 |
flex-wrap: nowrap; |
| 18 |
align-items: stretch; |
| 19 |
|
| 20 |
color: $text-color-light; |
| 21 |
|
| 22 |
font-size: 14px; |
| 23 |
-webkit-font-smoothing: antialiased; |
| 24 |
font-weight: 600; |
| 25 |
line-height: 1.142em; |
| 26 |
|
| 27 |
> * { |
| 28 |
flex: 1 1 0; |
| 29 |
} |
| 30 |
|
| 31 |
&:after { |
| 32 |
content: ""; |
| 33 |
|
| 34 |
position: absolute; |
| 35 |
top: 0; |
| 36 |
right: 0; |
| 37 |
bottom: 0; |
| 38 |
left: 0; |
| 39 |
|
| 40 |
border: .142em solid $accent-color; |
| 41 |
border-radius: 999em; |
| 42 |
pointer-events: none; |
| 43 |
} |
| 44 |
|
| 45 |
input[type="radio"]="radio""] { |
| 46 |
display: none; |
| 47 |
|
| 48 |
&:checked + label { |
| 49 |
background-color: $accent-color; |
| 50 |
color: $light-color; |
| 51 |
|
| 52 |
&:before { |
| 53 |
content: ""; |
| 54 |
|
| 55 |
display: inline-block; |
| 56 |
color: inherit; |
| 57 |
|
| 58 |
position: relative; |
| 59 |
top: .285em; |
| 60 |
margin-right: .45em; |
| 61 |
|
| 62 |
height: .8em; |
| 63 |
width: .55em; |
| 64 |
|
| 65 |
border-right: 2px solid; |
| 66 |
border-bottom: 2px solid; |
| 67 |
|
| 68 |
transform: translateY(-50%) rotate(45deg); |
| 69 |
} |
| 70 |
} |
| 71 |
} |
| 72 |
|
| 73 |
label { |
| 74 |
display: flex; |
| 75 |
align-items: center; |
| 76 |
justify-content: center; |
| 77 |
|
| 78 |
position: relative; |
| 79 |
cursor: pointer; |
| 80 |
transition: all .25s ease; |
| 81 |
|
| 82 |
color: inherit; |
| 83 |
|
| 84 |
&:hover { |
| 85 |
color: $text-color-dark; |
| 86 |
} |
| 87 |
|
| 88 |
&:nth-of-type(2) { |
| 89 |
border-left: 2px solid $accent-color; |
| 90 |
border-right: 2px solid $accent-color; |
| 91 |
} |
| 92 |
} |
| 93 |
|
| 94 |
//----- HIDDEN TABS ---- |
| 95 |
@at-root [id="customize-control-sm_coloration_level_control"]="customize-control-sm_coloration_level_control""] .sm-radio-group { |
| 96 |
display: flex; |
| 97 |
flex-direction: row-reverse; |
| 98 |
flex-wrap: nowrap; |
| 99 |
align-items: stretch; |
| 100 |
justify-content: flex-start; |
| 101 |
|
| 102 |
> * { |
| 103 |
flex: 0 0 33.33%; |
| 104 |
} |
| 105 |
|
| 106 |
input[type="radio"]="radio""] { |
| 107 |
&:last-of-type:checked + label { |
| 108 |
background: linear-gradient(90deg, #3DAAE0 0%, #D557BE 100%); |
| 109 |
} |
| 110 |
|
| 111 |
&:nth-of-type(1):checked, |
| 112 |
&:nth-of-type(2):checked { |
| 113 |
~ label:last-of-type { |
| 114 |
margin-right: -33.33%; |
| 115 |
} |
| 116 |
} |
| 117 |
} |
| 118 |
|
| 119 |
label { |
| 120 |
&:nth-of-type(1) { |
| 121 |
order: 4; |
| 122 |
} |
| 123 |
|
| 124 |
&:nth-of-type(2) { |
| 125 |
order: 3; |
| 126 |
border-left: 2px solid $accent-color; |
| 127 |
border-right: 2px solid $accent-color; |
| 128 |
} |
| 129 |
|
| 130 |
&:nth-of-type(3) { |
| 131 |
order: 2; |
| 132 |
} |
| 133 |
|
| 134 |
&:nth-of-type(4) { |
| 135 |
order: 1; |
| 136 |
border-left: 2px solid $accent-color; |
| 137 |
} |
| 138 |
} |
| 139 |
} |
| 140 |
} |
| 141 |
|
| 142 |
[id="sub-accordion-section-sm_color_palettes_section"]="sub-accordion-section-sm_color_palettes_section""].sm-view-customize li.customize-control-sm_switch { |
| 143 |
display: flex !important; |
| 144 |
align-items: center; |
| 145 |
justify-content: space-between; |
| 146 |
|
| 147 |
padding-top: 42px; |
| 148 |
padding-bottom: 42px; |
| 149 |
|
| 150 |
.customize-control-title { |
| 151 |
display: inline-block; |
| 152 |
} |
| 153 |
} |
| 154 |
|
| 155 |
//---- TOGGLE BUTTON ---- |
| 156 |
.sm-switch { |
| 157 |
display: flex; |
| 158 |
flex-wrap: nowrap; |
| 159 |
align-items: stretch; |
| 160 |
justify-content: flex-start; |
| 161 |
overflow: hidden; |
| 162 |
|
| 163 |
position: relative; |
| 164 |
height: 2.428em; |
| 165 |
max-width: 5.5em; |
| 166 |
|
| 167 |
border-radius: 999em; |
| 168 |
color: $light-color; |
| 169 |
font-size: 14px; |
| 170 |
-webkit-font-smoothing: antialiased; |
| 171 |
font-weight: 600; |
| 172 |
line-height: 1.142em; |
| 173 |
|
| 174 |
z-index: 10; |
| 175 |
|
| 176 |
input[type="radio"]="radio""] { |
| 177 |
display: none; |
| 178 |
|
| 179 |
+ label { |
| 180 |
display: flex; |
| 181 |
align-items: center; |
| 182 |
flex: 0 0 100%; |
| 183 |
|
| 184 |
&, |
| 185 |
&:after { |
| 186 |
transition: all 0.2s ease-out; |
| 187 |
} |
| 188 |
} |
| 189 |
|
| 190 |
&:checked + label { |
| 191 |
pointer-events: none; |
| 192 |
} |
| 193 |
|
| 194 |
&:nth-of-type(1) { |
| 195 |
+ label { |
| 196 |
padding-left: 1.214em; |
| 197 |
|
| 198 |
&:after { |
| 199 |
content: ""; |
| 200 |
|
| 201 |
position: absolute; |
| 202 |
top: 0; |
| 203 |
right: 0; |
| 204 |
bottom: 0; |
| 205 |
left: 0; |
| 206 |
|
| 207 |
background-color: $accent-color; |
| 208 |
z-index: -1; |
| 209 |
} |
| 210 |
} |
| 211 |
|
| 212 |
&:not(:checked) { |
| 213 |
+ label { |
| 214 |
transform: translateX(-100%) translateX(2.125em); |
| 215 |
} |
| 216 |
|
| 217 |
+ label:after { |
| 218 |
background: $color-grey; |
| 219 |
transform: translateX(100%) translateX(-2.125em); |
| 220 |
} |
| 221 |
|
| 222 |
+ label ~ label { |
| 223 |
transform: translateX(-100%); |
| 224 |
} |
| 225 |
} |
| 226 |
|
| 227 |
&:checked { |
| 228 |
+ label ~ label { |
| 229 |
transform: translateX(-2.4em); |
| 230 |
} |
| 231 |
|
| 232 |
+ label ~ label:before { |
| 233 |
transform: translateX(-100%) translateX(2.125em); |
| 234 |
} |
| 235 |
} |
| 236 |
} |
| 237 |
|
| 238 |
&:nth-of-type(2) { |
| 239 |
+ label { |
| 240 |
flex-direction: row-reverse; |
| 241 |
padding-right: 1em; |
| 242 |
|
| 243 |
&:before { |
| 244 |
content: ""; |
| 245 |
|
| 246 |
position: absolute; |
| 247 |
top: 0; |
| 248 |
right: 0; |
| 249 |
bottom: 0; |
| 250 |
left: 0; |
| 251 |
} |
| 252 |
|
| 253 |
&:after { |
| 254 |
content: ""; |
| 255 |
display: block; |
| 256 |
|
| 257 |
height: 2.142em; |
| 258 |
width: 2.142em; |
| 259 |
margin-right: auto; |
| 260 |
margin-left: 0.125em; |
| 261 |
|
| 262 |
border-radius: 50%; |
| 263 |
background-color: $light-color; |
| 264 |
box-shadow: 1px 2px 2px 0 rgba(23,21,21,0.15); |
| 265 |
pointer-events: none; |
| 266 |
} |
| 267 |
} |
| 268 |
} |
| 269 |
} |
| 270 |
} |
| 271 |
|
| 272 |
|