Restrict visited link color to markdown only

This commit is contained in:
Alex Shpak 2020-04-06 11:26:35 +02:00
parent 1eeabcad67
commit 6234f12654
5 changed files with 111 additions and 110 deletions

View file

@ -38,10 +38,6 @@ h5 {
a { a {
text-decoration: none; text-decoration: none;
color: $color-link; color: $color-link;
&:visited {
color: $color-visited-link;
}
} }
img { img {

View file

@ -37,6 +37,9 @@
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
} }
&:visited {
color: $color-visited-link;
}
} }
img { img {
@ -135,3 +138,13 @@
} }
} }
} }
.markdown-inner {
// Util class to remove extra margin in nested markdown content
> :first-child {
margin-top: 0;
}
> :last-child {
margin-bottom: 0;
}
}

View file

@ -1,15 +1,6 @@
.markdown-inner { .markdown {
// Util class to remove extra margin in nested markdown content // {{< expand "Label" "icon" >}}
> :first-child { .book-expand {
margin-top: 0;
}
> :last-child {
margin-bottom: 0;
}
}
// {{< expand "Label" "icon" >}}
.book-expand {
margin-top: $padding-16; margin-top: $padding-16;
margin-bottom: $padding-16; margin-bottom: $padding-16;
@ -32,10 +23,10 @@
input[type="checkbox"]:checked + .book-expand-content { input[type="checkbox"]:checked + .book-expand-content {
display: block; display: block;
} }
} }
// {{< tabs >}} // {{< tabs >}}
.book-tabs { .book-tabs {
margin-top: $padding-16; margin-top: $padding-16;
margin-bottom: $padding-16; margin-bottom: $padding-16;
@ -68,10 +59,10 @@
input[type="radio"]:checked + label + .book-tabs-content { input[type="radio"]:checked + label + .book-tabs-content {
display: block; display: block;
} }
} }
// {{< columns >}} // {{< columns >}}
.book-columns { .book-columns {
margin-left: -$padding-16; margin-left: -$padding-16;
margin-right: -$padding-16; margin-right: -$padding-16;
@ -80,10 +71,10 @@
min-width: $body-min-width / 2; min-width: $body-min-width / 2;
padding: 0 $padding-16; padding: 0 $padding-16;
} }
} }
// {{< button >}} // {{< button >}}
a.book-btn { a.book-btn {
display: inline-block; display: inline-block;
font-size: $font-size-14; font-size: $font-size-14;
color: $color-link; color: $color-link;
@ -96,14 +87,15 @@ a.book-btn {
&:hover { &:hover {
text-decoration: none; text-decoration: none;
} }
} }
// {{< hint >}} // {{< hint >}}
.book-hint { .book-hint {
@each $name, $color in $hint-colors { @each $name, $color in $hint-colors {
&.#{$name} { &.#{$name} {
border-left-color: $color; border-left-color: $color;
background-color: rgba($color, 0.1); background-color: rgba($color, 0.1);
} }
}; }
}
} }

View file

@ -1 +1 @@
{"Target":"book.min.63eb88daa545365405ecdbb21033286a325c60a36cfa6d22d21e7c3bc9286941.css","MediaType":"text/css","Data":{"Integrity":"sha256-Y+uI2qVFNlQF7NuyEDMoajJcYKNs+m0i0h58O8koaUE="}} {"Target":"book.min.284c8fc21ced13c579d9027a9d14893c56b243c6045001180391cebb4cc36ab8.css","MediaType":"text/css","Data":{"Integrity":"sha256-KEyPwhztE8V52QJ6nRSJPFayQ8YEUAEYA5HOu0zDarg="}}