[yast-devel] WebYaST: dynamic css
Hi all, during hackweek I've been playing with gradients and with deriving all the css from several basic colors. See, if you like it - just pull a dynamic-css branch from gitorious! You can set your own the basic colors in webclient/app/controllers/generated_stylesheets_controller.rb . Cheers, Martin -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Friday 11 June 2010 18:28:08 Martin Kudlvasr wrote:
Hi all,
during hackweek I've been playing with gradients and with deriving all the css from several basic colors. See, if you like it - just pull a dynamic-css branch from gitorious! You can set your own the basic colors in webclient/app/controllers/generated_stylesheets_controller.rb .
After (and during) yast workshop I have been remaking webyast styles into sass. The mixins really help to reduce complexity. Please check out git branch: "dynamic-sass" . You can set/adjust the colors in webclient/stylesheets/_colors.sass . After that, run update_sass.sh to regenerate the css. The sass is part of haml rubygem, so you have to install that. My plan is to package haml rubygem (or take it from somewhere) and use it for building the webyast-base-ui package, remove our css (from git) and use only sass. The haml will be used only for the build. Then I want to merge to master. Sass is much more readable and allows easier changes. Please comment, Martin -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Dne 24.6.2010 18:46, Martin Kudlvasr napsal(a): [...]
My plan is to package haml rubygem (or take it from somewhere) and use it for
HAML is already packaged in devel:languages:ruby:extensions OBS project and it's already used in SLMS product for example. -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Friday 25 June 2010 09:39:01 Ladislav Slezak wrote:
Dne 24.6.2010 18:46, Martin Kudlvasr napsal(a):
[...]
My plan is to package haml rubygem (or take it from somewhere) and use it for
HAML is already packaged in devel:languages:ruby:extensions OBS project and it's already used in SLMS product for example.
And it's also directly in SLE11-SP1:GA, great. Packaging works, so I merged into git master. Changes: - you have to install rubygem-haml for development/building - .sass files are in webclient/app/sass - use rake sass:update in webclient/Rakefile to regenerate our .css files in webclient/public/stylesheets - our css files are not in git anymore (style.css, jquery-ui-1.7.2.custom-{accordion,tabs}.css) Enjoy! Martin -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
Martin Kudlvasr write:
On Friday 25 June 2010 09:39:01 Ladislav Slezak wrote:
Dne 24.6.2010 18:46, Martin Kudlvasr napsal(a):
[...]
My plan is to package haml rubygem (or take it from somewhere) and use it for
HAML is already packaged in devel:languages:ruby:extensions OBS project and it's already used in SLMS product for example.
And it's also directly in SLE11-SP1:GA, great. Packaging works, so I merged into git master.
Changes: - you have to install rubygem-haml for development/building - .sass files are in webclient/app/sass - use rake sass:update in webclient/Rakefile to regenerate our .css files in webclient/public/stylesheets - our css files are not in git anymore (style.css, jquery-ui-1.7.2.custom-{accordion,tabs}.css)
Enjoy! Martin
I think that this is right place to aggregate css. Could you generate just one big file to decrease number of sockets for loading (of course also adapt template)? ( I think we need similar thing also for js in future) Josef -- Josef Reidinger YaST team maintainer of perl-Bootloader, YaST2-Repair, parts of webyast -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On Friday 25 June 2010 15:53:37 Josef Reidinger wrote:
Martin Kudlvasr write:
Changes: - you have to install rubygem-haml for development/building - .sass files are in webclient/app/sass - use rake sass:update in webclient/Rakefile to regenerate our .css files in webclient/public/stylesheets - our css files are not in git anymore (style.css, jquery-ui-1.7.2.custom-{accordion,tabs}.css)
Enjoy! Martin
I think that this is right place to aggregate css. Could you generate just one big file to decrease number of sockets for loading (of course also adapt template)? ( I think we need similar thing also for js in future) Josef
Yes, I can merge them into a single css. Martin -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (3)
-
Josef Reidinger
-
Ladislav Slezak
-
Martin Kudlvasr