File size: 944 Bytes
72c8f1c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
.card-block {
  box-shadow: $box-shadow;
  display: block;
  width: 140px;
  padding: 20px 20px 15px 20px;
  border-radius: 10px;

  &__label {
    @include font(1rem);
    color: #fff;

    &.none {
      display: none;
    }
  }

  .input.none {
    display: none;
  }

  input {
    width: 100%;
  }

  &__info {
    @include font(.875rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 15px 0;
    color: #fff;
  }
}


.card-block-container {
  $m: 8px;
  display: flex;
  overflow-x: scroll;
  margin-left: -$m;
  margin-right: -$m;
  padding-bottom: $m;

  > * {
    margin-left: $m;
    margin-right: $m;
  }

  .card-block {
    @each $i in $color-blocks {
      $index: index($color-blocks, $i);
      $color: nth($color-blocks, $index);
      &:nth-child(#{$index}) {
        background-color: $color;
      }
    }
  }
}