Advertisement
Guest User

Untitled

a guest
Mar 19th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. // How to order themable sass
  2.  
  3. // 1. Define font faces
  4.  
  5. // 2. Define any changes to theme or component variables
  6. $theme-prefix: 'theme_';
  7. $theme-font-size: 12px;
  8. $paragraph-font-size: 10px;
  9.  
  10. // 3. Define the theme default variables
  11. $theme-prefix: '' !default;
  12. $theme-font-size: 10px !default;
  13.  
  14. // 4. Translate theme variables to component variables
  15. $title-prefix: $theme-prefix !default;
  16. $title-font-size: $theme-font-size !default;
  17.  
  18. $paragraph-prefix: $theme-prefix !default;
  19. $paragraph-font-size: $theme-font-size !default;
  20.  
  21. // 5. Define global styles, reset, normalize etc.
  22.  
  23. // 6. Define layout and structuring components
  24.  
  25. // 7. Define ui components
  26. $title-prefix: '' !default;
  27. $title-font-size: 16px !default;
  28. .#{$title-prefix}title {
  29. font-size: $title-font-size;
  30. }
  31.  
  32. $paragraph-prefix: '' !default;
  33. $paragraph-font-size: 12px !default;
  34. .#{$paragraph-prefix}paragraph {
  35. font-size: $paragraph-font-size;
  36. }
  37.  
  38. // 8. Define any css level overrides or special rare case declarations
  39. .my-context {
  40. .#{$title-prefix}title {
  41. font-size: 20px;
  42. }
  43. .#{$paragraph-prefix}paragraph {
  44. font-size: 14px;
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement