Coder Social home page Coder Social logo

Star size about starability HOT 3 CLOSED

lunarlogic avatar lunarlogic commented on July 22, 2024
Star size

from starability.

Comments (3)

szynszyliszys avatar szynszyliszys commented on July 22, 2024

Hi @valecarlos you are right about why it behaves this way. To resize the stars you would have to change the value of the variable $star-size and also create your own background image in needed size and add it as base64 or regular background image. This option probably will never be supported by default, but you can create your own fork with stars of a different size and share it. :)

from starability.

valecarlos avatar valecarlos commented on July 22, 2024

Thanks! I was kind of in a rush to get this going so here's what I did, in case anyone else needs it:

  1. Using the code from this SO answer I resized the image dimensions.
    You can see my modified version in this fiddle

  2. Then I right clicked on the new image and saved it, so I could upload it into an online base64 encoder.

  3. Copied the encoded version in $img-stars-sprite changed the $star-size and ran the gulp task.

And got it working as expected, thanks for your help and the quick reply! @szynszyliszys

from starability.

szynszyliszys avatar szynszyliszys commented on July 22, 2024

Great, I am glad that you've found a solution! I hope everything will work as expected. :)

from starability.

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.