|
| 1 | +@mixin market_name($FONT-SIZE, $FONT-WEIGHT, $COLOR) { |
| 2 | + font-size: $FONT-SIZE; |
| 3 | + padding: 10px 0; |
| 4 | + font-weight: $FONT-WEIGHT; |
| 5 | + flex: 1 0 auto; |
| 6 | + color: $COLOR; |
| 7 | + transition: none; |
| 8 | +} |
| 9 | +@mixin sticky($FONT-WEIGHT) { |
| 10 | + position: absolute; |
| 11 | + width: 431px; |
| 12 | + top: 60px; |
| 13 | + background: $COLOR_WHITE; |
| 14 | + @media (max-width: 767px) { |
| 15 | + top: 123px; |
| 16 | + width: calc(100% - $FONT-WEIGHT); |
| 17 | + } |
| 18 | +} |
| 19 | + |
1 | 20 | .markets {
|
2 | 21 | min-width: 120px;
|
3 | 22 | position: relative;
|
|
284 | 303 | &:last-of-type {
|
285 | 304 | padding-bottom: 80px;
|
286 | 305 | }
|
287 |
| - .label { |
288 |
| - font-size: 20px; |
289 |
| - padding: 16px 0px; |
290 |
| - font-weight: 700; |
291 |
| - } |
292 | 306 | .market_name {
|
293 |
| - font-size: 18px; |
294 |
| - padding: 10px 0; |
295 |
| - font-weight: 400; |
296 |
| - flex: 1 0 auto; |
297 |
| - color: $COLOR_BLUE; |
298 |
| - transition: none; |
| 307 | + @include market_name(18px, 500, $COLOR_BLUE); |
299 | 308 | @media (min-width: 320px) and (max-width: 767px) {
|
300 |
| - font-size: 20px; |
| 309 | + font-size: 16px; |
301 | 310 | }
|
302 | 311 |
|
303 | 312 | &.sticky {
|
304 |
| - position: absolute; |
305 |
| - width: 431px; |
306 |
| - top: 60px; |
307 |
| - background: $COLOR_WHITE; |
308 |
| - @media (max-width: 767px) { |
309 |
| - top: 123px; |
310 |
| - width: calc(100% - 20px); |
311 |
| - } |
| 313 | + @include sticky(16px); |
312 | 314 | }
|
313 | 315 | &.put_under {
|
314 | 316 | z-index: -1;
|
|
321 | 323 | margin-bottom: 10px;
|
322 | 324 |
|
323 | 325 | .submarket_name {
|
324 |
| - font-size: 12px; |
325 |
| - padding: 10px 0 0; |
| 326 | + @include market_name(12px, 400, $COLOR_ORANGE); |
| 327 | + } |
| 328 | + .symbols { |
| 329 | + display: flex; |
| 330 | + flex-wrap: wrap; |
| 331 | + flex-direction: row; |
326 | 332 | flex: 1 0 auto;
|
327 |
| - font-weight: 300; |
328 |
| - color: $COLOR_ORANGE; |
329 |
| - @media (min-width: 320px) and (max-width: 767px) { |
| 333 | + |
| 334 | + .symbol_name { |
| 335 | + padding: 5px; |
| 336 | + margin: 10px 0 5px 5px; |
| 337 | + line-height: 18px; |
| 338 | + cursor: pointer; |
| 339 | + width: 162px; |
330 | 340 | font-size: 14px;
|
| 341 | + font-weight: 500; |
| 342 | + transition: all 0.2s; |
| 343 | + @media (min-width: 320px) and (max-width: 767px) { |
| 344 | + width: 200px; |
| 345 | + font-size: 14px; |
| 346 | + } |
| 347 | + |
| 348 | + &:hover { |
| 349 | + background: $COLOR_GRAY; |
| 350 | + } |
| 351 | + &.active { |
| 352 | + background: $COLOR_BLUE; |
| 353 | + color: $COLOR_WHITE; |
| 354 | + @media (min-width: 320px) and (max-width: 767px) { |
| 355 | + background: $COLOR_BLUE; |
| 356 | + color: $COLOR_WHITE; |
| 357 | + font-weight: normal; |
| 358 | + padding-left: 5px; |
| 359 | + } |
| 360 | + } |
| 361 | + } |
| 362 | + } |
| 363 | + } |
| 364 | + } |
| 365 | + .subgroup { |
| 366 | + display: flex; |
| 367 | + flex-direction: column; |
| 368 | + flex: 0 0 auto; |
| 369 | + padding-bottom: 40px; |
| 370 | + |
| 371 | + &:last-of-type { |
| 372 | + padding-bottom: 80px; |
| 373 | + } |
| 374 | + .label { |
| 375 | + @include market_name(18px,700, $COLOR_BLUE); |
| 376 | + |
| 377 | + &.sticky { |
| 378 | + @include sticky(18px); |
| 379 | + } |
| 380 | + &.put_under { |
| 381 | + z-index: -1; |
| 382 | + } |
| 383 | + } |
| 384 | + .subgroup_name { |
| 385 | + @include market_name(18px,500, $COLOR_BLUE); |
| 386 | + @media (min-width: 320px) and (max-width: 767px) { |
| 387 | + font-size: 16px; |
| 388 | + } |
| 389 | + |
| 390 | + @media (min-width: 767px) { |
| 391 | + &.sticky { |
| 392 | + @include sticky(16px); |
| 393 | + } |
| 394 | + &.put_under { |
| 395 | + z-index: -1; |
| 396 | + } |
| 397 | + } |
| 398 | + } |
| 399 | + .submarket { |
| 400 | + display: flex; |
| 401 | + flex-direction: column; |
| 402 | + flex: 1 0 auto; |
| 403 | + margin-bottom: 10px; |
| 404 | + |
| 405 | + .submarket_name { |
| 406 | + @include market_name(12px, 400, $COLOR_ORANGE); |
| 407 | + @media (min-width: 320px) and (max-width: 767px) { |
| 408 | + font-size: 12px; |
331 | 409 | }
|
332 | 410 | }
|
333 | 411 | .symbols {
|
|
343 | 421 | cursor: pointer;
|
344 | 422 | width: 162px;
|
345 | 423 | font-size: 14px;
|
346 |
| - font-weight: 400; |
| 424 | + font-weight: 500; |
347 | 425 | transition: all 0.2s;
|
348 | 426 | @media (min-width: 320px) and (max-width: 767px) {
|
349 | 427 | width: 200px;
|
350 |
| - font-size: 16px; |
| 428 | + font-size: 14px; |
351 | 429 | }
|
352 | 430 |
|
353 | 431 | &:hover {
|
|
0 commit comments