Template:Created with/layout/doc: Difference between revisions
Template page
More actions
m format |
m format |
||
| Line 80: | Line 80: | ||
When iconsize is omitted, the used default will be the best value for most cases. When it is specified, a module is ivoked to check it.<br> | When iconsize is omitted, the used default will be the best value for most cases. When it is specified, a module is ivoked to check it.<br> | ||
For performance reasons it is ''highly advised'' not to specify the iconsize - ''whenever'' the default size gives an acceptable appearance.</div> | For performance reasons it is ''highly advised'' not to specify the iconsize - ''whenever'' the default size gives an acceptable appearance.</div> | ||
The <s>specification</s> <code>iconsize=0</code> does | The <s>specification</s> <code>iconsize=0</code> does not mean "no iconsize" but that it is unspecified, and the default sizes should be used. | ||
== Codepoint display == | == Codepoint display == | ||
| Line 95: | Line 95: | ||
:* <code>padding</code> e.g. (2px 4px 2px 6px) distance to items within the box; the first and third parameter can alter the height of the box! | :* <code>padding</code> e.g. (2px 4px 2px 6px) distance to items within the box; the first and third parameter can alter the height of the box! | ||
* <code>color</code> (#000) the color of the text | * <code>color</code> (#000) the color of the text | ||
* <code>background</code> (#F8F9FA) very light grey, for good readability of the black text | * <code>background</code> (#F8F9FA) very light grey, for good readability of the ''normally black'' text | ||
* <code>border</code> (1px solid #BAB) the stroke-width, stroke-style, stroke-color; '''it is recommended to modify only that parameter'''. | * <code>border</code> (1px solid #BAB) the stroke-width, stroke-style, stroke-color; '''it is recommended to modify only that parameter'''. | ||
The '''total width''' of a box is <tt>margin-left</tt> + <tt>border-left</tt> + <tt>padding-left</tt> + <code>width</code> + <tt>padding-right</tt> + <tt>border-right</tt> + <tt>margin-right</tt>.<br> | The '''total width''' of a box is <tt>margin-left</tt> + <tt>border-left-width</tt> + <tt>padding-left</tt> + <code>width</code> + <tt>padding-right</tt> + <tt>border-right-width</tt> + <tt>margin-right</tt>.<br> | ||
Similarly, the '''total height''' of a box equals to <tt>margin-top</tt> + <tt>border-top</tt> + <tt>padding-top</tt> + <code>height</code> + <tt>padding-bottom</tt> + <tt>border-bottom</tt> + <tt>margin-bottom</tt>. | Similarly, the '''total height''' of a box equals to <tt>margin-top</tt> + <tt>border-top-width</tt> + <tt>padding-top</tt> + <code>height</code> + <tt>padding-bottom</tt> + <tt>border-bottom-width</tt> + <tt>margin-bottom</tt>. | ||
While ''margin'' and ''padding'' can be defined by name (e.g. <tt>margin-left</tt>, <tt>padding-top</tt>) '''or''' with one to four single parameters | While ''margin'' and ''padding'' can be defined by name (e.g. <tt>margin-left</tt>, <tt>padding-top</tt>) '''or''' with one to four single parameters | ||
| Line 106: | Line 106: | ||
* 3 parameters: top, right & left, bottom | * 3 parameters: top, right & left, bottom | ||
* 4 parameters: top, right, bottom, left | * 4 parameters: top, right, bottom, left | ||
the borders can be specified only explicitly by names, e.g. <code>border:1px solid #BAB;border-right-color:# | the ''borders'' and their properties can be specified only either for all four sides, or explicitly by names, e.g. <code>border:1px solid #BAB;border-right-color:#080</code> | ||
<includeonly> | <includeonly> | ||