[ 3 posts ]

Aaron Parmelee

  • Username: aparmelee
  • Joined: Thu Jul 07, 2011 1:31 pm
  • Posts: 13
  • Offline
  • Profile

modifying styles in YUI3

Post Posted: Thu Jul 07, 2011 1:48 pm
+0-
Hello All -
I am new to YUI, and I was wondering how one goes about changing the styles in YUI. I am using the TabView object, and would like to change the default background colors, among a few other things.

Any help would be appreciated. Thanks.

Juan Ignacio Dopazo

YUI Contributor

  • Username: jdopazo
  • Joined: Fri Oct 02, 2009 5:39 am
  • Posts: 620
  • Location: Buenos Aires, Argentina
  • Twitter: juandopazo
  • GitHub: juandopazo
  • Gists: juandopazo
  • Online
  • Profile

Re: modifying styles in YUI3

Post Posted: Fri Jul 08, 2011 5:21 am
+0-
There are many ways to do it. I usually do it this way:

  1. Go to the dependency configurator
  2. Select file type 'raw'
  3. Select the widget I'm going to use
  4. Select all the css modules I'm going to use (reset, base, grids, etc)
  5. Insert the generated <link> tag into my document
  6. Create another css file with my changes and insert it after the YUI css file
  7. Use fetchCSS: false in the YUI().use() call

Aaron Parmelee

  • Username: aparmelee
  • Joined: Thu Jul 07, 2011 1:31 pm
  • Posts: 13
  • Offline
  • Profile

Re: modifying styles in YUI3

Post Posted: Fri Jul 08, 2011 9:14 am
+0-
Thank you. This works like a champ.
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum