Skip to content

Commit 7befded

Browse files
authored
fix: improve code block background color in hints (#839)
1 parent 5ad7f11 commit 7befded

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

exampleSite/content/en/shortcodes/hints.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,31 @@ Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclima
2828

2929
{{< hint type=note >}}
3030
**Markdown content**\
31-
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture.
31+
Dolor sit, sumo unique `argument um no`. Gracie nominal id xiv. Romanesque acclimates investiture.
3232
Ornateness bland it ex enc, est yeti am bongo detract re.
3333
{{< /hint >}}
3434

3535
{{< hint type=tip >}}
3636
**Markdown content**\
37-
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture.
37+
Dolor sit, sumo unique `argument um no`. Gracie nominal id xiv. Romanesque acclimates investiture.
3838
Ornateness bland it ex enc, est yeti am bongo detract re.
3939
{{< /hint >}}
4040

4141
{{< hint type=important >}}
4242
**Markdown content**\
43-
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture.
43+
Dolor sit, sumo unique `argument um no`. Gracie nominal id xiv. Romanesque acclimates investiture.
4444
Ornateness bland it ex enc, est yeti am bongo detract re.
4545
{{< /hint >}}
4646

4747
{{< hint type=caution >}}
4848
**Markdown content**\
49-
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture.
49+
Dolor sit, sumo unique `argument um no`. Gracie nominal id xiv. Romanesque acclimates investiture.
5050
Ornateness bland it ex enc, est yeti am bongo detract re.
5151
{{< /hint >}}
5252

5353
{{< hint type=warning >}}
5454
**Markdown content**\
55-
Dolor sit, sumo unique argument um no. Gracie nominal id xiv. Romanesque acclimates investiture.
55+
Dolor sit, sumo unique `argument um no`. Gracie nominal id xiv. Romanesque acclimates investiture.
5656
Ornateness bland it ex enc, est yeti am bongo detract re.
5757

5858
Romanesque acclimates investiture.

src/sass/_shortcodes.scss

+6
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@
143143
background-color: scale-color($color, $lightness: 95%, $saturation: -30%);
144144
color: $body-font-color;
145145
padding: 0;
146+
147+
code,
148+
pre {
149+
background-color: scale-color($color, $lightness: 80%, $saturation: -75%);
150+
color: $code-font-color;
151+
}
146152
}
147153
}
148154

0 commit comments

Comments
 (0)