This repository has been archived by the owner on Apr 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use box shadow instead of border for buttons and text boxes
This ensures that the borders are always 1px thick. At different display scales, 1px in css may be less than 1 display pixel and will not render. Conversely, on devices with display scaling at non-integer scales (e.g. 1.5), a border will be decreased from 1.5px to 1px because CSS borders cannot handle subpixel rendering. Box-shadow can render in subpixels (works for high dpi screens), ensuring that the border is actually the correct size.
- Loading branch information
1 parent
ac40307
commit e0d40d3
Showing
3 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters