My SMM panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

137 line
3.2 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. "medium-blue": #1877f2,
  9. "dark-blue": #09c6f9,
  10. "orange": #ec9f05,
  11. "dark-orange": #ff4e00,
  12. "brand-orange": #f67602,
  13. "grey": #e6ebf1,
  14. "light-grey": #e9e9e9,
  15. "dark-grey": #212121,
  16. "faded-text": #425466,
  17. "faded-text2": #6c757d,
  18. "dark-green": #3bb78f,
  19. "light-green": #0bab64,
  20. "green": #63b521,
  21. "alt-blue-light": #e2f5ff,
  22. "alt-blue-medium": #2b96cc,
  23. "alt-red-light": #f3beb8,
  24. "alt-red-medium": #f09898,
  25. );
  26. @function getColor($col) {
  27. @return map.get($theme-colors, $col);
  28. }
  29. @function darkenColor($col) {
  30. $oldCol : map.get($theme-colors, $col);
  31. $newCol : color.scale($oldCol, $lightness: -45%);
  32. @return $newCol;
  33. }
  34. @function lightenColor($col) {
  35. $oldCol : map.get($theme-colors, $col);
  36. $newCol : color.scale($oldCol, $lightness: 15%);
  37. @return $newCol;
  38. }
  39. @mixin button($col) {
  40. display: inline-block;
  41. //font-family: $btn-font-family;
  42. font-weight: 400;
  43. background-color: getColor($col);
  44. text-align: center;
  45. vertical-align: middle;
  46. user-select: none;
  47. border: none;
  48. padding: 7px 15px;
  49. border-radius: 5px;
  50. &:hover{
  51. background-color: darkenColor($col);
  52. }
  53. }
  54. // A linear gradient with the light color at the top left and dark color at
  55. // bottom right, that darkens on hover
  56. @mixin special-button($start, $end) {
  57. font-family: "PatuaOne";
  58. height: 2em;
  59. border: none;
  60. border-radius: 4px;
  61. padding: 3px;
  62. color: white;
  63. background-color: #045de9;
  64. background-image: linear-gradient(315deg, map.get($theme-colors, $start) 0%, map.get($theme-colors, $end) 74%);
  65. &:hover {
  66. background-image: linear-gradient(315deg, darkenColor($start) 0%, darkenColor($end) 74%);
  67. }
  68. }
  69. // A white button with a transparent background that becomes white and orange on hover
  70. @mixin transparent-button {
  71. text-align: center;
  72. font-size: 20px;
  73. border: 2px solid white;
  74. border-radius: 4px;
  75. padding: 10px;
  76. background-color: transparent;
  77. color: white;
  78. &:hover {
  79. background-color: white;
  80. color: map.get($theme-colors, "orange");
  81. }
  82. }
  83. // A button with a white background and specified accent color that reverses on hover
  84. @mixin brand-button($col) {
  85. width: 10em;
  86. height: 2.5em;;
  87. background-color: white;
  88. border: 2px solid map.get($theme-colors, $col);
  89. color: map.get($theme-colors, $col);
  90. border-radius: 4px;
  91. font-size: 16px;
  92. &:hover {
  93. background-color: map.get($theme-colors, $col);
  94. color: white;
  95. }
  96. }
  97. @mixin hovering {
  98. padding: 18px 9px;
  99. border-radius: 4px;
  100. background: white;
  101. box-shadow: 7px 10px 8px rgb(156 166 175 / 22%);
  102. transition: transform 0.2s;
  103. }
  104. @mixin hovering2 {
  105. padding: 18px 9px;
  106. border-radius: 4px;
  107. background: white;
  108. box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
  109. transition: transform 0.2s;
  110. }
  111. @mixin hovering3 {
  112. padding: 18px 9px;
  113. border-radius: 4px;
  114. background: white;
  115. box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
  116. transition: transform 0.2s;
  117. }
  118. @mixin hovering-light {
  119. padding: 18px 9px;
  120. border-radius: 4px;
  121. background: white;
  122. box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  123. transition: transform 0.2s;
  124. }