forked from XRPLF/xrpl-dev-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_content.scss
119 lines (101 loc) · 1.89 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/* Content text styling (applies mostly to Markdown-generated content)------- */
.content {
padding-bottom: 50px;
p code,
table code,
li > code {
background-color: $green-1000;
color: $green-400;
}
a {
text-decoration: underline;
}
h1 {
font-size: 3rem;
margin-top: 32px;
line-height: 1.2;
font-weight: 700;
&:first-child {
margin-top: 0;
line-height: 1.2;
&::before {
margin-top: -80px;
}
}
}
h2 {
margin-top: 2.5rem;
margin-bottom: 1.5rem;
font-size: 2.5rem;
font-weight: 600;
line-height: 1.2;
}
h3 {
font-size: 2.125rem;
margin-top: 2rem;
margin-bottom: 1rem;
line-height: 1.2;
}
h4 {
font-size: 1.75rem;
margin-top: 1.5rem;
margin-bottom: 0.5rem;
line-height: 1.2;
}
h5 {
font-size: 1.25rem;
margin-top: 1.25rem;
line-height: 1.2;
font-weight: 700;
}
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. */
li {
margin: 6px;
margin-top: 24px;
}
li p {
margin: 0;
}
// "Source" links float right
a[title="Source"] {
float: right;
padding-left: 20px;
}
// Make "invisible" headers take up no space either, so we can use them
// to add additional anchors (e.g. for translated pages)
h1.invisible,
h2.invisible,
h3.invisible,
h4.invisible,
h5.invisible,
h6.invisible {
font-size: 0;
line-height: 0;
margin: 0;
.hover_anchor {
display: none;
}
}
}
.blurb a {
text-decoration: underline;
}
// 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;
}
}