1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-28 01:10:58 +01:00

Merge pull request #6024 from alexvoss/codehighlight

fix: unwanted divergence public vs. insider #6017
This commit is contained in:
Martin Donath 2023-09-18 20:03:41 +02:00 committed by GitHub
commit 457a7fd5cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -80,7 +80,8 @@
--md-code-bg-color: hsla(0, 0%, 96%, 1);
// Code highlighting color shades
--md-code-hl-color: hsla(#{hex2hsl($clr-yellow-a200)}, 0.5);
--md-code-hl-color: hsla(#{hex2hsl($clr-blue-a200)}, 1);
--md-code-hl-color--light: hsla(#{hex2hsl($clr-blue-a200)}, 0.1);
--md-code-hl-number-color: hsla(0, 67%, 50%, 1);
--md-code-hl-special-color: hsla(340, 83%, 47%, 1);
--md-code-hl-function-color: hsla(291, 45%, 50%, 1);

View File

@ -161,7 +161,8 @@
display: block;
padding: 0 px2em(16px, 13.6px);
margin: 0 px2em(-16px, 13.6px);
background-color: var(--md-code-hl-color);
background-color: var(--md-code-hl-color--light);
box-shadow: 2px 0 0 0 var(--md-code-hl-color) inset;
}
// Code block title