Files
xrpl-dev-portal/styles/_content.scss
mDuo13 209e03f5f4 light mode fixes, CSS cleanup:
- light mode icons, styles to switch them
- put all card graphics in the same place, removed unused ones
- template/style changes to use the card graphics consistently
- styled the light mode icon with new graphics & animation
- fixed mobile nav colors in light mode
- fixed side nav & dropdown hover colors in light mode
2021-07-09 18:52:23 -07:00

112 lines
1.9 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: $link-hover-color;
// }
//
// .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 {
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;
}
}