DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:css

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Both sides next revision
devel:css [2020-10-18 21:03]
Klap-in [Caching]
devel:css [2020-11-15 20:43] (current)
Klap-in [Using images and importing styles]
Line 106: Line 106:
 DokuWiki will automatically change the URL, so that the image will be found in the plugin directory, relative to the template directory. DokuWiki will automatically change the URL, so that the image will be found in the plugin directory, relative to the template directory.
  
 +**Notes**: 
 +  * ''url(...)'' in ''@import folder/style.less'' are not automatically fixed, the dispatcher assumes these are at top level ''lib/exe/'', not in the actual folder.
 +  * ''@import folder/style.css'' is handled by the CSS-dispatcher/LESS-parser as normal [[https://developer.mozilla.org/en-US/docs/Web/CSS/@import|CSS]]. So it is not directly included in the ''css.php''. However, the relative references with ''url(...)'' to ''style.css'''s actual folder are working. Importing css-files is only working if you add these in a ''all.css''/''all.less'', because these place them as really the first lines of the css.php-file. Via the other files these css-imports are ignored, because they are not really on the first line but on the first line of the e.g. a ''@media screen {...}'' block.
  
 ===== Caching ===== ===== Caching =====
devel/css.txt · Last modified: 2020-11-15 20:43 by Klap-in