about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/styles/components/regeneration_indicator.scss
blob: 9c1873cdffc9c2f5e652046823cd376f591565ab (plain) (blame)
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
.regeneration-indicator {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: lighten($ui-base-color, 16%);
  background: $ui-base-color;
  cursor: default;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding: 20px;

  & > div {
    width: 100%;
    background: transparent;
    padding-top: 0;
  }

  &__figure {
    background: url('~flavours/glitch/images/elephant_ui_working.svg') no-repeat center 0;
    width: 100%;
    height: 160px;
    background-size: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  &.missing-indicator {
    padding-top: 20px + 48px;

    .regeneration-indicator__figure {
      background-image: url('~flavours/glitch/images/elephant_ui_disappointed.svg');
    }
  }

  &__label {
    margin-top: 200px;

    strong {
      display: block;
      margin-bottom: 10px;
      color: lighten($ui-base-color, 34%);
    }

    span {
      font-size: 15px;
      font-weight: 400;
    }
  }
}