rewrite of LCARStrek for 0.9.8(+): big moving around and rewirting of things, see...
[themes.git] / LCARStrek / global / tabbox.css
index 50134932e2bfc31eb15cc58aaa764905d16c7ae3..d67f16ebeeecaf439180b1c9cd5f9e07b4900629 100644 (file)
 
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 
-/*============ tabpanels widget =============*/
+/* ===== tabbox.css =================================================
+  == Styles used by XUL tab-related elements.
+  ======================================================================= */
 
-tabpanels {
-  padding: 5px;
-}
+/* ::::: tabs ::::: */
 
-/* we give all tabpanel types a full border
-   tabpanel is the box in which contents show up */
-
-/* top tabs */
-tabs + tabpanels {
-  -moz-border-radius: 5px;
-  border: 1px solid #9C9CFF;
-  padding: 5px;
+.tabs-left,
+.tabs-right {
+/*
+  border-bottom: 2px solid;
+  -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
+*/
 }
 
-/* bottom tabs */
-tabbox > tabpanels {
-  -moz-border-radius: 5px;
-  border: 1px solid #9C9CFF;
-  padding: 5px;
-}
+/* ::::: tabpanels ::::: */
 
-/* left tabs */
-tabbox[orient="horizontal"] > tabs + tabpanels {
-  -moz-border-radius: 5px;
-  border: 1px solid #9C9CFF;
-  padding: 5px;
-}
+/* tabpanel is the box in which contents show up */
 
-/* right tabs */
-tabbox[orient="horizontal"] > tabpanels {
+tabpanels {
   -moz-border-radius: 5px;
   border: 1px solid #9C9CFF;
   padding: 5px;
+  background-color: #000000;
+  color: #FF9F00;
+  -moz-user-focus: normal;
 }
 
-/* border on bottom only, no padding (used in search) */
-tabpanels.light {
-  border: none;
-  border-bottom: 1px solid #9C9CFF;
-  padding: 0px;
-}
-
-.tabpanels-inner-box {
-}
-
-/* tabs-spacer ========================== */
-
-/* top tabs */
-tabbox > tabs > .tabs-spacer {
-}
-
-/* bottom tabs */
-tabbox > tabpanels + tabs > .tabs-spacer {
-}
-
-/* left tabs */
-tabbox[orient="horizontal"] > tabs > .tabs-spacer {
-}
-
-/* right tabs */
-tabbox[orient="horizontal"] > tabpanels + tabs > .tabs-spacer {
-}
-
-/*============ tab widget ============*/
-/* NOTE: there should be code in here for indenting the first tab
-   by two pixels, however, this needs to be done with a spacer to
-   fill in the border, but current attempts to use said spacer 
-   result in said spacer not rendering.  Will revisit.  - JRH */
+/* ::::: tab ::::: */
 
-/* tabs is the strip showing the tabs, while tab is the tab (switcher) itself */
-   
 tab {
-  -moz-border-radius: 3px 3px 0px 0px;
+  -moz-border-radius: 8px 8px 0px 0px;
+  margin-top: 2px;
   border: 1px solid #9C9CFF;
+  border-bottom: none;
+  padding: 1px 4px 2px 4px;
+  background-color: #000000;
   color: #FF9F00; 
 }
 
-tab > .tab-box > .tab-text {
-  border: 1px solid transparent;
-  padding: 0px 1px 0px 1px;
+.tab-text {
+  margin: 0 !important;
 }
 
-tab:focus > .tab-box > .tab-text {
-  border: 1px dotted #008484;
+tab[selected="true"]  {
+  font-weight: bold;
+  background-color: #008484;
 }
 
-.tab-box {
-  margin: 0px;
-  padding: 1px 3px 1px 3px !important;
+tab:hover { 
+  background-color: #FFCF00;
+  color: #000000;
+  text-decoration: underline;
 }
 
-/* top tabs */
-tabs tab[first-tab="true"]  { 
-  margin-left: 2px;
+tab:hover:active { 
+  text-decoration: none;
 }
 
-tabs tab  { 
-  margin-top: 2px;
-  border-bottom: none;
-  -moz-border-radius: 8px 8px 0px 0px;
+/*
+tab[first-tab="true"][selected="true"] {
+  padding-right: 5px;
+  padding-left: 5px;
 }
+*/
 
-tabs tab > .tab-box { 
-/*  -moz-border-radius: 4px 4px 0px 0px; */
-}
+/* ::::: tab-bottom ::::::::::
+   :: Tabs that are attached to the bottom of a panel, but not necessarily
+   :: a tabpanels.
+   ::::: */
 
-/* bottom tabs */
-tabpanels + tabs > tab { 
-  margin-top: 0px;
+.tab-bottom {
+  -moz-border-radius: 0px 0px 8px 8px;
+  margin-top: 0;
   margin-bottom: 2px;
+  border: 1px solid #9C9CFF;
   border-top: none;
-  -moz-border-radius: 0px 0px 8px 8px;
-  padding: 1px 5px 3px 5px;
+  padding: 2px 4px 1px 4px;
 }
 
-tabpanels + tabs > tab > .tab-box { 
-/*  -moz-border-radius: 0px 0px 4px 4px; */
-}
-
-/* left tabs */
-tabbox[orient="horizontal"] > tabs[orient="vertical"] tab[first-tab="true"]  { 
-  margin-top: 2px;
-}
-
-tabbox[orient="horizontal"] > tabs[orient="vertical"] tab  { 
-  margin-left: 2px;
-  border-right: none;
-  -moz-border-radius: 8px 0px 0px 8px;
-}
-
-tabbox[orient="horizontal"] > tabs[orient="vertical"] tab > .tab-box  { 
-/*  -moz-border-radius: 4px 0px 0px 4px; */
-}
-
-/* right tabs */
-tabbox[orient="horizontal"] > tabpanels + tabs[orient="vertical"] > tab { 
-  margin-right: 2px;
-  margin-left: 0px;
-  border-left: none;
-  -moz-border-radius: 0px 8px 8px 0px !important;
-}
+/* ::::: tabs-bottom ::::: */
 
-tabbox[orient="horizontal"] > tabpanels + tabs[orient="vertical"] > tab > .tab-box { 
-/*  -moz-border-radius: 0px 4px 4px 0px !important; */
-}
-
-/* selected tabs ============================= */
-
-tab[selected="true"]  {
-  font-weight: bold;
-}
-
-tab[selected="true"] {
-       font-weight: bold;
-        background-color: #008484;
-}
-
-tab:hover { 
-  background-color: #FFCF00;
-  color: #000000;
-  text-decoration: underline;
-}
-
-tab:hover:active { 
-  text-decoration: none;
+.tabs-bottom > .tabs-left,
+.tabs-bottom > .tabs-right {
+  border-top: 1px solid #9C9CFF;
+  border-bottom: none;
 }