Skip to content

Commit bd4f369

Browse files
committed
Update consolidated snippets
1 parent 59a44e6 commit bd4f369

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

public/consolidated/scss.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,15 +161,13 @@
161161
"description": "This function will convert px values to rem values.",
162162
"author": "gihanrangana",
163163
"tags": [
164-
"sass",
165164
"function",
166165
"pixel",
167166
"rem",
168-
"px-to-rem",
169-
"css"
167+
"px-to-rem"
170168
],
171169
"contributors": [],
172-
"code": "@function px-to-rem($px, $base: 16px) {\n @return ($px / $base) * 1rem;\n}\n\n// Usage\ndiv {\n font-size: px-to-rem(12px); // Output: 0.75rem\n padding: px-to-rem(16px); // Output: 1rem\n margin: px-to-rem(32px) // Output 2rem\n}\n"
170+
"code": "@function px-to-rem($px, $base: 16px) {\n @return ($px / $base) * 1rem;\n}\n\n// Usage:\ndiv {\n font-size: px-to-rem(12px); // Output: 0.75rem\n padding: px-to-rem(16px); // Output: 1rem\n margin: px-to-rem(32px) // Output 2rem\n}\n"
173171
},
174172
{
175173
"title": "Text Gradient",

0 commit comments

Comments
 (0)