-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS Style #548
Comments
It's not in my near-future plans to consider SVGs that aren't standalone. |
I get where your coming from, but it's just using an SVG that has classes, which is pretty normal practice https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_and_CSS BoxySVG also doesn't support this, which is why I was really hoping godsvg would - it's almost perfect for my use case otherwise |
It might become prioritized sooner if you can help us work out implementation details. |
Now that the Settings menu has been reworked, this might be able to land somewhere in there. But the above comment still stands, it's not planned but I might get to it sooner if we can work out implementation details. |
Great to know |
Is what you need effectively solved by adding
right after the SVG declaration in a standalone SVG? Please don't test this in GodSVG, it can't handle text or CDATA right now. |
That would correctly render yes. Again, appreciate my use case is fairly specific <g class="whiff_component">
<g id="Compressor">
<g id="Symbol">
<path class="whiff_st0" d="M7.5 2.44v-2" />
<path class="whiff_st0" d="M7.5 2.44L.41 14.6h14.18z" />
</g>
<g id="Connectors">
<path data-tag="whiff_port" data-port="p" class="whiff_st1" d="M6,0H9v2.4H6V0z"/>
</g>
<g id="Bounding">
<rect width="15" height="15" class="whiff_bounding"/>
</g>
</g>
</g> .whiff_st0 {
fill: #fff;
fill-opacity: 0.5;
stroke: #000;
stroke-width: 0.7087;
stroke-linecap: round;
stroke-linejoin: round;
stroke-miterlimit: 10;
}
.whiff_st1 {
opacity: 0.3;
fill: #f40c0c;
enable-background: new;
}
.whiff_st2 {
opacity: 0.3;
fill: limegreen;
enable-background: new;
}
.whiff_bounding {
opacity: 0;
fill: lightblue;
stroke: none;
pointer-events: none;
} |
When editing lots of svgs in say, an icon pack or similar, it is usefull to be able to use a style sheet and classes - to have consistancy across multiple files.
Can GodSVG allow css classes, and provide a box where css can be written / pasted
The text was updated successfully, but these errors were encountered: