Vertical Scroll
-
How can I add a Vertical Scroll?
I tried to use this css but not useful:
.EnlighterJS{
max-height: 500px;
}
-
that code only works with EnlighterJS <= 3.0 – for the new versions see https://github.com/EnlighterJS/EnlighterJS/issues/87
unfortunately, no one works -my theme is neve-
/* Enlighter collapse ----------------------------------------------------------------------------------- */ .enlighter-collapse{ // default layout - single codeblock &.@{VIEW_STANDARD}{ // scrollbar on y axis overflow-y: auto; max-height: 500px; } // tabbed layout - use inner container a scroll wrapper! &.@{VIEW_CODEGROUP}{ // scroll wrap .enlighter-codegroup-wrapper{ // scrollbar on y axis overflow-y: auto; max-height: 500px; } } // override in case the full sourcecode should be displayed &.enlighter-collapse-full.@{VIEW_STANDARD}{ max-height: none; } &.enlighter-collapse-full.@{VIEW_CODEGROUP} .enlighter-codegroup-wrapper{ max-height: none; } }.enlighter-default{ overflow-y: scroll; max-height: 100px; }-
This reply was modified 4 years, 9 months ago by
mamounrajab.
-
This reply was modified 4 years, 9 months ago by
mamounrajab.
the first one is raw less-css code (cannot be used directly) – the second one is correct and should work. could you please provide a link to the issue ? i’ll take a look on it. maybe it’s a theme issue
NEVE THEME WEBSITE LINK:
https://themeisle.com/themes/neve/
LINK TO DOWNLOAD NEVE THEME
https://ww.wp.xz.cn/themes/neve/
—————————————–
Remark: about the second code: The code works but without a Vertical Scroll.
And there is another person encountered the same problem on another theme.the code works fine within the dev environment [chrome90, firefox 78esr] (including the neve theme) and is part of the related EnlighterJS class.
to debug your issue i need a link which shows the issue…otherwise i’m unable to provide any help
it works as expected using the code above
.enlighter-default{ overflow-y: scroll; max-height: 100px; } -
This reply was modified 4 years, 9 months ago by
The topic ‘Vertical Scroll’ is closed to new replies.