[PLUGIN] CSS Import

Post your completed addons to share with the community

Post » Fri Jan 18, 2013 8:47 pm

CSS Import
1.0 - January 18th 2013
Image

Background
I thought I'd share this plugin I made for some personal projects. It's somewhat redundant since most objects support CSS natively but it can be helpful if you want a more global approach to styling things. Also very handy since you can do CSS in preview/realtime (even with node-webkit!)

Usage
The primary method of importing a CSS is automatically doing so by including it in your project and defining the name of the CSS file in the plugin properties.

Image

The alternative method is including it in your project, then using the Import CSS file action through an event whenever you like.
Just remember to remove any CSS files that share styles (if using multiple CSS files) to avoid any conflicts.

Image

P.S. There's built-in protection from accidentally importing the same CSS file several times.

Preview
Image

Downloads
Plugin: css_import.zip
Example: css_import.capx

Credits/Disclaimer
The plugin was basically Frankenstein'd from Pode's HTML Div plugin (because it contained CSS stuff) + code scavenged from the web. So credits to Pode and this site specifically for making this possible.

I have no real coding skills and don't think I'd be able to make a plugin from scratch :) Now, this also means I can't guarantee it working flawlessly. I've only tested it in Chrome on Windows 7, so if it breaks down and blows up your computer, I warned you!

Enjoy!
Last edited by McKack on Sun Jul 20, 2014 2:39 pm, edited 1 time in total.
B
88
S
33
G
7
Posts: 31
Reputation: 8,425

Post » Fri Jan 18, 2013 9:46 pm

Good one!

it helps for the entire HTML file
B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

Post » Tue Apr 23, 2013 2:44 pm

Sorry, we are unable to retrieve this document. - said Google. Please repair links.
B
7
S
2
Posts: 49
Reputation: 982

Post » Sat Apr 27, 2013 1:38 am

Sorry! Links should work now.
B
88
S
33
G
7
Posts: 31
Reputation: 8,425

Post » Fri May 10, 2013 7:11 am

@McKack
hi. can this plugin support css files with images?SirG2013-05-10 07:12:21
ImageImage
B
68
S
23
G
7
Posts: 186
Reputation: 9,786

Post » Tue May 14, 2013 8:56 pm

I don't see any reason it shouldn't work. Did you try without succeeding?
B
88
S
33
G
7
Posts: 31
Reputation: 8,425

Post » Sat May 25, 2013 1:36 pm

Link from download page is broken.
B
8
S
1
Posts: 31
Reputation: 598

Post » Sat May 25, 2013 4:14 pm

B
24
S
11
G
5
Posts: 140
Reputation: 5,004

Post » Tue May 28, 2013 11:58 am

Links still working here.
B
88
S
33
G
7
Posts: 31
Reputation: 8,425

Post » Wed Apr 16, 2014 10:39 am

@McKack I try putting a background gradient but cannot seem to make it work. I am talking about layout background not a button or text.Can you give please some pointers?
Thanks
B
64
S
15
G
20
Posts: 469
Reputation: 16,027

Next

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 2 guests