also add width for close-icon and override all those definitions for tab close buttons
[themes.git] / LCARStrek / global / global.css
index 4ff8f4a0dfc757575bfd62830defb9dda14bc94e..53cf677c015947126be959e1f1f62b6186128384 100644 (file)
@@ -1,39 +1,6 @@
-/* ***** BEGIN LICENSE BLOCK *****
- * Version: NPL 1.1/GPL 2.0/LGPL 2.1
- *
- * The contents of this file are subject to the Netscape Public License
- * Version 1.1 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://www.mozilla.org/NPL/
- *
- * Software distributed under the License is distributed on an "AS IS" basis,
- * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- * for the specific language governing rights and limitations under the
- * License.
- *
- * The Original Code is mozilla.org code.
- *
- * The Initial Developer of the Original Code is 
- * Netscape Communications Corporation.
- * Portions created by the Initial Developer are Copyright (C) 1998
- * the Initial Developer. All Rights Reserved.
- *
- * Contributor(s):
- *   Robert Kaiser <KaiRo@KaiRo.at>
- *
- * Alternatively, the contents of this file may be used under the terms of
- * either the GNU General Public License Version 2 or later (the "GPL"), or 
- * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
- * in which case the provisions of the GPL or the LGPL are applicable instead
- * of those above. If you wish to allow use of your version of this file only
- * under the terms of either the GPL or the LGPL, and not to allow others to
- * use your version of this file under the terms of the NPL, indicate your
- * decision by deleting the provisions above and replace them with the notice
- * and other provisions required by the GPL or the LGPL. If you do not delete
- * the provisions above, a recipient may use your version of this file under
- * the terms of any one of the NPL, the GPL or the LGPL.
- *
- * ***** END LICENSE BLOCK ***** */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 /* ===== global.css =====================================================
   == Styles that apply everywhere.
 /* all localizable skin settings shall live here */
 @import url("chrome://global/locale/intl.css");
 
-@import url("chrome://global/skin/formatting.css");
-
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 
-/* ::::: bindings ::::: */
-
-button {
-  -moz-binding: url("chrome://global/skin/buttonBindings.xml#button");
-}
-  
-button[type="menu"] {
-  -moz-binding: url("chrome://global/skin/buttonBindings.xml#button-menu");
-}
-
-button[type="menu-button"] {
-  -moz-binding: url("chrome://global/content/bindings/button.xml#menu-button");
-}
-
-  checkbox 
-    {
-      -moz-binding        : url("chrome://global/skin/classicBindings.xml#checkbox");
-    }
-  
-  menulist 
-    {
-      -moz-binding        : url("chrome://global/skin/menulistBindings.xml#menulist");
-    }
-        
-  menulist[editable="true"] 
-    {
-      -moz-binding          : url("chrome://global/skin/menulistBindings.xml#menulist-editable") !important;
-    }
-  
-  menulist > menupopup,
-  .menulist-menupopup
-    {
-      -moz-binding        : url("chrome://global/skin/menulistBindings.xml#menulistpopup");
-    }
-  
-  .menulist-compact
-    {
-      -moz-binding        : url("chrome://global/skin/menulistBindings.xml#menulist-compact");
-    }
-    
-  radio 
-    {
-      -moz-binding        : url("chrome://global/skin/classicBindings.xml#radio");
-    }
-  
-  grippy, grippy[collapse="before"]
-    {
-      -moz-binding          : url("chrome://global/skin/classicBindings.xml#grippy");
-    }
-    
-  splitter
-    {
-      -moz-binding        : url("chrome://global/skin/classicBindings.xml#splitter");
-    }
-  
-  tabs 
-    {
-      -moz-binding: url("chrome://global/skin/tabBindings.xml#tabs");
-    }
-  
-  toolbargrippy
-    {
-      -moz-binding          : url("chrome://global/skin/classicBindings.xml#toolbargrippy");
-    }
-  
-  toolbargrippy[tbgrippy-collapsed="true"] 
-    {
-      -moz-binding          : url("chrome://global/skin/classicBindings.xml#toolbargrippy-collapsed");
-    }
-  
-  .treecell-popupcell-menu 
-    {
-      -moz-binding: url("chrome://global/content/bindings/menu.xml#menu-iconic") !important;
-    }
+/* ::::: XBL bindings ::::: */
+
+checkbox {
+  -moz-binding: url("chrome://global/content/bindings/checkbox.xml#checkbox-with-spacing");
+}
+
+radio {
+  -moz-binding: url("chrome://global/skin/globalBindings.xml#radio-with-spacing");
+}
+
+menulist > menupopup {
+  -moz-binding: url("chrome://global/content/bindings/popup.xml#popup-scrollbars");
+}
 
 /* LCARStrek special bindings */
 
-  statusbar 
-    {
-      -moz-binding        : url("chrome://global/skin/globalBindings.xml#statusbar");
-    }
-
-  toolbar 
-    {
-      -moz-binding        : url("chrome://global/skin/globalBindings.xml#toolbar");
-    }
-
-  menubar 
-    {
-      -moz-binding        : url("chrome://global/skin/globalBindings.xml#menubar");
-    }
-
-/**  
- * XUL <window> element
- **/
-  window,
-  page,
-  dialog,
-  wizard
-    { 
-      background-color    : #000000;
-/*      font                : 3mm "Final Frontier",tahoma,arial,helvetica,sans-serif; */
-      font                : 3mm helvetica,arial,tahoma,sans-serif;
-      color               : #FF9F00;
-      padding             : 3px;
-    }
-
-  page
-    { 
-      padding             : 0px;
-    }
-
-  [wait-cursor] 
-    { 
-      cursor              : wait !important; 
-    }
-  
-  /* deprecated */
-  window.dialog 
-    { 
-      background-color    : #000000;
-      padding             : 8px 10px 10px 8px;
-    }
-
-/**
- * XUL <box> debugging
- **/
-  :-moz-horizontal-box-debug 
-    {
-      border              : 2px solid blue;
-      border-top-width    : 10px;
-      padding             : 2px;
-      margin              : 2px;
-      color               : white;
-    }
-  
-  :-moz-vertical-box-debug 
-    {
-      border              : 2px solid red;
-      border-left-width   : 10px;
-      padding             : 2px;
-      margin              : 2px;
-      color               : white;
-    }
-
-/**
- * Utility icons (used for alert dialogs, etc)
- **/
-  .message-icon 
-    {
-      list-style-image    : url("chrome://global/skin/message-icon.gif");
-      width:32px;height:32px;
-    }
-
-  .alert-icon 
-    {
-      list-style-image    : url("chrome://global/skin/alert-icon.gif");
-      width:32px;height:32px;
-    }
-  
-  .error-icon 
-    {
-      list-style-image    : url("chrome://global/skin/error-icon.gif");
-      width:32px;height:32px;
-    }
-  
-  .question-icon 
-    {
-      list-style-image    : url("chrome://global/skin/question-icon.gif");
-      width:32px;height:32px;
-    }
-
-/**
- * status-bar
- */
-  statusbar
-    {
-      margin-top          : 3px;
-      overflow            : hidden;
-/*      min-height          : 1.9em !important; */
-      /* DON'T DELETE.  Removes disappearance of scrollbars
-       * in content pane when window is made smaller.
-       * Talk to evaughan@netscape.com for details.
-       */
-      min-width           : 1px;
-    }
-  
-  .statusbar-center
-    {
-      background-color    : #8050B0;
-      padding-left        : 2px;
-      color               : black;
-      -moz-box-align      : center;
-    }
-
-  .statusbar-left
-    {
-      -moz-border-radius  : 9px 0px 0px 9px;
-      background-color    : #6000CF;
-      width               : 13px;
-      margin-right        : 3px;
-    }
-
-  .statusbar-right
-    {
-      -moz-border-radius  : 0px 9px 9px 0px;
-      background-color    : #6000CF;
-      width               : 13px;
-      margin-left         : 3px;
-    }
-
-  statusbarpanel, .statusbar-panel
-    {
-      padding             : 0px 1px 0px 1px;
-      -moz-box-align      : center;
-    }
-
-  .statusbarpanel-icononly
-    {
-      padding             : 0px;
-    }    
-    
-/**
- * iframe default sizing 
- **/
-  iframe 
-    {
-      min-width           : 10px;
-      min-height          : 10px;
-      width               : 100px;
-      height              : 100px;
-      border              : none;
-    }
-
-/* has to be in here since scoped stylesheets can't apply
-   to explicit children yet */
-caption
-  {
-    -moz-border-radius    : 7px;
-    margin                : 0px 6px 2px 6px;
-    padding               : 0px 0px 0px 0px;
-    background-color      : #9C9CFF;
-    color                 : #000000;
-  }
+statusbar {
+  -moz-binding: url("chrome://global/skin/globalBindings.xml#statusbar");
+}
 
-.tooltip-label
-  {
-    margin                : 0px;
+toolbar {
+  -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar");
+}
+
+menubar {
+  -moz-binding: url("chrome://global/skin/globalBindings.xml#menubar");
+}
+
+toolbaritem > menubar {
+  -moz-binding: url("chrome://global/content/bindings/toolbar.xml#menubar");
+}
+
+@media (-moz-mac-graphite-theme), (-moz-mac-lion-theme) {
+  /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */
+  toolbar.chromeclass-menubar {
+    -moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar");
+    border-bottom: none;
   }
+}
+
+/* ::::: Variables ::::: */
+:root {
+  --panel-arrowcontent-padding: 6px;
+  --panel-arrowcontent-background: #000000;
+  --panel-arrowcontent-color: #FF9F00;
+  --panel-arrowcontent-border-color: #FF9F00;
+}
+
+/* ::::: root elements ::::: */
+
+window,
+page,
+dialog,
+wizard,
+prefwindow {
+  background-color: #000000;
+  color: #FF9F00;
+/*  font: 3mm "Final Frontier",tahoma,arial,helvetica,sans-serif; */
+  font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
+  padding: 3px;
+}
+
+/* deprecated */
+window.dialog {
+  background-color: #000000;
+  padding-top: 8px;
+  padding-bottom: 10px;
+  padding-inline-start: 8px;
+  padding-inline-end: 10px;
+}
+
+/* ::::: alert icons :::::*/
+
+.message-icon,
+.alert-icon,
+.error-icon,
+.question-icon,
+.authentication-icon {
+  width: 32px;
+  height: 32px;
+}
+
+.message-icon {
+  list-style-image: url("chrome://global/skin/icons/alert-message.gif");
+}
+
+.alert-dialog #info\.icon,
+.alert-icon {
+  list-style-image: url("chrome://global/skin/icons/alert-exclam.gif");
+}
+
+.error-icon {
+  list-style-image: url("chrome://global/skin/icons/alert-error.gif");
+}
+
+.question-icon,
+.authentication-icon {
+  list-style-image: url("chrome://global/skin/icons/alert-question.gif");
+}
+
+/* ::::: iframe ::::: */
+
+iframe {
+  border: none;
+  width: 100px;
+  height: 100px;
+  min-width: 10px;
+  min-height: 10px;
+}
+
+/* ::::: statusbar ::::: */
+
+statusbar {
+  margin-top: 3px;
+  min-height: 16px;
+}
+
+.statusbar-center {
+  background-color: #8050B0;
+  padding-inline-start: 2px;
+  color: #FFCF00;
+  -moz-box-align: stretch;
+}
+
+.statusbar-left {
+  border-radius: 9px 0px 0px 9px;
+  background-color: #6000CF;
+  width: 13px;
+  margin-inline-end: 3px;
+}
+
+.statusbar-right {
+  border-radius: 0px 9px 9px 0px;
+  background-color: #6000CF;
+  width: 13px;
+  margin-inline-start: 3px;
+}
+
+statusbarpanel {
+  -moz-box-align: center;
+  -moz-box-pack: center;
+  border-left: 3px solid black;
+  padding: 0px 2px;
+}
+
+statusbarpanel:first-child {
+  border-left: none;
+}
+
+statusbarpanel:not(.statusbar-resizerpanel):-moz-lwtheme {
+  -moz-appearance: none;
+  border-top-style: none;
+  border-bottom-style: none;
+  border-inline-start-style: none;
+}
+
+.statusbar-resizerpanel {
+  -moz-box-align: end;
+  -moz-box-pack: end;
+  padding: 0px;
+}
+
+.statusbarpanel-iconic,
+.statusbarpanel-iconic-text,
+.statusbarpanel-menu-iconic {
+}
+
+.statusbarpanel-progress {
+  -moz-box-orient: vertical;
+  padding: 0px;
+}
+
+.toolbar-focustarget {
+  -moz-user-focus: ignore !important;
+}
+
+toolbar[mode="text"] .toolbarbutton-text {
+  /* padding: 0 !important;
+  margin: 3px 5px !important; */
+}
+
+/* ::::: miscellaneous formatting ::::: */
+
+:root:-moz-lwtheme,
+[lwthemefooter="true"] {
+  -moz-appearance: none;
+}
+
+:root:-moz-lwtheme-darktext {
+  text-shadow: 0 -0.5px 1.5px #FFCF00;
+}
+
+:root:-moz-lwtheme-brighttext {
+  text-shadow: 1px 1px 2px #000000;
+}
+
+statusbar:-moz-lwtheme,
+sidebarheader:-moz-lwtheme {
+  -moz-appearance: none;
+  background: none;
+  border-style: none;
+}
+
+.inset {
+/*  border: 1px inset #FF9F00;
+  margin: 0px 5px 5px; */
+}
+
+.outset {
+/*  border: 1px outset #FF9F00; */
+}
+
+/* separators */
+separator:not([orient="vertical"]) {
+  height: 1.5em;
+}
+
+separator[orient="vertical"] {
+  width: 1.5em;
+}
+
+separator.thin:not([orient="vertical"]) {
+  height: 0.5em;
+}
+
+separator.thin[orient="vertical"] {
+  width: 0.5em;
+}
+
+separator.groove:not([orient="vertical"]) {
+  border-top: 2px groove #FF9F00;
+  height: 0px;
+  margin-top: 0.4em;
+  margin-bottom: 0.4em;
+}
+
+separator.groove[orient="vertical"] {
+  border-left: 2px groove #FF9F00;
+  margin-inline-start: 0.4em;
+  margin-inline-end: 0.4em;
+}
+
+/* groove separators (0 padding, for dividing effects) */
+separator.groove-thin {
+  border-top: 2px groove #FF9F00;
+  height: 0px;
+}
+
+separator[orient="vertical"].groove-thin {
+  border-left: 2px groove #FF9F00;
+}
+
+.small-margin {
+  margin: 0px 1px;
+}
+
+.plain {
+  -moz-appearance: none;
+  margin: 0px !important;
+  border: none;
+  padding: 0px;
+}
+
+description, label  {
+  cursor: default;
+  margin: 1px 2px;
+}
+
+label[disabled="true"] {
+  color: #8050B0;
+}
+
+description {
+/*  margin-bottom: 4px; */
+}
+
+.tooltip-label {
+  margin: 0px;
+}
+
+.header {
+  font-weight: bold;
+}
+
+.monospace {
+  font-family: "Liberation Mono", Consolas, "Courier New", monospace;
+}
+
+.indent {
+/*  margin-inline-start: 23px; */
+  margin-inline-start: 15px;
+}
+
+.box-padded {
+  padding: 5px;
+}
+
+.spaced {
+  margin: 1px 3px;
+}
+
+.wizard-box {
+  padding: 15px 35px 10px;
+}
+
+.text-link {
+  color: #3333FF;
+  cursor: pointer;
+}
+
+.text-link:hover {
+  text-decoration: underline;
+}
+
+.text-link:-moz-focusring {
+  /* Don't specify the outline-color, we should always use initial value. */
+  outline: 1px dotted;
+}
+
+popupnotificationcontent {
+  margin-top: .5em;
+}
+
+/* :::::: autoscroll popup ::::: */
+
+.autoscroller {
+  height: 28px;
+  width: 28px;
+  border: 0px;
+  margin: -14px;
+  padding: 0px;
+  background-image: url("chrome://global/skin/icons/autoscroll.png");
+  background-color: transparent;
+  -moz-appearance: none;
+}
+
+.autoscroller[scrolldir="NS"] {
+  background-position: left center;
+}
+
+.autoscroller[scrolldir="EW"] {
+  background-position: left bottom;
+}
+
+.autoscroller[transparent="true"] {
+  background-position: center top;
+}
+
+.autoscroller[transparent="true"][scrolldir="NS"] {
+  background-position: center center;
+}
+
+.autoscroller[transparent="true"][scrolldir="EW"] {
+  background-position: center bottom;
+}
+
+.autoscroller[translucent="true"] {
+  background-position: right top;
+}
+
+.autoscroller[translucent="true"][scrolldir="NS"] {
+  background-position: right center;
+}
+
+.autoscroller[translucent="true"][scrolldir="EW"] {
+  background-position: right bottom;
+}
+
+/* :::::: Close button icons ::::: */
+
+.close-icon {
+  list-style-image: url("chrome://global/skin/icons/close.png");
+  -moz-image-region: rect(0, 16px, 16px, 0);
+}
+
+.close-icon:hover,
+.close-icon:hover:active {
+  -moz-image-region: rect(0, 32px, 16px, 16px);
+}
+
+.close-icon > .button-icon,
+.close-icon > .button-box > .button-icon,
+.close-icon > .toolbarbutton-icon {
+  width: 16px;
+}