Answer the question
In order to leave comments, you need to log in
How to organize topics using sass in Yii2?
I think how to make themes for the site on Yii2. Created based on the advanced template.
Now in the web directory, where the server is directed, there is such a structure:
_dev/
sass/
_global.scss
_vars.scss
site.scss
css/
site.css
themes/
classic/
css/
mod1/
mod.css
mod2/
mod.css
theme.css
main.css - основные стили
theme.css - изменения для темы
mod.css - изменения для модификации темы
Answer the question
In order to leave comments, you need to log in
In general, I did it as follows.
The topic was divided into the following parts:
1. Mask. Redefines the site grid. Maybe a completely new design.
2. Modifications. Redefines certain parts of the site. Widgets, components, lists, or whatever.
3. Styles. Contains only variables with colors, fonts, pictures, etc.
4. Themes. Contains a sass file, contains only the includes of the above files. Compiled to the appropriate location in the web folder
themes
v1
mask
sass
views
mods
footer.v2
leftsidebar
styles
default
darkblue
themes
default
sass
darkblue
sass
v2
mask
mods
styles
themes
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question