Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid O'Regan <doregan@gitlab.com>2021-06-21 20:43:49 +0300
committerDavid O'Regan <doregan@gitlab.com>2021-06-21 20:43:49 +0300
commitb27347aaedf00996d5b9fff2737f3b0810ffbfbe (patch)
treebf539b10df6978b67af49aa80ae3578e518dd6ee
parentd5ba313fd1ca4643e4f26a31d432ae44cce98ed0 (diff)
parent0ea2b86ffc17af4679170b24cbcc14c69fb641c6 (diff)
Merge branch 'fix-code-block-colors' into 'main'
Update CSS to fix improper code block color Closes #1042 See merge request gitlab-org/gitlab-docs!1906
-rw-r--r--content/assets/stylesheets/_typography.scss10
1 files changed, 5 insertions, 5 deletions
diff --git a/content/assets/stylesheets/_typography.scss b/content/assets/stylesheets/_typography.scss
index 1a7abbc1..f301f06a 100644
--- a/content/assets/stylesheets/_typography.scss
+++ b/content/assets/stylesheets/_typography.scss
@@ -1,5 +1,5 @@
---
-version: 10
+version: 11
---
@import 'variables';
@@ -98,6 +98,10 @@ version: 10
// Code
+ *:not(a):not(pre) > code {
+ color: $accessible-code-color;
+ }
+
*:not(pre) > code {
background-color: $gray-50;
border-radius: 4px;
@@ -107,10 +111,6 @@ version: 10
transition: background-color 0.15s linear;
}
- *:not(a) > code {
- color: $accessible-code-color;
- }
-
pre {
background-color: desaturate($theme-indigo-950, 20%);
border-radius: 4px;