|
7 | 7 | "description": "A Sass mixin to clamp text to a specific number of lines.",
|
8 | 8 | "code": "@mixin line-clamp($number) {\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: $number;\n overflow: hidden;\n}",
|
9 | 9 | "tags": ["sass", "mixin", "typography", "css"],
|
10 |
| - "author": "@technoph1le" |
| 10 | + "author": "dostonnabotov" |
11 | 11 | },
|
12 | 12 | {
|
13 | 13 | "title": "Text Overflow Ellipsis",
|
14 | 14 | "description": "Ensures long text is truncated with an ellipsis.",
|
15 | 15 | "code": "@mixin text-ellipsis {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}",
|
16 | 16 | "tags": ["sass", "mixin", "text", "css"],
|
17 |
| - "author": "@technoph1le" |
| 17 | + "author": "dostonnabotov" |
18 | 18 | },
|
19 | 19 | {
|
20 | 20 | "title": "Font Import Helper",
|
21 | 21 | "description": "Simplifies importing custom fonts in Sass.",
|
22 | 22 | "code": "@mixin import-font($family, $weight: 400, $style: normal) {\n @font-face {\n font-family: #{$family};\n font-weight: #{$weight};\n font-style: #{$style};\n src: url('/fonts/#{$family}-#{$weight}.woff2') format('woff2'),\n url('/fonts/#{$family}-#{$weight}.woff') format('woff');\n }\n}",
|
23 | 23 | "tags": ["sass", "mixin", "fonts", "css"],
|
24 |
| - "author": "@technoph1le" |
| 24 | + "author": "dostonnabotov" |
25 | 25 | },
|
26 | 26 | {
|
27 | 27 | "title": "Text Gradient",
|
28 | 28 | "description": "Adds a gradient color effect to text.",
|
29 | 29 | "code": "@mixin text-gradient($from, $to) {\n background: linear-gradient(to right, $from, $to);\n -webkit-background-clip: text;\n -webkit-text-fill-color: transparent;\n}",
|
30 | 30 | "tags": ["sass", "mixin", "gradient", "text", "css"],
|
31 |
| - "author": "@technoph1le" |
| 31 | + "author": "dostonnabotov" |
32 | 32 | }
|
33 | 33 | ]
|
34 | 34 | },
|
|
40 | 40 | "description": "Creates a responsive grid container with customizable column counts.",
|
41 | 41 | "code": "@mixin grid-container($columns: 12, $gap: 1rem) {\n display: grid;\n grid-template-columns: repeat($columns, 1fr);\n gap: $gap;\n}",
|
42 | 42 | "tags": ["scss", "grid", "layout", "css"],
|
43 |
| - "author": "@technoph1le" |
| 43 | + "author": "dostonnabotov" |
44 | 44 | },
|
45 | 45 | {
|
46 | 46 | "title": "Flex Center",
|
47 | 47 | "description": "A mixin to center content using flexbox.",
|
48 | 48 | "code": "@mixin flex-center {\n display: flex;\n justify-content: center;\n align-items: center;\n}",
|
49 | 49 | "tags": ["scss", "flex", "center", "css"],
|
50 |
| - "author": "@technoph1le" |
| 50 | + "author": "dostonnabotov" |
51 | 51 | },
|
52 | 52 | {
|
53 | 53 | "title": "Aspect Ratio",
|
54 | 54 | "description": "Ensures elements maintain a specific aspect ratio.",
|
55 | 55 | "code": "@mixin aspect-ratio($width, $height) {\n position: relative;\n width: 100%;\n padding-top: ($height / $width) * 100%;\n > * {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n}",
|
56 | 56 | "tags": ["scss", "aspect-ratio", "layout", "css"],
|
57 |
| - "author": "@technoph1le" |
| 57 | + "author": "dostonnabotov" |
58 | 58 | }
|
59 | 59 | ]
|
60 | 60 | },
|
|
66 | 66 | "description": "Animates the fade-in effect.",
|
67 | 67 | "code": "@keyframes fade-in {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@mixin fade-in($duration: 1s, $easing: ease-in-out) {\n animation: fade-in $duration $easing;\n}",
|
68 | 68 | "tags": ["scss", "animation", "fade", "css"],
|
69 |
| - "author": "@technoph1le" |
| 69 | + "author": "dostonnabotov" |
70 | 70 | },
|
71 | 71 | {
|
72 | 72 | "title": "Slide In From Left",
|
73 | 73 | "description": "Animates content sliding in from the left.",
|
74 | 74 | "code": "@keyframes slide-in-left {\n from {\n transform: translateX(-100%);\n }\n to {\n transform: translateX(0);\n }\n}\n\n@mixin slide-in-left($duration: 0.5s, $easing: ease-out) {\n animation: slide-in-left $duration $easing;\n}",
|
75 | 75 | "tags": ["scss", "animation", "slide", "css"],
|
76 |
| - "author": "@technoph1le" |
| 76 | + "author": "dostonnabotov" |
77 | 77 | }
|
78 | 78 | ]
|
79 | 79 | },
|
|
85 | 85 | "description": "Generates media queries for responsive design.",
|
86 | 86 | "code": "@mixin breakpoint($breakpoint) {\n @if $breakpoint == sm {\n @media (max-width: 576px) { @content; }\n } @else if $breakpoint == md {\n @media (max-width: 768px) { @content; }\n } @else if $breakpoint == lg {\n @media (max-width: 992px) { @content; }\n } @else if $breakpoint == xl {\n @media (max-width: 1200px) { @content; }\n }\n}",
|
87 | 87 | "tags": ["scss", "responsive", "media-queries", "css"],
|
88 |
| - "author": "@technoph1le" |
| 88 | + "author": "dostonnabotov" |
89 | 89 | },
|
90 | 90 | {
|
91 | 91 | "title": "Clearfix",
|
92 | 92 | "description": "Provides a clearfix utility for floating elements.",
|
93 | 93 | "code": "@mixin clearfix {\n &::after {\n content: '';\n display: block;\n clear: both;\n }\n}",
|
94 | 94 | "tags": ["scss", "clearfix", "utility", "css"],
|
95 |
| - "author": "@technoph1le" |
| 95 | + "author": "dostonnabotov" |
96 | 96 | }
|
97 | 97 | ]
|
98 | 98 | },
|
|
104 | 104 | "description": "Applies a customizable border-radius.",
|
105 | 105 | "code": "@mixin border-radius($radius: 4px) {\n border-radius: $radius;\n}",
|
106 | 106 | "tags": ["scss", "border", "radius", "css"],
|
107 |
| - "author": "@technoph1le" |
| 107 | + "author": "dostonnabotov" |
108 | 108 | },
|
109 | 109 | {
|
110 | 110 | "title": "Box Shadow Helper",
|
111 | 111 | "description": "Generates a box shadow with customizable values.",
|
112 | 112 | "code": "@mixin box-shadow($x: 0px, $y: 4px, $blur: 10px, $spread: 0px, $color: rgba(0, 0, 0, 0.1)) {\n box-shadow: $x $y $blur $spread $color;\n}",
|
113 | 113 | "tags": ["scss", "box-shadow", "css", "effects"],
|
114 |
| - "author": "@technoph1le" |
| 114 | + "author": "dostonnabotov" |
115 | 115 | }
|
116 | 116 | ]
|
117 | 117 | },
|
|
123 | 123 | "description": "Generates a styled primary button.",
|
124 | 124 | "code": "@mixin primary-button($bg: #007bff, $color: #fff) {\n background-color: $bg;\n color: $color;\n padding: 0.5rem 1rem;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n\n &:hover {\n background-color: darken($bg, 10%);\n }\n}",
|
125 | 125 | "tags": ["scss", "button", "primary", "css"],
|
126 |
| - "author": "@technoph1le" |
| 126 | + "author": "dostonnabotov" |
127 | 127 | }
|
128 | 128 | ]
|
129 | 129 | }
|
|
0 commit comments