Comments (7)
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.
Ah, awesome @anskydev. Should I open a PR or do you want to ?
from css.gg.
@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.
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.
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:
-
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.
-
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.
Okay @anskydev. Interesting questions, btw. I'm keen to hear @astrit thoughts.
from css.gg.
@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)
- css.gg firefox bug for svg glyf-bar HOT 2
- Icon request: "help" and "warning"
- Icon request: Bluesky logo
- Icon request: Git family
- Vercel file is missing in the version 2.1.1 HOT 1
- Elpepd
- Icon Request: X (formerly Twitter)
- Incomplete Documentation for React
- VueJS wrapper for css.gg icons HOT 1
- Broken border-top icon HOT 2
- CSS transform causes --ggs var to not resize the icon HOT 1
- Icon Request: Command Palette HOT 1
- Mam slept
- Icon Requests: Platforms HOT 1
- Css.gg
- Bug: css.gg is empty HOT 1
- Adding text next to icon when using <i> results in a line break HOT 2
- Could not resolve "./tsx/Vercel" HOT 4
- Icon Request: Clapping Hands HOT 1
- Icons Request: enter fullscreen / exit fullscreen HOT 2
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 css.gg.