Comments (8)
Fixed on master 0895d14
Thank you very much!
from glue.
Nice - I see how to remove the namespace but I still don't see how to remove the folder name from the sprite prefixes. Here's an example:
given I have a folder called foo
that has a.png
and b.png
, when I do
glue foo output --namespace=""
I get .foo-a
and .foo-b
, is there any way to get just .a
and .b
?
from glue.
I have the same problem. Is it possible to get rid of the folder name? I switch my sprite CSS depending on media queries. So I need the same classes for all resolutions.
from glue.
There are some forks that already allow this. Any chance to merge the feature?
from glue.
I'm working on this feature. The approach is going to be a --sprite-namespace
command that you can null .
This option is going to solve some different problems like:
-
I want to remove all the namespaces (original issue
-namespace= --sprite-namespace=
):.cat{...}
.dog{...}
-
You want to use the same namespace for all the sprites even if they come from different folders (
--namespace= --sprite-namespace=farm
or--namespace=farm --sprite-namespace=
):.farm-cat{...}
.farm-dog{...}
This is quite useful if you want to only have one namespace but you want to split sprites in different images.
-
You want to append/prepend something to the sprite namespace (
--sprite-namespace="earth-%(sprite)s"
):.sprite-earth-catfolder-cat{...}
.sprite-earth-dogfolder-dog{...}
The command is working, but both the sprite and the manager validator need some refactoring in order to warn if some images are going to have the same CSS class name.
It should be ready soon,
Any thoughts?
from glue.
The new commands look great
from glue.
I've just pushed the changes to feature/sprite-namespace
https://github.com/jorgebastida/glue/compare/feature/sprite-namespace
I'll test it and merge them down into develop in order to release them as part of 0.2.8
from glue.
Just released this fix as part of glue 0.2.8.
http://pypi.python.org/pypi/glue/
https://glue.readthedocs.org/en/latest/changelog.html#id1
from glue.
Related Issues (20)
- Allow ratio_suffix delimiter to be customised
- Crashes on filenames with non-english (non-ascii?) characters
- Support jinja2 2.8 HOT 3
- Unicode in filenames issue with generate_css_name HOT 1
- Ratios are not ordered correctly
- You've found a bug!
- You've found a bug!
- git status
- Won't run on Ubuntu 16.0.4 HOT 1
- [Feature Request] Generate CSS based on % HOT 3
- Path parameter doesn't support non-ANSI.
- Could add inverse functions for glue?
- Using glue for sprite Animations
- Support Jinja2 2.10 HOT 2
- 'module' object has no attribute 'VERSION' HOT 1
- Can't create sprite with glue
- Typo; extra single quote, but irrelevant really
- glue command fails with error
- Glue does not support decimal margins
- .
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 glue.