style: improve contrast of links in dark sections

This commit is contained in:
George Cushen committed 2019-02-24 22:11:40 +00:00
1 parent 2e146eed9c
commit d821bfec76
2 files changed
+24 -2

No files matched your search

+23 -1
View File
@@ -490,10 +490,32 @@ a[data-fancybox] img {
/* Override dark colors that may be inherited from body.dark */
.home-section.dark,
.home-section.dark h1,
.home-section.dark h3 {
.home-section.dark h2,
.home-section.dark h3,
.home-section.dark a:not(.btn):not(.alert a) {
color: rgb(248, 248, 242);
}
/* Underline links in dark sections to separate them from text */
.home-section.dark a:not(.btn):not(.hero-cta-alt):not(.alert a) {
text-decoration: underline;
}
/* Big underline style for links in dark sections */
.home-section.dark.big-underline a:not(.btn):not(.hero-cta-alt):not(.alert a) {
text-decoration: none;
position: relative;
}
.home-section.dark.big-underline a:not(.btn):not(.hero-cta-alt):not(.alert a):after {
background: #fff;
content: "";
height: 2px;
left: 0;
right: 0;
position: absolute;
top: 100%;
}
/* Create the parallax scrolling effect */
.parallax {
height: 100%;
+1 -1
View File
@@ -34,7 +34,7 @@
{{ $style = printf "%sbackground-image: %s url('%s');" $style $darken (printf "img/%s" $bg.image | absURL) }}
{{ end }}
{{ with $st.Params.advanced.css_custom }}
{{ with $st.Params.advanced.css_style }}
{{ $style = print $style . }}
{{ end }}