Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_bars.scss « src - github.com/picturepan2/spectre.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 47e21c9a6ad49b0b4ea75dbae3f1167ba34e732f (plain)
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
// Bars
.bar {
  background: $bg-color-dark;
  border-radius: $border-radius;
  display: flex;
  flex-wrap: nowrap;
  height: $unit-4;
  width: 100%;

  &.bar-sm {
    height: $unit-1;
  }

  // TODO: attr() support
  .bar-item {
    background: $primary-color;
    color: $light-color;
    display: block;
    font-size: $font-size-sm;
    flex-shrink: 0;
    line-height: $unit-4;
    height: 100%;
    position: relative;
    text-align: center;
    width: 0;

    &:first-child {
      border-bottom-left-radius: $border-radius;
      border-top-left-radius: $border-radius;
    }
    &:last-child {
      border-bottom-right-radius: $border-radius;
      border-top-right-radius: $border-radius;
      flex-shrink: 1;
    }
  }
}

// Slider bar
.bar-slider {
  height: $border-width-lg;
  margin: $layout-spacing 0;
  position: relative;

  .bar-item {
    left: 0;
    padding: 0;
    position: absolute;
    &:not(:last-child):first-child {
      background: $bg-color-dark;
      z-index: $zindex-0;
    }
  }

  .bar-slider-btn {
    background: $primary-color;
    border: 0;
    border-radius: 50%;
    height: $unit-3;
    padding: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    width: $unit-3;

    &:active {
      box-shadow: 0 0 0 .1rem $primary-color;
    }
  }
}