mixin.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* shadow */
  2. @mixin shadow-elevated {
  3. box-shadow: var(--semi-shadow-elevated);
  4. }
  5. @mixin shadow-2 {
  6. box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.14), 0px 0px 1px rgba(0, 0, 0, 0.16);
  7. }
  8. @mixin shadow-0 {
  9. box-shadow: none;
  10. }
  11. @mixin shadow-1 {
  12. box-shadow: none;
  13. }
  14. @mixin shadow-knob {
  15. box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.3);
  16. }
  17. // box-sizing
  18. @mixin box-sizing() {
  19. box-sizing: border-box;
  20. }
  21. @mixin all-center {
  22. display: flex;
  23. justify-content: center;
  24. align-items: center;
  25. }
  26. @mixin ver-center {
  27. display: flex;
  28. align-items: center;
  29. }
  30. @mixin hor-center {
  31. display: flex;
  32. justify-content: center;
  33. }
  34. @mixin text-overflow-hidden {
  35. overflow: hidden;
  36. text-overflow: ellipsis;
  37. white-space: nowrap;
  38. }
  39. @mixin no-scrollbar {
  40. &::-webkit-scrollbar {
  41. // width: 8px;
  42. display: none;
  43. }
  44. &::-webkit-scrollbar-thumb {
  45. background-color: transparent;
  46. // background-color: $grey-2;
  47. }
  48. &::-webkit-scrollbar-track {
  49. opacity: 0;
  50. background-color: rgba(0, 0, 0, 0.05);
  51. background-color: transparent;
  52. // background-color: $grey-0;
  53. }
  54. &:hover {
  55. &::-webkit-scrollbar {
  56. display: block;
  57. width: 8px;
  58. // width: 12px;
  59. }
  60. &::-webkit-scrollbar-thumb {
  61. border-radius: 10px;
  62. background-color: var(--semi-gray-3);
  63. }
  64. &::-webkit-scrollbar-track {
  65. // background-color: rgba(0, 0, 0, 0.05);
  66. }
  67. }
  68. }