aboutsummaryrefslogtreecommitdiffstats
path: root/src/css/imports/_cms.css
blob: a259cd2ee9970d4b000e515728e7d3d305c94201 (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
.cms {

	/* Headings */
	& h1, & h2, & h3, & h4, & h5, & h6 {
		font-weight: bold;
		line-height: 1.25;
    margin-bottom: var(--spacing-small);
  }

  & h1 {
    font-size: 2.25rem;
  }

  & h2 {
    font-size: 1.5rem;
  }

  & h3 {
    font-size: 1.25rem;
  }

  & h4 {
    font-size: 1rem;;
  }

  & h5 {
    font-size: .875rem;
  }

	/* Links */
	& a {
		color: var(--primary);
		transition: var(--hover-transition);
		&:hover {
			background-color: var(--highlight);
			color: var(--black);
		}
	}

	/* Lists */
	& ul, & ol, & li {
		position: relative;
	}

	& ul, & ol {
		margin-bottom: var(--spacing-medium);
	}

	& ul ul, & ol ol {
		padding-left: var(--spacing-small);
	}

	& ul {
		margin-left: 1.33rem;
		& >li:before {
			content: '★';
			left: -1.33rem;
			position: absolute;
			color: var(--primary);
		}
	}

	& ol {
		list-style: none;
		margin-left: var(--spacing-medium);
		counter-reset: i 0;
    & >li:before {
      font-weight: 800;
      left: -var(--spacing-medium);
      position: absolute;
      height: 100%;
      content: counter(i);
      counter-increment: i;
      color: var(--primary);
    }
	}

  /* Blockquotes */
  & blockquote {
    background-color: var(--grey-1);
    display: block;
    border-radius: var(--border-radius);
    padding: var(--spacing-medium);
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;;
    margin-bottom: var(--spacing-medium);
    & p {
      margin: 0;
    }
  }
}