Semantic UI multisite

谁说我不能喝 提交于 2019-12-11 12:35:52

问题


Hello Stack community !

I use Semantic UI and I would like to know if it's possible to manage multiple themes (several themes in dist folder) for multiple sites in a single compilation (via gulp build) ? For my front and my backoffice ?

For example :

src/themes/site-1/
src/themes/site-2/

gulp compilation will generate :

/dist/site-1/semantic.css
/dist/site-2/semantic.css

回答1:


You can create your own custom css for your sites (site1.css etc.) Your custom css classes are overwrites to Semantic UI.

For Site1 ;

<link rel="stylesheet" type="text/css" href="assets/css/semantic.min.css" />
<link rel="stylesheet" type="text/css" href="assets/css/site1.css" />

For Site2 ;

<link rel="stylesheet" type="text/css" href="assets/css/semantic.min.css" />
<link rel="stylesheet" type="text/css" href="assets/css/site2.css" />

i hope this would help you!



来源:https://stackoverflow.com/questions/32785485/semantic-ui-multisite

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!