diff options
author | Andrew Fontaine <afontaine@gitlab.com> | 2019-02-21 17:21:14 +0300 |
---|---|---|
committer | Andrew Fontaine <afontaine@gitlab.com> | 2019-02-21 17:34:42 +0300 |
commit | a0fbfb5a5343269849cbaaff8b62c0698b254bd6 (patch) | |
tree | c08cdc30b38242532a80e65fc87f11505fc6f916 /app | |
parent | 37b9173bd55ad9642df1e63075a078c282b31b28 (diff) |
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.
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/stylesheets/framework/common.scss | 5 | ||||
-rw-r--r-- | app/assets/stylesheets/framework/issue_box.scss | 5 | ||||
-rw-r--r-- | app/views/projects/issues/show.html.haml | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/app/assets/stylesheets/framework/common.scss b/app/assets/stylesheets/framework/common.scss index c1f2f5f8c6a..fa424532879 100644 --- a/app/assets/stylesheets/framework/common.scss +++ b/app/assets/stylesheets/framework/common.scss @@ -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; } diff --git a/app/assets/stylesheets/framework/issue_box.scss b/app/assets/stylesheets/framework/issue_box.scss index 8c77634edd7..e51f230a680 100644 --- a/app/assets/stylesheets/framework/issue_box.scss +++ b/app/assets/stylesheets/framework/issue_box.scss @@ -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 { diff --git a/app/views/projects/issues/show.html.haml b/app/views/projects/issues/show.html.haml index 728f43c1469..3a674da6e87 100644 --- a/app/views/projects/issues/show.html.haml +++ b/app/views/projects/issues/show.html.haml @@ -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} |