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 161
161
"description" : " This function will convert px values to rem values." ,
162
162
"author" : " gihanrangana" ,
163
163
"tags" : [
164
- " sass" ,
165
164
" function" ,
166
165
" pixel" ,
167
166
" rem" ,
168
- " px-to-rem" ,
169
- " css"
167
+ " px-to-rem"
170
168
],
171
169
"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 "
173
171
},
174
172
{
175
173
"title" : " Text Gradient" ,
You can’t perform that action at this time.
0 commit comments