Skip to content

Commit 053cfb8

Browse files
MDL-86547 theme_boost: Improve code block readability in editor
Changed code text color to $gray-900 for better visibility
1 parent 8316503 commit 053cfb8

5 files changed

Lines changed: 14 additions & 4 deletions

File tree

theme/boost/scss/editor.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Code
2+
$gray-900: #1d2125 !default;
3+
$code-color: $gray-900 !default;
4+
15
/* Give editor access to all of bootstrap. */
26
@import "bootstrap/bootstrap";
37

theme/boost/scss/preset/default.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ $behatsite: false !default;
105105
$enable-transitions: not $behatsite !default;
106106
$enable-smooth-scroll: not $behatsite !default;
107107

108+
// Code
109+
$code-color: $gray-900 !default;
110+
108111
// Import FontAwesome.
109112
@import "fontawesome";
110113

theme/boost/style/moodle.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13385,7 +13385,7 @@ readers do not read off random characters that represent icons */
1338513385
--bs-link-hover-color: #0c5699;
1338613386
--bs-link-hover-color-rgb: 12, 86, 153;
1338713387
--bs-link-hover-decoration: underline;
13388-
--bs-code-color: #db1a74;
13388+
--bs-code-color: #1d2125;
1338913389
--bs-highlight-color: #1d2125;
1339013390
--bs-highlight-bg: #ffe3d1;
1339113391
--bs-border-width: 1px;
@@ -13457,7 +13457,7 @@ readers do not read off random characters that represent icons */
1345713457
--bs-link-hover-color: #8cb9e1;
1345813458
--bs-link-color-rgb: 111, 167, 217;
1345913459
--bs-link-hover-color-rgb: 140, 185, 225;
13460-
--bs-code-color: #e976ac;
13460+
--bs-code-color: #777a7c;
1346113461
--bs-highlight-color: #dee2e6;
1346213462
--bs-highlight-bg: #662f0a;
1346313463
--bs-border-color: #495057;

theme/classic/scss/preset/default.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ $behatsite: false !default;
104104
$enable-transitions: not $behatsite !default;
105105
$enable-smooth-scroll: not $behatsite !default;
106106

107+
// Code
108+
$code-color: $gray-900 !default;
109+
107110
// Import FontAwesome.
108111
@import "fontawesome";
109112

theme/classic/style/moodle.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13385,7 +13385,7 @@ readers do not read off random characters that represent icons */
1338513385
--bs-link-hover-color: #0c5699;
1338613386
--bs-link-hover-color-rgb: 12, 86, 153;
1338713387
--bs-link-hover-decoration: underline;
13388-
--bs-code-color: #db1a74;
13388+
--bs-code-color: #1d2125;
1338913389
--bs-highlight-color: #1d2125;
1339013390
--bs-highlight-bg: #ffe3d1;
1339113391
--bs-border-width: 1px;
@@ -13457,7 +13457,7 @@ readers do not read off random characters that represent icons */
1345713457
--bs-link-hover-color: #8cb9e1;
1345813458
--bs-link-color-rgb: 111, 167, 217;
1345913459
--bs-link-hover-color-rgb: 140, 185, 225;
13460-
--bs-code-color: #e976ac;
13460+
--bs-code-color: #777a7c;
1346113461
--bs-highlight-color: #dee2e6;
1346213462
--bs-highlight-bg: #662f0a;
1346313463
--bs-border-color: #495057;

0 commit comments

Comments
 (0)