utilities.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. @utility no-scrollbar {
  2. &::-webkit-scrollbar {
  3. display: none;
  4. }
  5. & {
  6. -ms-overflow-style: none; /* IE and Edge */
  7. scrollbar-width: none; /* Firefox */
  8. }
  9. }
  10. @utility badge-mask {
  11. -webkit-mask-image: radial-gradient(circle 5px at calc(100% - 4px) 4px, transparent 5px, black 5.5px);
  12. mask-image: radial-gradient(circle 5px at calc(100% - 4px) 4px, transparent 5px, black 5.5px);
  13. }
  14. @utility badge-mask-tight {
  15. -webkit-mask-image: radial-gradient(circle 5px at calc(100% - 2px) 2px, transparent 5px, black 5.5px);
  16. mask-image: radial-gradient(circle 5px at calc(100% - 2px) 2px, transparent 5px, black 5.5px);
  17. }
  18. @utility truncate-start {
  19. text-overflow: ellipsis;
  20. overflow: hidden;
  21. white-space: nowrap;
  22. direction: rtl;
  23. text-align: left;
  24. }
  25. @utility fade-up-text {
  26. animation: fadeUp 0.4s ease-out forwards;
  27. opacity: 0;
  28. &:nth-child(1) {
  29. animation-delay: 0.1s;
  30. }
  31. &:nth-child(2) {
  32. animation-delay: 0.2s;
  33. }
  34. &:nth-child(3) {
  35. animation-delay: 0.3s;
  36. }
  37. &:nth-child(4) {
  38. animation-delay: 0.4s;
  39. }
  40. &:nth-child(5) {
  41. animation-delay: 0.5s;
  42. }
  43. &:nth-child(6) {
  44. animation-delay: 0.6s;
  45. }
  46. &:nth-child(7) {
  47. animation-delay: 0.7s;
  48. }
  49. &:nth-child(8) {
  50. animation-delay: 0.8s;
  51. }
  52. &:nth-child(9) {
  53. animation-delay: 0.9s;
  54. }
  55. &:nth-child(10) {
  56. animation-delay: 1s;
  57. }
  58. &:nth-child(11) {
  59. animation-delay: 1.1s;
  60. }
  61. &:nth-child(12) {
  62. animation-delay: 1.2s;
  63. }
  64. &:nth-child(13) {
  65. animation-delay: 1.3s;
  66. }
  67. &:nth-child(14) {
  68. animation-delay: 1.4s;
  69. }
  70. &:nth-child(15) {
  71. animation-delay: 1.5s;
  72. }
  73. &:nth-child(16) {
  74. animation-delay: 1.6s;
  75. }
  76. &:nth-child(17) {
  77. animation-delay: 1.7s;
  78. }
  79. &:nth-child(18) {
  80. animation-delay: 1.8s;
  81. }
  82. &:nth-child(19) {
  83. animation-delay: 1.9s;
  84. }
  85. &:nth-child(20) {
  86. animation-delay: 2s;
  87. }
  88. &:nth-child(21) {
  89. animation-delay: 2.1s;
  90. }
  91. &:nth-child(22) {
  92. animation-delay: 2.2s;
  93. }
  94. &:nth-child(23) {
  95. animation-delay: 2.3s;
  96. }
  97. &:nth-child(24) {
  98. animation-delay: 2.4s;
  99. }
  100. &:nth-child(25) {
  101. animation-delay: 2.5s;
  102. }
  103. &:nth-child(26) {
  104. animation-delay: 2.6s;
  105. }
  106. &:nth-child(27) {
  107. animation-delay: 2.7s;
  108. }
  109. &:nth-child(28) {
  110. animation-delay: 2.8s;
  111. }
  112. &:nth-child(29) {
  113. animation-delay: 2.9s;
  114. }
  115. &:nth-child(30) {
  116. animation-delay: 3s;
  117. }
  118. }