help.en
Main page
Recent changes
Item1
Item2
Syntax
History
B
I
U
S
H2
H3
wiki-link
ext-link
img
code
list
table
date
=== Themes === Most templates contain a .less file which define the general appearance (color scheme, font size and definition, size...). They also load a temporary .less file which can change foreground (@fg) and background (@bg) colors, as well as links and heading, and default font. This temporary .less file is feed by definition files from the templates/css/ folder and will also generate .css files inside its template folder, by using the associated makefile. For example for the newspaper template, you can easily change: + templates/newspaper/newspaper.html for putting the {EDIT} link on top instead of on bottom (or in addition to bottom) + templates/newspaper/newspaper.less for changing main text width, line height, margins + templates/css/newspaper_theme01.less for changing default colors and font then generate the new theme with "make newspaper_theme01" inside /templates/newspaper folder (lessc is needed). newspaper.less is importing the "newspaper_temp.less" file. Then newspaper.less is called from within the newspaper.html template. You can remplace this dynamic generation (which will be slightly less optimized than a static .css file) by removing the less.js script, the newspaper.less link from newspaper.html, and call a link to newspaper_theme01.css instead for example.
Password
Summary of changes
Powered by
LionWiki-t2t
. Last changed: September 3, 2024 at 9:19 PM CEST
Erase cookies
Syntax
History