aboutsummaryrefslogtreecommitdiff
path: root/styles/shared.scss
blob: 3f7a1558e71b433c30c2609f4ed00761532d866d (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
71
@use "./variables" as *;
@use "./alert";
@use 'sass:color';

body {
  font-family: $mainFontStack;
  line-height: 1.65;
  color: #000000;
}

%heading {
  font-family: $titleFontStack;
  margin-block-start: 0.75em;
  margin-block-end: 0.25em;
}

h1 {
  @extend %heading;
  font-size: 3.25rem;
  line-height: 1.3;

}

h2 {
  @extend %heading;
  font-size: 2.5rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 87.5,"wght" 700,"GRAD" 150
}

h3 {
  @extend %heading;
  font-size: 2rem;
  line-height: 1.55;
}

h4 {
  @extend %heading;
  font-size: 1.25rem;
  line-height: 1.55;
}

p {
  font-variation-settings: "GRAD" -15,"wdth" 112.5;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;

  th,
  td {
    border: 1px solid $accent;
    padding: 0.75rem;
    text-align: left;
  }

  th {
    font-variation-settings: "GRAD" 150,"wdth" 87.5,"wght" 700;
  }

  tbody tr:nth-child(odd) {
    background-color: color.scale($accent, $lightness: 90%);
  }

  th,
  tbody tr:nth-child(even) {
    background-color: color.scale($accent, $lightness: 97%);
  }
}