syntaxhiglight: adjust for background #569

This commit is contained in:
Sören Weber 2023-06-17 00:36:51 +02:00
parent e1b2388a18
commit 2be07f6871
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
3 changed files with 15 additions and 0 deletions

View file

@ -489,6 +489,7 @@
}
div.highlight > div {
background-color: rgba( 248, 248, 248, 1 ); /* var(--CODE-BLOCK-BG-color) */
border-color: rgba( 216, 216, 216, 1 ); /* var(--CODE-BLOCK-BORDER-color) */
}

View file

@ -674,6 +674,18 @@ div.highlight > div{
/* remove default style for usual markdown tables */
div.highlight > div table{
background-color: transparent;
border-width: 0;
margin: 0;
}
div.highlight > div td{
border-width: 0;
!padding: 0;
}
#body div.highlight > div a {
line-height: inherit;
}
#body div.highlight > div a:after {
display: none;
}
/* disable selection for lineno cells */
div.highlight > div td:first-child:not(:last-child){
@ -685,6 +697,7 @@ div.highlight > div td:not(:first-child):last-child{
}
/* remove border from row cells if highlight shortcode was used in table lineno mode */
div.highlight > div td > pre {
border-radius: 0;
border-width: 0;
}
/* in case of table lineno mode we want to move each row closer together - besides the edges

View file

@ -239,6 +239,7 @@ pre {
}
div.highlight > div {
background-color: var(--INTERNAL-CODE-BLOCK-BG-color);
border-color: var(--INTERNAL-CODE-BLOCK-BORDER-color);
}