forked from XRPLF/xrpl-dev-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_content.scss
86 lines (79 loc) · 1.45 KB
/
_content.scss
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
/* Content text styling (applies mostly to Markdown-generated content)------- */
.content {
padding-bottom: 50px;
}
.content a,
.blurb a {
text-decoration: underline;
}
.content h1 {
font-size: 3rem;
margin-top: 32px;
line-height: 1.2;
font-weight: 700;
}
.content h1:first-child,
.landing section:first-of-type h1:first-child {
margin-top: 0;
line-height: 1.2;
}
.content h1:first-child:before {
margin-top: -80px;
}
.content h2 {
margin-top: 2.5rem;
margin-bottom: 1.5rem;
font-size: 2.5rem;
font-weight: 600;
line-height: 1.2;
}
.content h3 {
font-size: 2.125rem;
margin-top: 2rem;
margin-bottom: 1rem;
line-height: 1.2;
}
.content h4 {
font-size: 1.75rem;
margin-top: 1.5rem;
margin-bottom: 0.5rem;
line-height: 1.2;
}
.content h5 {
font-size: 1.25rem;
margin-top: 1.25rem;
line-height: 1.2;
font-weight: 700;
}
.content h6 {
font-size: 1rem;
margin-top: 1rem;
line-height: 1.2;
font-weight: 700;
}
/* Some list items contain <p> tags, some don't. These styles make sure both
kinds are spaced consistently. */
.content li {
margin: 6px;
margin-top: 24px;
}
.content li p {
margin: 0;
}
/* "Source" links float right */
.content a[title="Source"] {
float: right;
padding-left: 20px;
}
// Hover anchors ---------------
.hover_anchor {
visibility: hidden;
padding-left: 1rem;
font-size: 1.25rem;
}
h1,h2,h3,h4,h5,h6 {
&:hover .hover_anchor {
visibility: visible;
text-decoration: none;
}
}