My SMM panel
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 
 
 

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