diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-08-01 15:06:26 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-08-01 15:06:26 +0300 |
commit | 688ee3e4cb531de37e776513847b0404b85134cf (patch) | |
tree | edc91ebb2d756fbb9bf572acb5f585c178d66409 | |
parent | 3f84c8a680e45f60d2d1b7befc2fb151205df96c (diff) | |
parent | 1aa1f392482ac721e2fabf17e4b4a0cbc6493b0e (diff) |
Merge branch 'rs-code-links' into 'master'
Make `code` elements in links display as such
When a link consisted only of an inline code block -- ```[`like this`](https://google.com/)``` -- it was hard to tell that it was even a link.
Before:
> ![Screen_Shot_2015-07-31_at_5.45.06_PM](https://gitlab.com/gitlab-org/gitlab-ce/uploads/eda0a0630024d461c8de151d06e9f4db/Screen_Shot_2015-07-31_at_5.45.06_PM.png)
After:
> ![Screen_Shot_2015-07-31_at_5.43.15_PM](https://gitlab.com/gitlab-org/gitlab-ce/uploads/9542c49cfb4d43c015d464ef0ba0440f/Screen_Shot_2015-07-31_at_5.43.15_PM.png)
See merge request !1082
-rw-r--r-- | app/assets/stylesheets/base/mixins.scss | 2 | ||||
-rw-r--r-- | app/assets/stylesheets/generic/typography.scss | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/stylesheets/base/mixins.scss b/app/assets/stylesheets/base/mixins.scss index d64e79170b9..7beef1845ef 100644 --- a/app/assets/stylesheets/base/mixins.scss +++ b/app/assets/stylesheets/base/mixins.scss @@ -70,7 +70,7 @@ font-family: $monospace_font; white-space: pre; word-wrap: normal; - padding: 0; + padding: 1px 2px; } kbd { diff --git a/app/assets/stylesheets/generic/typography.scss b/app/assets/stylesheets/generic/typography.scss index 2db4213159a..34b4ee3e17e 100644 --- a/app/assets/stylesheets/generic/typography.scss +++ b/app/assets/stylesheets/generic/typography.scss @@ -38,6 +38,10 @@ code { } } +a > code { + color: $link-color; +} + /** * Wiki typography * |