My SMM panel
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

82 行
1.7 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. "faded-text": #425466,
  16. "faded-text2": #6c757d,
  17. );
  18. @function getColor($col) {
  19. @return map.get($theme-colors, $col);
  20. }
  21. @function darkenColor($col) {
  22. $oldCol : map.get($theme-colors, $col);
  23. $newCol : color.scale($oldCol, $lightness: -45%);
  24. @return $newCol;
  25. }
  26. @function lightenColor($col) {
  27. $oldCol : map.get($theme-colors, $col);
  28. $newCol : color.scale($oldCol, $lightness: 15%);
  29. @return $newCol;
  30. }
  31. @mixin button($col) {
  32. display: inline-block;
  33. //font-family: $btn-font-family;
  34. font-weight: 400;
  35. background-color: getColor($col);
  36. text-align: center;
  37. vertical-align: middle;
  38. user-select: none;
  39. border: none;
  40. padding: 7px 15px;
  41. border-radius: 5px;
  42. &:hover{
  43. background-color: darkenColor($col);
  44. }
  45. }
  46. @mixin special-button($start, $end) {
  47. font-family: "PatuaOne";
  48. border: none;
  49. border-radius: 4px;
  50. padding: 3px;
  51. color: white;
  52. background-color: #045de9;
  53. background-image: linear-gradient(315deg, map.get($theme-colors, $start) 0%, map.get($theme-colors, $end) 74%);
  54. }
  55. @mixin transparent-button {
  56. text-align: center;
  57. font-size: 20px;
  58. border: 2px solid white;
  59. border-radius: 4px;
  60. padding: 10px;
  61. background-color: transparent;
  62. color: white;
  63. &:hover {
  64. background-color: white;
  65. color: map.get($theme-colors, "orange");
  66. }
  67. }
  68. @mixin hovering {
  69. padding: 18px 9px;
  70. border-radius: 4px;
  71. background: white;
  72. box-shadow: 7px 10px 8px rgb(156 166 175 / 22%);
  73. transition: transform 0.2s;
  74. }