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

steps.less « src - github.com/picturepan2/spectre.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f9d6fc16d6011a514cf6f99fb5262ab1431b257c (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
// Steps
.step {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  margin: .5rem 0;
  width: 100%;

  .step-item {
    flex: 1 1 0;
    margin-top: 0;
    min-height: 2rem;
    text-align: center;
    position: relative;

    &:not(:first-child)::before {
      background: @primary-color;
      content: "";
      height: .2rem;
      left: -50%;
      position: absolute;
      top: .9rem;
      width: 100%;
    }

    a {
      color: @gray-color;
      display: inline-block;
      padding: 2rem 1rem 0;
      text-decoration: none;

      &::before {
        background: @primary-color;
        border: .2rem solid @light-color;
        border-radius: 50%;
        content: "";
        display: block;
        height: 1.2rem;
        left: 50%;
        position: absolute;
        top: .4rem;
        transform: translateX(-50%);
        width: 1.2rem;
        z-index: 99;
      }
    }

    &.active {
      a {
        &::before {
          background: @light-color;
          border: .2rem solid @primary-color;
        }
      }

      & ~ .step-item {
        &::before {
          background: @border-color;
        }

        a {

          &::before {
            background: @light-gray-color;
          }
        }
      }
    }
  }
}