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.
 
 
 
 
 
 

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