Comments (11)
hi @BcRikko & @Polygonalr, please take a look into my PR; somehow firefox separates the boxes and needs spread-radius to be specified.
from nes.css.
@ernestomancebo Thanks 🙇
I merged #45 👍
from nes.css.
Any time @BcRikko. I'll be rambling among the issues of this repo, I really like this project.
from nes.css.
Thanks.
I see... but, I don't know how to resolve the problem. 😭
Please help me 🙏
from nes.css.
I tried to fix it by making the "shadowing" boxes bordered (because borders are usually better aligned to physical pixel grid than anything other) plus slightly oversizing them, but even that didn't work much better in all zoom scenarios.
I think that best what could be done would be resorting to background-image
(or content
), either rendered PNG or SVG. I suppose that resulting datauris would be overall even shorter than current shadow expressions.
from nes.css.
I know how to fix this, sending a PR shortly.
EDIT: My mistake, see below.
from nes.css.
Wait are you talking about the white lines or the dots between the choices? My PR is for the dots between the choices, whoops.
EDIT: Wow, using box-shadow to draw these sprites is a really clever way to do it.
from nes.css.
Glad to see this resolved :]
I think that change from last PR could be simplified: spread
introduced in shadows could be added to base dimensions of shadowed square, so that original
…::before{ width: 2px; height: 2px; top: -2px; left: -2px; /* box shadow with .32px spread */}
becomes
…::before{ width: 2.64px; height: 2.64px; top: -2.32px; left: -2.32px; /* box shadow without spread, so ommitable */}
(BTW, why was that spread expressed in em
s?)
Related: I've compared several alternative methods of embedding such content in CSS, focusing on data size ( https://codepen.io/myf/pen/EOGBLY/?editors=0100 ) and so far it seems that what is currently done in ~3772 bytes of box-shadow (what could be ~2211 b after aforementioned adjustment) could be as well done in ~506 b SVG dataURI or ~347 b PNG dataURI.
from nes.css.
@myfonj did you tried that on google chrome or safari? increasing the box shadow size works on FF, but not in the others.
from nes.css.
Whoops, I apologise for the lack of updates and not elaborating about the issue better.
I've checked the updated project, and I am glad the radio arrow is fixed in Firefox. However, the stray pixels I was referring to in the original issue is highlighted in the screenshot below:
Note that this only happens when the cursor is translucent and blinking (click on Yes/No once).
Double Edit:
#44 fixes this
from nes.css.
🎉 This issue has been resolved in version 1.0.0 🎉
The release is available on:
Your semantic-release bot 📦🚀
from nes.css.
Related Issues (20)
- soph-iest Picture Missing HOT 1
- Pixelated image rendering doesn't work on Firefox HOT 3
- favicon etc are SNES not NES controllers? HOT 1
- about polyfill
- Package engine "Node >= 10.0.0" causing installation problem in Node 15.4.0 HOT 4
- Simple cool improvements for the project! HOT 1
- Visual glitch in non-rounded dark dialog HOT 1
- Form component disable style HOT 1
- Custom theme HOT 1
- radio
- NES.css react component library HOT 3
- Adding Korean translation of CONTRIBUTING.md HOT 4
- `package.json`'s `engines` field having `"Node >= 10.0.0"` prevents installation with Node 16.9.1 HOT 4
- Buttons on index.html aren't clickable
- It's look like different between chrome and debug tools.What happened?
- Adding Discord Icon HOT 4
- Adding font for Arabic HOT 1
- Change icon HOT 1
- Feat: Update Twitter icon
- Buttons and containers look .. weird on Firefox and Chrome
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nes.css.