Difference between revisions of "Joomla Standard Icomoon Fonts/zh-tw"
From Joomla! Documentation
(Created page with "Joomla 標準的 Icomoon 字體") |
(Created page with "本章節未完成") |
||
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
Since Joomla 3.0.0, the Joomla! CMS comes with its own custom [https://icomoon.io/ Icomoon Font Set]. These icon fonts are available by default for use in the "Protostar" (Frontend), "Isis" (Administrator) and "Hathor" (Administrator) Templates. | Since Joomla 3.0.0, the Joomla! CMS comes with its own custom [https://icomoon.io/ Icomoon Font Set]. These icon fonts are available by default for use in the "Protostar" (Frontend), "Isis" (Administrator) and "Hathor" (Administrator) Templates. | ||
− | == | + | == 如何使用 == |
Icon fonts can be called with a <tt><span class="icon-''name-of-icon''"></tt> tag and a {space}. eg | Icon fonts can be called with a <tt><span class="icon-''name-of-icon''"></tt> tag and a {space}. eg | ||
Line 24: | Line 24: | ||
Here is the resized Joomla! icon: <span class="icon-joomla" style="font-size:24px;"> </span> | Here is the resized Joomla! icon: <span class="icon-joomla" style="font-size:24px;"> </span> | ||
− | == | + | == 可以使用的 Icomoon 圖示 == |
This is the complete list, including the alternative names to call the icon. The alternatives are separated by a '/' below. | This is the complete list, including the alternative names to call the icon. The alternatives are separated by a '/' below. | ||
Line 241: | Line 241: | ||
</div> | </div> | ||
− | == | + | == 包含到您的佈景主題中 == |
− | {{note| | + | {{note|本章節未完成}} |
__NOTOC__ | __NOTOC__ | ||
To include the Icomoon fonts in your template you will have to add the css stylesheet (<tt>/media/jui/css/icomoon.css</tt>) or include it in your <tt>.less</tt> file when you generate the <tt>.css</tt> stylesheet(s). | To include the Icomoon fonts in your template you will have to add the css stylesheet (<tt>/media/jui/css/icomoon.css</tt>) or include it in your <tt>.less</tt> file when you generate the <tt>.css</tt> stylesheet(s). | ||
Line 252: | Line 252: | ||
<noinclude> | <noinclude> | ||
− | [[Category:CSS]] | + | [[Category:CSS{{#translation:}}]] |
− | [[Category:Template Development]] | + | [[Category:Template Development{{#translation:}}]] |
</noinclude> | </noinclude> |
Latest revision as of 00:12, 22 February 2021
Since Joomla 3.0.0, the Joomla! CMS comes with its own custom Icomoon Font Set. These icon fonts are available by default for use in the "Protostar" (Frontend), "Isis" (Administrator) and "Hathor" (Administrator) Templates.
如何使用
Icon fonts can be called with a <span class="icon-name-of-icon"> tag and a {space}. eg
<span class="icon-joomla"> </span>
Will show the Joomla! icon:
Font Size
Because the icons are fonts, you can control the size of them with an added class or style= statement. Of course you will have to define the class in your .css or .less stylesheet file.
<span class="icon-joomla large-icon"> </span> <span class="icon-joomla" style="font-size:24px;"> </span>
Here is the resized Joomla! icon:
可以使用的 Icomoon 圖示
This is the complete list, including the alternative names to call the icon. The alternatives are separated by a '/' below.
包含到您的佈景主題中
To include the Icomoon fonts in your template you will have to add the css stylesheet (/media/jui/css/icomoon.css) or include it in your .less file when you generate the .css stylesheet(s).
$doc = JFactory::getDocument();
$doc->addStyleSheet($this->baseurl.'/media/jui/css/icomoon.css');