mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +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 {
|
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) */
|
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 */
|
/* remove default style for usual markdown tables */
|
||||||
div.highlight > div table{
|
div.highlight > div table{
|
||||||
background-color: transparent;
|
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 */
|
/* disable selection for lineno cells */
|
||||||
div.highlight > div td:first-child:not(:last-child){
|
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 */
|
/* remove border from row cells if highlight shortcode was used in table lineno mode */
|
||||||
div.highlight > div td > pre {
|
div.highlight > div td > pre {
|
||||||
|
border-radius: 0;
|
||||||
border-width: 0;
|
border-width: 0;
|
||||||
}
|
}
|
||||||
/* in case of table lineno mode we want to move each row closer together - besides the edges
|
/* 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 {
|
div.highlight > div {
|
||||||
|
background-color: var(--INTERNAL-CODE-BLOCK-BG-color);
|
||||||
border-color: var(--INTERNAL-CODE-BLOCK-BORDER-color);
|
border-color: var(--INTERNAL-CODE-BLOCK-BORDER-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue