Hi,

  Luxor Kernel Hacker Extraordinaire Anakrewn Meidis
jazzed up Luxor's CSS support.

  You no longer need to squeeze all CSS style
properties into an XML style attribute, but now you
can also use inline styles using the <style> tag or
use external stylesheets.
  
  I've uploaded Anakrewn's mega patch to the
luxor-contrib site so you can use it right away and
don't need to hang on until everything gets folded
into the main branch.
      
  Grab the luxor-css package online @
http://sourceforge.net/project/showfiles.php?group_id=64067
to get started today.
  
  - Gerald

PS: In case you wondered how it all looks like. Here's
a sampling from Anakrewn's test case:

content.xul
---------------------
<xul>
<style>
<!-- Inline style example -->
<![CDATA[
  hbox.solid1 {
    height: 30;
    border: solid;
  }

  hbox.solid2 {
    height: 30;
    border: solid 2;
  }

  hbox.solid3 {
    height: 30;
    border: solid 4 red;
  }
]]>
</style>

<!-- load styles for borders -->
  <style src="styles/borders.css" />
<!-- load styles for labels -->
<style src="styles/lables.css" />
  <tabbox id="CONTENT">

     <tabs>
        <tab label="Border" />
        <tab label="Font" />
        <tab label="Mask" />    
     </tabs>
 ....


border.css
-------------------------------
/*Unspecialized class*/
.bdouble {
    height: 30; border: double;
}

hbox.bdouble2 {
    height: 30; border: double 2;
}

hbox.bdouble3 {
    height: 30; border: double 3 aqua;
}

hbox.gborder {
    height: 30; border: groove;
}

hbox.rborder {
    height: 30; border: ridge;
}

hbox.iborder {
    height: 30; border: inset;
}

hbox.oborder {
    height: 30; border: outset;
}


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
xul-announce mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xul-announce

Reply via email to