Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. // wip, i stop because someone standarize 'filter' after many years in IE, and decide to use a different syntax. WTF!
  2.  
  3. .debug(@var) {
  4. &:after {
  5. content: "@{var} - @{@{var}}";
  6. }
  7. }
  8.  
  9. @hue_diff: hue(#384a5e) - hue(#455b73);
  10. @sat_diff: saturation(#384a5e) - saturation(#455b73);
  11. @ligh_diff: lightness(#384a5e) - lightness(#455b73);
  12.  
  13. @box_bg_correction: hsl(@hue_diff, @sat_diff, @ligh_diff);
  14.  
  15. .debug("hue_diff");
  16. .debug("sat_diff");
  17. .debug("ligh_diff");
  18.  
  19. /*
  20. @box_bg_correction: hsl(
  21. hue(#384a5e) - hue(#455b73),
  22. saturation(#384a5e) - saturation(#455b73),
  23. lightness(#384a5e) - lightness(#455b73)
  24. )
  25. */
  26. .box-correction {
  27. -webkit-filter: saturate(@sat_diff) brightness(@ligh_diff);
  28. filter: saturate(@sat_diff);
  29. hue-rotate(90deg)
  30.  
  31. background-color: @box_bg_correction;
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement