Hi,
long-time Inkscape user here, looking to get into coding for it too.
I created this really simple extension for setting CSS classes https://github.com/monomon/inkscape-set-css-class on elements. It has an option to clear inline styles of the elements, so that the css class would have an effect.
It is useful when having numerous elements that repeat or have the same styles. First, select a correctly styled one, use "Merge styles into CSS". Then select the rest and use "Set CSS class" to apply the new style on them.
I am aware of the extension posted on the forums that sets classes http://www.inkscapeforum.com/viewtopic.php?f=5&t=18483&p=69760#p69752, but having to manually clear styles after is a bit of a pain, so not completely usable for my case... and it's not in a code repository, so no way to contribute.
I read that in GSoC CSS handling will be improved, which is awesome!
Hope someone finds this useful.
Regards, Mois
Hi Mois,
sounds interesting :)
This being the documentation mailing list, I wonder if perhaps you'd want to send this message to the inkscape-devel (and maybe inkscape-user) mailing list?
Kind Regards, Maren
Am 10.08.2017 um 11:35 schrieb Mois:
Hi,
long-time Inkscape user here, looking to get into coding for it too.
I created this really simple extension for setting CSS classes https://github.com/monomon/inkscape-set-css-class on elements. It has an option to clear inline styles of the elements, so that the css class would have an effect.
It is useful when having numerous elements that repeat or have the same styles. First, select a correctly styled one, use "Merge styles into CSS". Then select the rest and use "Set CSS class" to apply the new style on them.
I am aware of the extension posted on the forums that sets classes http://www.inkscapeforum.com/viewtopic.php?f=5&t=18483&p=69760#p69752, but having to manually clear styles after is a bit of a pain, so not completely usable for my case... and it's not in a code repository, so no way to contribute.
I read that in GSoC CSS handling will be improved, which is awesome!
Hope someone finds this useful.
Regards, Mois
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Inkscape-docs mailing list Inkscape-docs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-docs
Oh I'm sorry, just followed the instruction on the wiki http://wiki.inkscape.org/wiki/index.php/Inkscape_Extensions, which says "please let us know (via Docs mailing list..." I am going to look into fixing those instructions, then. How does one become a wiki editor? Don't see a "register" button.
Thank you I will post to those other mailing lists.
Oh, you haven't mentioned that you'd like your extension to be added to the Wiki list!
I thought you wanted to say 'hi', tell people about your extension, and find out how to get involved in development.
Anyway, if you want to add it to the list yourself, please do so :)
Which user name would you like to have set for the Wiki?
Maren
Am 10.08.2017 um 15:19 schrieb Mois:
Oh I'm sorry, just followed the instruction on the wiki http://wiki.inkscape.org/wiki/index.php/Inkscape_Extensions, which says "please let us know (via Docs mailing list..." I am going to look into fixing those instructions, then. How does one become a wiki editor? Don't see a "register" button.
Thank you I will post to those other mailing lists.
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Inkscape-docs mailing list Inkscape-docs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-docs
Sorry, a few assumptions on my side :)
For username, "monomon" would be good, if available.
On 08/10/2017 04:30 PM, Maren Hachmann wrote:
Oh, you haven't mentioned that you'd like your extension to be added to the Wiki list!
I thought you wanted to say 'hi', tell people about your extension, and find out how to get involved in development.
Anyway, if you want to add it to the list yourself, please do so :)
Which user name would you like to have set for the Wiki?
Maren
Am 10.08.2017 um 15:19 schrieb Mois:
Oh I'm sorry, just followed the instruction on the wiki http://wiki.inkscape.org/wiki/index.php/Inkscape_Extensions, which says "please let us know (via Docs mailing list..." I am going to look into fixing those instructions, then. How does one become a wiki editor? Don't see a "register" button.
Thank you I will post to those other mailing lists.
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Inkscape-docs mailing list Inkscape-docs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-docs
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Inkscape-docs mailing list Inkscape-docs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-docs
You should have received an email with a temporary password now :)
Kind Regards, Maren
Am 10.08.2017 um 15:37 schrieb Mois:
Sorry, a few assumptions on my side :)
For username, "monomon" would be good, if available.
On 08/10/2017 04:30 PM, Maren Hachmann wrote:
Oh, you haven't mentioned that you'd like your extension to be added to the Wiki list!
I thought you wanted to say 'hi', tell people about your extension, and find out how to get involved in development.
Anyway, if you want to add it to the list yourself, please do so :)
Which user name would you like to have set for the Wiki?
Maren
Am 10.08.2017 um 15:19 schrieb Mois:
Oh I'm sorry, just followed the instruction on the wiki http://wiki.inkscape.org/wiki/index.php/Inkscape_Extensions, which says "please let us know (via Docs mailing list..." I am going to look into fixing those instructions, then. How does one become a wiki editor? Don't see a "register" button.
Thank you I will post to those other mailing lists.
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Inkscape-docs mailing list Inkscape-docs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-docs
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Inkscape-docs mailing list Inkscape-docs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-docs
Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Inkscape-docs mailing list Inkscape-docs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-docs
participants (2)
-
Maren Hachmann
-
Mois