mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
syntaxhiglight: adjust for background #569
This commit is contained in:
parent
e1b2388a18
commit
2be07f6871
3 changed files with 15 additions and 0 deletions
|
@ -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) */
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -239,6 +239,7 @@ pre {
|
|||
}
|
||||
|
||||
div.highlight > div {
|
||||
background-color: var(--INTERNAL-CODE-BLOCK-BG-color);
|
||||
border-color: var(--INTERNAL-CODE-BLOCK-BORDER-color);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue