Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. //--load Custom Modules Class Builder Proof Of Concept--//
  2.  
  3. .module-demo-mixin(@classname, @varmodule1:blue, @varmodule2:0px){
  4. //Custom modules variables
  5. .module-@{classname}{
  6. background: @varmodule1;
  7. padding: @varmodule2;
  8. }
  9. }
  10.  
  11. //Ex: @import "/Contents/css/Psilocin/Modules/Module-Demo/style.less";
  12.  
  13. //--LAUNCH CLASS BUILDER---//
  14.  
  15. .module-demo-mixin(custom-module-01,red,15px);
  16.  
  17. //--OUTPUT: ---//
  18.  
  19. /*
  20.  
  21. .module-custom-module-01 {
  22. background: red;
  23. padding: 15px;
  24. }
  25.  
  26. */
  27.  
  28. .module-demo-mixin(custom-module-02);
  29.  
  30.  
  31. //--OUTPUT: ---//
  32.  
  33. /*
  34.  
  35. .module-custom-module-02 {
  36. background: red;
  37. padding: 15px;
  38. }
  39.  
  40. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement