My SMM panel
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

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