User Tools

Site Tools


en:template:styles

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
en:template:styles [2017/01/24 14:30]
Nicolas Ronvel [Editable Fields]
en:template:styles [2017/07/18 16:10] (current)
Nicolas Ronvel [The Card / Canvas]
Line 90: Line 90:
   * [[Code Variables]]   * [[Code Variables]]
  
-=== Order of the Canvas elements ===+=== Order of the Canvas elements ​(Z-Index) ​===
  
-The elements of the canvas are //drawn// one after the other, the first item of the array being the one first drawn. ​You can change this by setting ​an ''​order''​ property on a field, and defining the order of the element (an integer). The elements of the canvas are sorted in ascending order. ​+The elements of the canvas are //drawn// one after the other, the first item of the array being the one first drawn. ​Sometimes, elements can be mixed together and will not appear in the desired order. If you need some elements to be on the background, other on the foreground (like different layers), you can change this by setting ​''​zindex''​ property on a field, and defining the order of the element (an integer). The elements of the canvas are sorted in ascending order (Z-Index of 1 is displayed underneath Z-Index of 2, and so on).
  
-Note that the ''​order''​ property is set by default to a value of ''​1''​.+Note that the ''​zindex''​ property is set by default to a value of ''​1''​.
 ===== Inheriting styles ===== ===== Inheriting styles =====
  
en/template/styles.txt · Last modified: 2017/07/18 16:10 by Nicolas Ronvel