From 5e6b9183115db6cc228d215430370cc86a8043ec Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Tue, 12 Mar 2024 09:45:30 +0100 Subject: [PATCH] adjust section highlighting for Kaos This should fix flickering when hovering edit buttons. It will probably break compatibility with earlier releases --- css/area_main-content.less | 1 - css/base_design.less | 50 -------------------------------------- css/plugins/edit.less | 1 - css/plugins/include.less | 31 ----------------------- 4 files changed, 83 deletions(-) delete mode 100644 css/plugins/include.less diff --git a/css/area_main-content.less b/css/area_main-content.less index 738ff65..ccd1ccc 100755 --- a/css/area_main-content.less +++ b/css/area_main-content.less @@ -20,7 +20,6 @@ } > div, - .section_highlight > div, div[class^="level"] { > ul, > ol { diff --git a/css/base_design.less b/css/base_design.less index a04049a..cb9792f 100755 --- a/css/base_design.less +++ b/css/base_design.less @@ -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 { diff --git a/css/plugins/edit.less b/css/plugins/edit.less index 2ed6f52..88a62a5 100644 --- a/css/plugins/edit.less +++ b/css/plugins/edit.less @@ -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" diff --git a/css/plugins/include.less b/css/plugins/include.less deleted file mode 100644 index d9381ab..0000000 --- a/css/plugins/include.less +++ /dev/null @@ -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; - } -}