Loading...
Find
Log in
Username:
Password:
CapsLock is on.
Remember me (for 1 week)
Log in
Stay in SSL mode
History: Using the Less CSS pre-processor with Tiki
View page
Source of version: 9
(current)
Using the Less CSS pre-processor provides some benefits over editing CSS directly, such as using variables (constants), doing math calculations for color values in the code, and so on. For Tiki's CSS files, the arrangement of .less and .css files is similar to that of the Bootstrap files themselves. !! Tiki_base.css This file was formerly design.css but was renamed as of Tiki 13 to better indicate its purpose, providing CSS rules for page elements and so on that are outside the scope of bootstrap.css. (The underlying lite.css file was removed, also, as the column layout that it enabled has been replaced by the Bootstrap grid.) Just as Bootstrap has divided its rules into purpose-specific .less files, tiki_base.css is compiled from separate files that previously were, together, design.css. The rules have been separated into a number of files according to the page area or feature or function that they are related to. At edit/save time, tiki_base.css is generated by the pre-processor. !! Less files imported to make tiki_base.css These are the files that tiki_base.less imports in order to produce tiki_base.css. Most of these are pieces of the former design.css, and many still have normal .css formating. But increasingly Less syntax and variables are being used. * ../../vendor/twitter/bootstrap/less/variables.less * less/tiki-variables.less * less/tiki-miscellaneous_global.less * less/tiki-modules.less * less/tiki-toolbars.less * less/tiki-boxes_and_panels.less * less/tiki-tabs_and_tables.less * less/tiki-wikipages_and_plugins.less * less/tiki-articles.less * less/tiki-blogs.less * less/tiki-forums.less * less/tiki-comments.less * less/tiki-image_galleries.less * less/tiki-file_galleries.less * less/tiki-trackers.less * less/tiki-categories.less * less/tiki-search.less * less/tiki-sheets.less * less/tiki-calendar.less * less/tiki-translation.less * less/tiki-tags.less * less/tiki-minor_features.less * less/tiki-mytiki.less * less/tiki-admin.less * less/tiki-modal_and_managestream.less * less/tiki-maps.less * less/tiki-external_scripts_overrides.less * less/tiki-bootstrap_overrides.less * less/tablesorter-tiki.less * less/tablesorter-custom.less !!! Making changes in tiki_base.css So the above files are imported by tiki_base.less and tiki_base.css is compiled. To effect a change in tiki_base.css, the appropriate Less file above should be edited. !!! References: [http://lesscss.org/] - An overview of Less, how to download and use, examples and more. [http://coding.smashingmagazine.com/2013/03/12/customizing-bootstrap/] - Customizing Bootstrap [http://jeffcroft.com/blog/2012/feb/23/many-ways-to-use-css-preprocessors/] - The many ways to work with CSS preprocessors [[See the comments also.] !!! Setting up PhpStorm to compile Less files See [https://dev.tiki.org/Using+Less+CSS+with+Tiki] for details about using PhpStorm. !!! Compiling Less files within Tiki See [https://dev.tiki.org/Using+Less+CSS+with+Tiki] for details about how to compile Less files in Tiki, including automatically using PhpStorm. (As of 2015-06-06 in branch 14.x, the compiler bundled with Tiki was [https://github.com/oyejorge/less.php/issues/184|not working perfectly].) !!! Aliases (alias(Less CSS)) (alias(Less))
Switch Theme
Site theme (fivealive-lite/grape)
Default
Amelia
Business
Cerulean
Cosmo
Cyborg
Darkly
Darkroom
Darkshine
Feb12
Fivealive-lite
Fivealive
Flatly
Greenvalley
Journal
Jqui
Lighty
Litera
Lumen
Lux
Materia
Minty
Morph
Ohia
Pulse
Quartz
Sandstone
Simplex
Sketchy
Slate
Solar
Spacelab
Strasa
Superhero
Thenews
Tikicorp
Tikinewt
Tikipedia
United
Utopias
Vapor
Yeti
None
Akebi
Grape
Kiwi
Lemon
Orange
Plum
Raspberry
Watermelon
Switch
Layout
Stay on this page
Default
Fixed top navbar (uses site icon + "topbar" module zone)
Basic Bootstrap
Classic Tiki (3 containers - header, middle, footer)
Tikipedia
Latest Changes
No records to display
...more
Subscribe to Tiki Newsletters!
Delivered fresh to your email inbox!
Don't miss major announcements and other big news!
Site Config
Site upgraded to Tiki 23.x
Sat 24 of Jul, 2021 00:30 GMT
Site upgraded to Tiki 20
Wed 29 of May, 2019 07:57 GMT
We are now on Tiki 19.x
Fri 05 of Oct, 2018 10:02 GMT
Shoutbox module removed
Thu 28 of Jun, 2018 07:01 GMT
We are now on Tiki 18.x
Wed 02 of May, 2018 08:46 GMT
Upgraded to Tiki 17.0
Wed 02 of Aug, 2017 08:19 GMT
Upgraded to Tiki 15.0alpha
Tue 08 of Mar, 2016 13:34 GMT
Site updated to Tiki 14 beta
Tue 21 of Apr, 2015 00:01 GMT
Testing Tiki10
Thu 15 of Nov, 2012 23:06 GMT
Configurable header buttons in XtratoVeil layout
Wed 17 of Oct, 2012 14:54 GMT