提交 a0fbfb5a 编写于 作者: A Andrew Fontaine

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.
上级 37b9173b
......@@ -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; }
......
......@@ -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 {
......
......@@ -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}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册