Skip to content

Commit

Permalink
style(markdown): adjust link styling and dark mode text color
Browse files Browse the repository at this point in the history
- Modify dark mode fourth text color for better contrast
- Adjust padding for links in markdown content
- Add specific styling for elements with 'link' class
  • Loading branch information
EvanNotFound committed Nov 20, 2024
1 parent 5ae567d commit 03b0aa7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/css/common/colors.styl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ $dark-invert-text-color = #373D3F
$dark-first-text-color = lighten($dark-default-text-color, 30%)
$dark-second-text-color = lighten($dark-default-text-color, 20%)
$dark-third-text-color = darken($dark-default-text-color, 20%)
$dark-fourth-text-color = darken($dark-default-text-color, 80%)
$dark-fourth-text-color = darken($dark-default-text-color, 60%)
$dark-border-color = rgba(255, 255, 255, 0.08)
$dark-selection-color = $selection-color
$dark-shadow-color-1 = rgba(255, 255, 255, 0.08)
Expand Down
4 changes: 3 additions & 1 deletion source/css/common/markdown.styl
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@
// border-bottom 1px solid var(--third-text-color)
box-sizing border-box
padding-bottom 2px
padding-right 0.2em
text-underline-offset 2px
text-decoration-color var(--fourth-text-color)
transition: text-decoration-color 0.2s ease

&.link
padding-right 0.1em

.fas, .far, fab
margin 0 2px 0 6px
position relative
Expand Down

0 comments on commit 03b0aa7

Please sign in to comment.