File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 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\n div {\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: \n div {\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" ,
You can’t perform that action at this time.
0 commit comments