Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

gradient.scss 2.7 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
  1. $gradients: (
  2. "-purple-pink":
  3. linear-gradient(
  4. 135deg,
  5. var(--color-auto-purple-5) 0%,
  6. var(--color-auto-pink-5) 100%
  7. ),
  8. /*"-aquamarine-mauve": linear-gradient(130deg, #3bf0e4 -6.8%, #bca1f7 70%),
  9. "-purple-coral": linear-gradient(87.54deg, #9867f0 -6.8%, #ed4e50 84.14%),
  10. "-purple-coral-dark": linear-gradient(92deg, #bca1f7 15%, #e577b4 45%, #ff7170 85%),
  11. "-coral-yellow": linear-gradient(267.91deg, #ffe57f 9.35%, #ff7170 96.48%),
  12. "-coral-yellow-dark": linear-gradient(-70deg, #ff7170 0%, #ffe57f 100%),
  13. "-dark-mint": linear-gradient(90deg, #05aa82, #1c8df0),
  14. "-mint-blue": linear-gradient(271.72deg, #a2facf 7.09%, #64acff 96.61%),
  15. "-mint-blue-dark": linear-gradient(-70deg, #a2facf 0%, #64acff 100%),
  16. "-turq-purple-dark": linear-gradient(-70deg, #3bf0e4 0%, #bca1f7 100%),
  17. "-blue-green": linear-gradient(-70deg, #2188ff 0%, #01a49e 100%),
  18. "-red-orange": linear-gradient(-70deg, #ed4e50 0%, #f06f00 100%),
  19. "-blue-purple": linear-gradient(-70deg, #2188ff 0%, #804eda 100%), */
  20. "-pink-blue":
  21. linear-gradient(
  22. 90deg,
  23. var(--color-auto-pink-5) -50%,
  24. var(--color-auto-blue-5) 150%
  25. ),
  26. "-pink-blue-dark":
  27. linear-gradient(
  28. -70deg,
  29. var(--color-auto-pink-3) 0%,
  30. var(--color-auto-blue-3) 100%
  31. ),
  32. "-blue-pink":
  33. linear-gradient(
  34. -70deg,
  35. var(--color-auto-blue-5) 0%,
  36. var(--color-auto-pink-5) 100%
  37. )
  38. ) !default;
  39. @mixin bg-gradient($parent, $gradient) {
  40. #{$parent} {
  41. background: $gradient;
  42. }
  43. }
  44. /*
  45. @mixin text-gradient($parent, $gradient) {
  46. #{parent} {
  47. background-image: $gradient;
  48. -webkit-background-clip: text;
  49. background-clip: text;
  50. -webkit-text-fill-color: transparent;
  51. color: transparent;
  52. }
  53. }
  54. */
  55. $border-width: 2px;
  56. @mixin border-gradient($parent, $gradient) {
  57. #{$parent} {
  58. position: relative;
  59. background-clip: padding-box;
  60. &:before {
  61. content: "";
  62. position: absolute;
  63. background: var(--color-bg-primary);
  64. border-radius: inherit;
  65. z-index: 1;
  66. left: 0;
  67. right: 0;
  68. top: 0;
  69. bottom: 0;
  70. }
  71. &:after {
  72. position: absolute;
  73. top: 0;
  74. bottom: 0;
  75. left: 0;
  76. right: 0;
  77. background: $gradient;
  78. content: "";
  79. z-index: 0;
  80. border-radius: inherit;
  81. margin: -$border-width;
  82. }
  83. & > span {
  84. z-index: 2;
  85. }
  86. }
  87. }
  88. @each $gradient, $value in $gradients {
  89. @include bg-gradient(".bg-gradient-#{$gradient}", $value);
  90. }
  91. /*
  92. @each $gradient, $value in $gradients {
  93. @include text-gradient(".text-gradient-#{gradient}", $value);
  94. }
  95. */
  96. @each $gradient, $value in $gradients {
  97. @include border-gradient(".border-gradient-#{$gradient}", $value);
  98. }
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...