Add .text-underline Utility Class

Style status box links using bootstrap and other utility classes instead
of styling all `a` tags in the status-box.
This commit is contained in:
Andrew Fontaine 2019-02-21 09:21:14 -05:00
parent 37b9173bd5
commit a0fbfb5a53
3 changed files with 6 additions and 6 deletions

View file

@ -52,6 +52,11 @@
word-break: break-all;
}
.text-underline,
.text-underline:hover {
text-decoration: underline;
}
.hint { font-style: italic; color: $gl-gray-400; }
.light { color: $gl-text-color; }

View file

@ -32,11 +32,6 @@
&.status-box-issue-closed,
&.status-box-mr-merged {
background-color: $blue-500;
a {
color: inherit;
text-decoration: underline;
}
}
&.status-box-open {

View file

@ -16,7 +16,7 @@
= sprite_icon('mobile-issue-close', size: 16, css_class: 'd-block d-sm-none')
.d-none.d-sm-block
- if @issue.moved?
- moved_link_start = "<a href=\"#{issue_path(@issue.moved_to)}\">".html_safe
- moved_link_start = "<a href=\"#{issue_path(@issue.moved_to)}\" class=\"text-white text-underline\">".html_safe
- moved_link_end = '</a>'.html_safe
= s_('IssuableStatus|Closed (%{moved_link_start}moved%{moved_link_end})').html_safe % {moved_link_start: moved_link_start,
moved_link_end: moved_link_end}