Skip to content

Commit

Permalink
Fix link color in high-contrast theme, add underlines (mastodon#9949)
Browse files Browse the repository at this point in the history
Improve sorting of default themes in the dropdown
  • Loading branch information
Gargron authored and hiyuki2578 committed Oct 2, 2019
1 parent 61caf07 commit e9f1157
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 3 deletions.
51 changes: 51 additions & 0 deletions app/javascript/styles/contrast/diff.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,54 @@
}
}
}

.status__content a,
.reply-indicator__content a {
color: lighten($ui-highlight-color, 12%);
text-decoration: underline;

&.mention {
text-decoration: none;
}

&.mention span {
text-decoration: underline;

&:hover,
&:focus,
&:active {
text-decoration: none;
}
}

&:hover,
&:focus,
&:active {
text-decoration: none;
}

&.status__content__spoiler-link {
color: $secondary-text-color;
text-decoration: none;
}
}

.status__content__read-more-button {
text-decoration: underline;

&:hover,
&:focus,
&:active {
text-decoration: none;
}
}

.getting-started__footer a {
text-decoration: underline;

&:hover,
&:focus,
&:active {
text-decoration: none;
}
}
6 changes: 3 additions & 3 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -929,9 +929,9 @@ en:
<p>Originally adapted from the <a href="https://github.com/discourse/discourse">Discourse privacy policy</a>.</p>
title: "%{instance} Terms of Service and Privacy Policy"
themes:
contrast: High contrast
default: Mastodon
mastodon-light: Mastodon (light)
contrast: Mastodon (High contrast)
default: Mastodon (Dark)
mastodon-light: Mastodon (Light)
time:
formats:
default: "%b %d, %Y, %H:%M"
Expand Down

0 comments on commit e9f1157

Please sign in to comment.