dokuwiki-template-sprintdoc.../css/area_content.less
Andreas Gohr 8bbec98f22 avoid flickering on scroll
Previoulsy when position fixing the TOC on scroll the page got shorter.
This changed the scroll position which in certain circumstances could
unfix the TOC again, making the page longer again... this made the whole
page flicker like mad.

This should avoid shortening the page.

A proper fix would require to clean up the whole structuring of the HTML
and CSS, which would probably be a good idea but would require a lot of
effort.
2020-09-03 14:38:55 +02:00

63 lines
1.3 KiB
Text
Executable file

/**
* This file provides the design styles for the page content.
*/
.content .row {
> .col-xs-12 {
box-shadow: @box-shadow;
#dokuwiki__content {
position: relative;
&::before {
content: '';
position: absolute;
top: 0;
left: 0;
height: @page-header_height;
box-sizing: border-box;
width: 100%;
background-color: @ini_background_page_header;
border-bottom: 1px solid @ini_border_light;
}
.page-content {
padding-top: @page-header_height;
.msg-area + * {
clear: both;
padding-top: 1em; // as h1
}
}
}
}
}
.main-content > .level2,
.main-content > .level1,
.main-content > .level3,
.main-content > .level4,
.main-content > .level5,
.main-content > .level6 {
> p,
> ul > li .li {
a {
font-size: inherit;
}
}
}
.level1,
.level2,
.level3,
.level4,
.level5,
.level6 {
line-height: @line-height-default;
div, p, th, td, textarea,
h1, h2, h3, h4, h5, h6,
dl, dt, dd, ol, ul, li {
line-height: @line-height-default;
}
}