[pmwiki-users] Responsive skin - scrolling
Petko Yotov
5ko at 5ko.fr
Sat Apr 29 10:44:37 CDT 2017
On 2017-04-29 11:35, Walter Keller wrote:
> Why are you scrolling the navigation frame together with the content?
> For me it's much more helpfull if the two panes are scrolled
> separatly, otherwise navigation disappears when you scroll down
> content. Look at http://wlkl.ch/index.php?n=Lit.Lit : the alphabet on
> the left top is used to navigate within the (huge) content and remains
> there, whereever you are reading.
One reason is that the default skin was this way, and the new one tries
to be as close to it as practical. Another reason is that some people
hate a scrollbar in the middle of the page, between the sidebar and the
content.
At any rate, it is possible to configure the skin so these elements
scroll independently, add something like this in pub/css/local.css:
#wikileft, #wikibody > main {
height: 80vh;
max-height: 80vh;
overflow: auto;
}
> Why is tmpl name $SkinDir/skin.tmpl and not $SkinDir/$Skin.php, which
> is the first choice in skins.php? I think PmWiki should clearly show
> and stick to a single prefered naming convention.
Both name.php and skin.php are the preferred naming convention (same for
name.tmpl and skin.tmpl).
It is far easier and more practical, if you want to work on a skin, to
only copy its directory under a new name, and not having to rename all
files and fix all links inside them. When the files are named skin.*,
this works, otherwise it doesn't.
I don't mind renaming the files, if the community has strong(er)
arguments for this.
Petko
More information about the pmwiki-users
mailing list