Commit c730d7ff8e244060d96ea05756ca3fe18e720c99
display dotted line under all internal links
Matt McKegg committed on 10/14/2017, 5:56:29 AMParent: a33e94e7ad223afbbc7e71c3d98503d161cc576e
Files changed
styles/dark/markdown.mcss | changed |
styles/light/markdown.mcss | changed |
styles/dark/markdown.mcss | ||
---|---|---|
@@ -1,5 +1,12 @@ | ||
1 | 1 | Markdown { |
2 | + (a.bad) { | |
3 | + color: inherit | |
4 | + :hover { | |
5 | + text-decoration: inherit | |
6 | + } | |
7 | + } | |
8 | + | |
2 | 9 | word-break: break-word |
3 | 10 | (img) { |
4 | 11 | -pending { |
5 | 12 | background-color: #2d2c2c |
@@ -79,10 +86,18 @@ | ||
79 | 86 | } |
80 | 87 | } |
81 | 88 | [href^="#"] { |
82 | 89 | color: #c1cdf0 |
90 | + border-bottom: 1px dotted #c1cdf0 | |
83 | 91 | :hover { |
84 | 92 | text-decoration: none; |
85 | 93 | } |
86 | 94 | } |
95 | + [href^="%"] { | |
96 | + color: #efef00 | |
97 | + border-bottom: 1px dotted #efef00 | |
98 | + :hover { | |
99 | + text-decoration: none; | |
100 | + } | |
101 | + } | |
87 | 102 | } |
88 | 103 | } |
styles/light/markdown.mcss | ||
---|---|---|
@@ -1,6 +1,14 @@ | ||
1 | 1 | Markdown { |
2 | 2 | word-break: break-word |
3 | + | |
4 | + (a.bad) { | |
5 | + color: inherit | |
6 | + :hover { | |
7 | + text-decoration: inherit | |
8 | + } | |
9 | + } | |
10 | + | |
3 | 11 | (img) { |
4 | 12 | -pending { |
5 | 13 | border: 1px solid #DDD |
6 | 14 | background-color: #EEE |
@@ -63,5 +71,13 @@ | ||
63 | 71 | height: 1.5em; |
64 | 72 | align-content: center; |
65 | 73 | margin-bottom: -0.3em; |
66 | 74 | } |
75 | + (a) { | |
76 | + [href^="#"], [href^="@"], [href^="%"] { | |
77 | + border-bottom: 1px dotted #286bc3; | |
78 | + :hover { | |
79 | + text-decoration: none; | |
80 | + } | |
81 | + } | |
82 | + } | |
67 | 83 | } |
Built with git-ssb-web