about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/styles/dashboard.scss
blob: 1f96e73684f0edcf70972247bef956566154af08 (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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
.dashboard__counters {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;
  margin-bottom: 20px;

  & > div {
    box-sizing: border-box;
    flex: 0 0 33.333%;
    padding: 0 5px;
    margin-bottom: 10px;

    & > div,
    & > a {
      padding: 20px;
      background: lighten($ui-base-color, 4%);
      border-radius: 4px;
    }

    & > a {
      text-decoration: none;
      color: inherit;
      display: block;

      &:hover,
      &:focus,
      &:active {
        background: lighten($ui-base-color, 8%);
      }
    }
  }

  &__num,
  &__text {
    text-align: center;
    font-weight: 500;
    font-size: 24px;
    line-height: 21px;
    color: $primary-text-color;
    font-family: $font-display, sans-serif;
    margin-bottom: 20px;
  }

  &__text {
    font-size: 18px;
  }

  &__label {
    font-size: 14px;
    color: $darker-text-color;
    text-align: center;
    font-weight: 500;
  }
}

.dashboard__widgets {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -5px;

  & > div {
    flex: 0 0 33.333%;
    margin-bottom: 20px;

    & > div {
      padding: 0 5px;
    }
  }

  a:not(.name-tag) {
    color: $ui-secondary-color;
    font-weight: 500;
    text-decoration: none;
  }
}