My SMM panel
 
 
 
 
 
 

64 lines
1.3 KiB

  1. @use "sass:map";
  2. @use "sass:color";
  3. $theme-colors: (
  4. "red-alert": #ce0018,
  5. "red-orangish": #de493b,
  6. "blue": #0736a4,
  7. "light-blue": #a4bfd9,
  8. "blue-alternate": #1877f2,
  9. "orange": #ec9f05 ,
  10. "primary": #e2e2e7,
  11. "fade-grey": #828287,
  12. "light-grey": #f0f0f0,
  13. 'link-grey': #525257,
  14. 'h2': black,
  15. 'p': #424242,
  16. "col3": #eee,
  17. "col1": #ffffff,
  18. "col4": #434547,
  19. "col5": #2a2c2d,
  20. "nav": #feca1d,
  21. "nav-light": #ffda01,
  22. "nav2": #daa520,
  23. 'blk': #000,
  24. 'navy-blue': #3e4b75,
  25. 'pale-yellow': #f8ebc2,
  26. 'lightGrey': #fafafc,
  27. 'formGrey': #3b3f44,
  28. 'special_blue': #6573ff,
  29. 'indigo': #6610f2
  30. );
  31. @function getColor($col) {
  32. @return map.get($theme-colors, $col);
  33. }
  34. @function darkenColor($col) {
  35. $oldCol : map.get($theme-colors, $col);
  36. $newCol : color.scale($oldCol, $lightness: -45%);
  37. @return $newCol;
  38. }
  39. @function lightenColor($col) {
  40. $oldCol : map.get($theme-colors, $col);
  41. $newCol : color.scale($oldCol, $lightness: 15%);
  42. @return $newCol;
  43. }
  44. @mixin button($col) {
  45. display: inline-block;
  46. //font-family: $btn-font-family;
  47. font-weight: 400;
  48. background-color: getColor($col);
  49. text-align: center;
  50. vertical-align: middle;
  51. user-select: none;
  52. border: none;
  53. padding: 7px 15px;
  54. border-radius: 5px;
  55. &:hover{
  56. background-color: darkenColor($col);
  57. }
  58. }