Browse Source

add style for <a> to markdown.

master
Gisle Aune 2 years ago
parent
commit
972ad748f2
  1. 15
      frontend/src/lib/components/common/Markdown.svelte

15
frontend/src/lib/components/common/Markdown.svelte

@ -10,7 +10,9 @@
<div class="markdown">{@html outputHtml}</div>
<style>
<style lang="scss">
@import "../../css/colors.sass";
div.markdown :global(p) {
padding: 0;
margin: 0.25em 0;
@ -58,6 +60,17 @@
counter-reset: li;
}
div.markdown :global(a) {
color: #d1a31b;
text-decoration: none;
transition: 250ms;
&:hover {
color: #FFCC11;
text-decoration: underline;
}
}
div.markdown :global(ul) :global(li:before) {
content: "\2022"; /* Add content: \2022 is the CSS Code/unicode for a bullet */
color: #333; /* Change the color */

Loading…
Cancel
Save