Skip to content

Commit

Permalink
use RFS for responsive font size in css
Browse files Browse the repository at this point in the history
  • Loading branch information
ashfahan committed Jun 6, 2021
1 parent d0357d0 commit 77aa453
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"foreach-cli": "^1.8.1",
"node-sass": "^5.0.0",
"npm-run-all": "^4.1.5",
"rfs": "^9.0.3",
"postcss": "^8.2.6",
"postcss-cli": "^8.3.1",
"postcss-combine-duplicated-selectors": "^10.0.2",
Expand Down
2 changes: 1 addition & 1 deletion src/tools/mixins/_font-size.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// [optional] {Map} $important - set important in css style
//
@mixin fontsize($fontsize: $fontsize-normal, $important: false) {
font-size: fontsize($fontsize #{if($important, !important, null)});
@include rfs($fontsize #{if($important, !important, null)});
}

//
Expand Down
9 changes: 8 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3205,7 +3205,7 @@ postcss-value-parser@^3.0.0:
resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz#9ff822547e2893213cf1c30efa51ac5fd1ba8281"
integrity sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ==

postcss-value-parser@^4.0.2, postcss-value-parser@^4.1.0:
postcss-value-parser@^4.0.2, postcss-value-parser@^4.0.3, postcss-value-parser@^4.1.0:
version "4.1.0"
resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.1.0.tgz#443f6a20ced6481a2bda4fa8532a6e55d789a2cb"
integrity sha512-97DXOFbQJhk71ne5/Mt6cOu6yxsSfM0QGQyl0L25Gca4yGWEGJaig7l7gbCX623VqTBNGLRLaVUCnNkcedlRSQ==
Expand Down Expand Up @@ -3484,6 +3484,13 @@ reusify@^1.0.4:
resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76"
integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==

rfs@^9.0.3:
version "9.0.3"
resolved "https://registry.yarnpkg.com/rfs/-/rfs-9.0.3.tgz#6200ef283a081b01cbf07e2e3c7fe4c14cc3f07b"
integrity sha512-LL3eu6iqrJ0I/duHollplc2Tjc33AS7HmfqiAtHZD34Sq+L4+/96nYEN7YfT+vCLbeeB4mbMFpeg2mtxn5qNGA==
dependencies:
postcss-value-parser "^4.0.3"

rgb-regex@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/rgb-regex/-/rgb-regex-1.0.1.tgz#c0e0d6882df0e23be254a475e8edd41915feaeb1"
Expand Down

0 comments on commit 77aa453

Please sign in to comment.