Code Monkey home page Code Monkey logo

Comments (11)

ernestomancebo avatar ernestomancebo commented on May 13, 2024 5

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.

BcRikko avatar BcRikko commented on May 13, 2024 1

@ernestomancebo Thanks 🙇
I merged #45 👍

from nes.css.

ernestomancebo avatar ernestomancebo commented on May 13, 2024 1

Any time @BcRikko. I'll be rambling among the issues of this repo, I really like this project.

from nes.css.

BcRikko avatar BcRikko commented on May 13, 2024

Thanks.

I see... but, I don't know how to resolve the problem. 😭
Please help me 🙏

Chrome70: zoom to 110%
2018-11-30 17 48 49
2018-11-30 17 49 08

from nes.css.

myfonj avatar myfonj commented on May 13, 2024

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.

alexgleason avatar alexgleason commented on May 13, 2024

I know how to fix this, sending a PR shortly.

EDIT: My mistake, see below.

from nes.css.

alexgleason avatar alexgleason commented on May 13, 2024

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.

myfonj avatar myfonj commented on May 13, 2024

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 ems?)

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.

ernestomancebo avatar ernestomancebo commented on May 13, 2024

@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.

Polygonalr avatar Polygonalr commented on May 13, 2024

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:
image
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.

BcRikko avatar BcRikko commented on May 13, 2024

🎉 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.