Files
xrpl-dev-portal/styles/_content.scss
2021-06-15 15:18:57 -07:00

104 lines
1.6 KiB
SCSS

/* Site-wide header link styles --------------------------------------------- */
h1 a,
h2 a,
h3 a {
color: $white;
text-decoration: none;
}
h1 a:hover,
h2 a:hover,
h3 a:hover,
.xrpl-footer h5 a:hover {
color: $primary;
}
.curated-links a,
.children-display a,
a.card,
.xrpl-footer a {
color: $white;
&:hover {
color: $primary;
}
}
/* Content text styling ----------------------------------------------------- */
.content {
padding-bottom: 50px;
}
.content a,
.blurb a {
text-decoration: underline;
}
.content h1 {
margin-top: 32px;
line-height: 1.2;
font-weight: 400;
}
.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: 72px;
margin-bottom: 24px;
font-weight: 400;
line-height: 1.2;
}
.content h3 {
margin-top: 24px;
line-height: 1.2;
}
.content h4 {
margin-top: 20px;
line-height: 1.2;
}
.content h5 {
margin-top: 16px;
line-height: 1.2;
font-weight: 700;
}
.content h6 {
margin-top: 12px;
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;
}
}