Guest User

Untitled

a guest
Jun 21st, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. I'm leaning toward an SMACSS approach so we can have a core set of classes that share a base set of styles and different themes can add their "extensions" to overide the original UI.
  2.  
  3. For instance, a button might be in a .php/.html file as:
  4. ```
  5. <button class"btn">My button</button>
  6. ```
  7. But then someone comes along and says, "hey, I want this button to have wayyy more spacing than what every other developer has been doing. They could then create `style_my-awesome-theme.scss` which would simply be:
  8. ```
  9. @import "core";
  10. .btn {
  11. padding: 25px;
  12. }
  13. ```
  14. So others can see exactly what's different between the original (core) and the extended theme. If you want to bring along some of the in-progress bootstrap styles, you'll have to add the following imports below your custom styles:
  15. ```
  16. @import "oe-bootstrap";
  17. @import "oe-common/all-common-import";
  18. ```
  19.  
  20. **Running `npm run build` and/or `npm run dev` will generate a new style_my-awesome-theme.css file that _should_ appear in the theme list in the app settings**
Add Comment
Please, Sign In to add comment