Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thegeeklab/hugo-geekblog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRobert Kaussow <mail@geeklabor.de>2021-05-23 16:09:01 +0300
committerGitHub <noreply@github.com>2021-05-23 16:09:01 +0300
commit18e0e7577a9f3fa5cad5ef04fa8f540528bdcb89 (patch)
tree282482129ab0d2fd223f093f2d24daff918064fc /src
parent14502ab9638ca0b4f0088b825779e18bc1d1187f (diff)
fix: enforce css overwrite for raw links (#36)
Diffstat (limited to 'src')
-rw-r--r--src/sass/_base.scss14
-rw-r--r--src/sass/_markdown.scss15
2 files changed, 15 insertions, 14 deletions
diff --git a/src/sass/_base.scss b/src/sass/_base.scss
index 971e856..3fb268a 100644
--- a/src/sass/_base.scss
+++ b/src/sass/_base.scss
@@ -333,20 +333,6 @@ img {
font-size: 1.2em;
}
}
-
- &__link--raw {
- text-decoration: none;
- color: $body-font-color;
-
- &:hover {
- background: none;
- color: $body-font-color;
- }
-
- &:visited {
- color: $body-font-color;
- }
- }
}
.gblog-footer {
diff --git a/src/sass/_markdown.scss b/src/sass/_markdown.scss
index 3f2bd0f..ee22da6 100644
--- a/src/sass/_markdown.scss
+++ b/src/sass/_markdown.scss
@@ -25,6 +25,21 @@
border-radius: $border-radius;
}
+ &__link--raw {
+ text-decoration: none !important;
+ color: $body-font-color !important;
+
+ &:hover {
+ background: none !important;
+ color: $body-font-color !important;
+ text-decoration: none !important;
+ }
+
+ &:visited {
+ color: $body-font-color !important;
+ }
+ }
+
blockquote {
margin: $padding-16 0;
padding: $padding-8 $padding-16 $padding-8 ($padding-16 - $padding-4); //to keep total left space 16dp