nostalgic-css / NES.css

NES-style CSS Framework | ファミコン風CSSフレームワーク
https://nostalgic-css.github.io/NES.css/
MIT License
20.69k stars 1.65k forks source link

Fix pixelize bug #264

Closed BcRikko closed 5 years ago

BcRikko commented 5 years ago

font-size less than 10px does not working on Chrome.

fix #262

Description I used transform:scale() instead of font-size & em. Because font-size less than 10px does not working on Chrome.

&.is-medium {
  // If you use `transform: scale()` , box size changes.
  // So I use `margin-right` and `margin-bottom` to adjust the box size.
  margin-right: $icon-size * 2;
  margin-bottom: $icon-size * 2;
  // 3px
  transform: scale(3);
}

For details, refer to the following. https://jsfiddle.net/bc_rikko/q8txjL5u/ 2019-01-30 17 53 22

Compatibility N/A

Caveats

before after
2019-01-30 17 46 35 2019-01-30 17 47 24
BcRikko commented 5 years ago

:tada: This PR is included in version 2.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: