My SMM panel
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

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