📦 EqualifyEverything / equalify

📄 SystemStats.module.scss · 82 lines
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
76
77
78
79
80
81
82@use "../global-styles/variables.module.scss";
@use "../global-styles/fonts.scss";

.SystemStats {
    display: flex;
    flex-direction: column;
    gap: variables.$spacing * 4;
}

.sectionHeading {
    margin: 0 0 variables.$spacing * 2 0;
    font-size: 1rem;
    color: variables.$black-translucent;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: variables.$spacing * 2;
}

.statCard {
    background: variables.$paper;
    border-radius: 6px;
    padding: variables.$spacing * 2 variables.$spacing * 3;
    display: flex;
    flex-direction: column;
    gap: variables.$spacing * 0.5;
}

.statValue {
    @include fonts.raleway-bold;
    font-size: 1.75rem;
    line-height: 1;
    color: variables.$black;
}

.statLabel {
    font-size: 0.875rem;
    color: variables.$black;
}

.statSub {
    font-size: 0.8rem;
    color: variables.$black-translucent;
    margin-top: variables.$spacing * 0.5;
}

.note {
    font-size: 0.8rem;
    color: variables.$black-translucent;
    margin: 0;
}

:global(body.dark) {
  .statCard {
    background: variables.$black;
  }

  .sectionHeading {
    color: rgba(variables.$paper, 0.5);
  }

  .statValue {
    color: variables.$paper;
  }

  .statLabel {
    color: variables.$paper;
  }

  .statSub {
    color: rgba(variables.$paper, 0.5);
  }

  .note {
    color: rgba(variables.$paper, 0.5);
  }
}