aboutsummaryrefslogtreecommitdiffstats
path: root/src/styles/type.scss
blob: 234c4d5c4e8751e433f457076bcc7c7ea42277f0 (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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
@import './config.scss';
@import './mixins.scss';

.theme__dark {
  a {
    color: $dark-theme-gray-smoke;
  }
  .label {
    color: $dark-theme-gray-lightest;
  }
  .footnote {
    color: $dark-theme-gray-lightest;
  }
}

h1 {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -1px;
  margin-bottom: 25px;
}

h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 25px;
  margin-top: 5px;

  &:first-of-type {
    margin-top: 0;
  }
}

p {
  margin-bottom: 10px;
  line-height: 1.7rem;

  &:last-of-type {
    margin-bottom: 0;
  }
}

strong {
  font-weight: bold;
}

a,
button {
  color: $theme-text-color;
  text-decoration: none;

  &.button {
    background: $theme-brand-primary;
    color: #fff;
    border-radius: 3px;
    display: inline-block;
    padding: 10px 20px;
    position: relative;
    text-align: center;
    @media (prefers-reduced-motion: no-preference) {
      transition: background 0.5s, color 0.5s;
    }
    cursor: pointer;

    &:hover {
      background: darken($theme-brand-primary, 10%);
      color: #fff;
    }
  }

  &.link {
    color: $theme-brand-primary;
    cursor: pointer;
  }
}

.error-message,
.error-message:last-of-type {
  color: $theme-brand-danger;
  margin: 10px 0;
}

.center {
  text-align: center;
}

.label {
  @include formLabel();
}

.footnote {
  color: $theme-gray-light;
  font-size: 12px;
}