adjust section highlighting for Kaos

This should fix flickering when hovering edit buttons. It will probably
break compatibility with earlier releases
This commit is contained in:
Andreas Gohr 2024-03-12 09:45:30 +01:00
commit 5e6b918311
4 changed files with 0 additions and 83 deletions

View file

@ -20,7 +20,6 @@
}
> div,
.section_highlight > div,
div[class^="level"] {
> ul,
> ol {

View file

@ -153,64 +153,24 @@ h2 {
font-size: @font-size-head2;
margin: 0 0 @font-size-head2;
padding-top: (@font-size-head2 / 2);
.secedit + &,
div[class^="level"] + &,
.section_highlight &:first-child {
padding-top: 0;
}
.section_highlight + & {
padding-top: (@font-size-head2 / 2);
}
}
h3 {
font-size: @font-size-head3;
margin: 0 0 @font-size-head3;
padding-top: (@font-size-head3 / 2);
.secedit + &,
div[class^="level"] + &,
.section_highlight &:first-child {
padding-top: 0;
}
.section_highlight + & {
padding-top: (@font-size-head3 / 2);
}
}
h4 {
font-size: @font-size-head4;
margin: 0 0 @font-size-head4;
padding-top: (@font-size-head4 / 2);
.secedit + &,
div[class^="level"] + &,
.section_highlight &:first-child {
padding-top: 0;
}
.section_highlight + & {
padding-top: (@font-size-head4 / 2);
}
}
h5 {
font-size: @font-size-head5;
margin: 0 0 @font-size-head5;
padding-top: (@font-size-head5 / 2);
.secedit + &,
div[class^="level"] + &,
.section_highlight &:first-child {
padding-top: 0;
}
.section_highlight + & {
padding-top: (@font-size-head5 / 2);
}
}
h6 {
@ -218,16 +178,6 @@ h6 {
font-weight: @font-weight-bold;
margin: 0 0 @font-size-head6;
padding-top: (@font-size-head6 / 2);
.secedit + &,
div[class^="level"] + &,
.section_highlight &:first-child {
padding-top: 0;
}
.section_highlight + & {
padding-top: (@font-size-head6 / 2);
}
}
p {

View file

@ -15,7 +15,6 @@
@highlight-even-ini_text 20px,
);
border-color: @ini_background_page_header;
padding-top: 0 !important; // heredity
}
// "section edit button" and "editbutton_table edit button"

View file

@ -1,31 +0,0 @@
/**
* This file provides the main design styles
* across all template elements (typo, colors etc.)
*/
#dokuwiki__content .plugin_include_content {
> h1,
> .section_highlight h1 {
padding-top: @font-size-head1;
}
> h2,
> .section_highlight h2 {
padding-top: @font-size-head2;
}
> h3,
> .section_highlight h3 {
padding-top: @font-size-head3;
}
> h4,
> .section_highlight h4 {
padding-top: @font-size-head4;
}
> h5,
> .section_highlight h5 {
padding-top: @font-size-head5;
}
> h6,
> .section_highlight h6 {
padding-top: @font-size-head6;
}
}