问题
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