Coder Social home page Coder Social logo

Comments (7)

vndre avatar vndre commented on May 14, 2024

If you are trying to scale (thats it, its height and width) you should follow README method:

override --ggs css variable and the icon will scale consistently.

If you are modifying just the width this should be fixed by updating .gg-browser::before:

.gg-browser::before {
   width: 22px; // before
   width: 100%; // new
}

from css.gg.

spekulatius avatar spekulatius commented on May 14, 2024

Ah, awesome @anskydev. Should I open a PR or do you want to ?

from css.gg.

astrit avatar astrit commented on May 14, 2024

@spekulatius didn't you try to resize with --ggs variable or you want to alter the design ?

Otherwise do a PR and will change since that makes sense.

from css.gg.

spekulatius avatar spekulatius commented on May 14, 2024

Hey @astrit and @anskydev

Happy New Year!

Astrit, with -ggs it works as expected. It's kinda a habit to do it using Tailwind classes. Do you still want me to open a PR with @anskydev' suggestion?

Peter

from css.gg.

vndre avatar vndre commented on May 14, 2024

Hello guys, happy new year to you too!

I have some free time to look into this PR to fix the icon but I would like to discuss some off-topic development aspects with @astrit first:

  1. I think it would be better to use NPM to build the various packages: the main file could be icons.sass, (this is where issue 2 begins) and we use node to build the rest (icons.css, icons.xml, icons.json) from this file.

  2. I feel the sass file is not optimized enough and its more "css inside sass" than a real sass file, also compare the file size of all css files (290kb) vs a single sass file (297kb). I think we could follow the same structure as css and have a file per icon, and the main file will only import the icons, that will facilitate modular import in other projects. Also we can have common placeholders of properties that repeat all along all the classes (border-box, display: block, etc...).

The purpose of this is to keep consistency along the files, so you don't have to update all of them one by one.

Tell me if this sounds like a good idea and I will gladly help you with it.

from css.gg.

spekulatius avatar spekulatius commented on May 14, 2024

Okay @anskydev. Interesting questions, btw. I'm keen to hear @astrit thoughts.

from css.gg.

astrit avatar astrit commented on May 14, 2024

@anskydev I agree with most things.
I was planning on to have every icon as .scss, .sass, .less generated automatically so there is more coverage.

I am not very much experienced but would love to find a middle ground for Angular, Vue and React and that way would be very easy for people to include on all their projects.

icons.sass could have common placeholders but not the single icon so yeah that makes a lot of sense, how ever for the moment are too many things going on and will take time to implement.

If you are available for help please join here:
https://discord.gg/e7NDKFM and will discuss it there.

Thank you very much.

from css.gg.

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.