/* ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
 *
 * The contents of this file are subject to the Mozilla 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/MPL/
 *
 * 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 BlueGriffon.
 *
 * The Initial Developer of the Original Code is
 * Disruptive Innovations SARL.
 * Portions created by the Initial Developer are Copyright (C) 2006
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 *   Daniel Glazman <daniel.glazman@disruptive-innovations.com>, Original author
 *
 * 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 MPL, 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 MPL, the GPL or the LGPL.
 *
 * ***** END LICENSE BLOCK ***** */

.selected {
  font-weight: bold;
}

.hidden {
  display: none;
}

structurebar {
  margin-bottom: 4px;
  margin-top: 4px;
}

window[rtl="false"] structurebar toolbarbutton {
  margin-left: 0px;
  margin-right: 0px;

  padding-left: 12px;

  border: none 0px;

  height: 20px;

  font-weight: bold;

  background-image: url("chrome://bluegriffon/skin/structurebar/ltr/structureArrow.png"),
                    url("chrome://bluegriffon/skin/structurebar/ltr/structureBorder.png");
  background-repeat: no-repeat, repeat-x;
  background-position: top left;
  background-color: var(--bg-dark-gray);
}

structurebar toolbarbutton {
  color: #c0c0c0;
}

structurebar toolbarbutton:hover {
  color: white;
}

structurebar toolbarbutton[checked="true"] {
  color: #00abff;
}

window[rtl="false"] structurebar toolbarbutton:first-of-type {
  margin-left: 12px;
  padding-left: 8px;
  background-image: url("chrome://bluegriffon/skin/structurebar/ltr/structureBoxLeft.png"),
                    url("chrome://bluegriffon/skin/structurebar/ltr/structureBorder.png");
  background-repeat: no-repeat, repeat-x;
}

window[rtl="false"] structurebar toolbarbutton:last-of-type {
  background-image: url("chrome://bluegriffon/skin/structurebar/ltr/structureArrow.png"),
                    url("chrome://bluegriffon/skin/structurebar/ltr/structureArrowRight.png"),
                    url("chrome://bluegriffon/skin/structurebar/ltr/structureBorder.png");
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-position: top left, top right;
  padding-right: 12px;
}

window[rtl="false"] structurebar toolbarbutton:only-of-type {
  background-image: url("chrome://bluegriffon/skin/structurebar/ltr/structureBoxLeft.png"),
                    url("chrome://bluegriffon/skin/structurebar/ltr/structureArrowRight.png"),
                    url("chrome://bluegriffon/skin/structurebar/ltr/structureBorder.png");
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-position: top left, top right;
  padding-right: 12px;
}

window[rtl="false"] structurebar toolbarbutton[checked="true"]:not(:first-of-type) {
  background-image: url("chrome://bluegriffon/skin/structurebar/ltr/structureArrowSelected.png"),
                    url("chrome://bluegriffon/skin/structurebar/ltr/structureArrowRight.png"),
                    url("chrome://bluegriffon/skin/structurebar/ltr/structureBorder.png");
}

window[rtl="false"] structurebar toolbarbutton[checked="true"]:first-of-type {
  background-image: url("chrome://bluegriffon/skin/structurebar/ltr/structureBoxLeftSelected.png"),
                    url("chrome://bluegriffon/skin/structurebar/ltr/structureArrowRight.png"),
                    url("chrome://bluegriffon/skin/structurebar/ltr/structureBorder.png");
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-position: top left, top right;
}

/************* RTL *************/

window[rtl="true"] structurebar toolbarbutton {
  margin-left: 0px;
  margin-right: 0px;

  padding-right: 12px;

  border: none 0px;

  height: 20px;

  font-weight: bold;

  background-image: url("chrome://bluegriffon/skin/structurebar/rtl/structureArrow.png"),
                    url("chrome://bluegriffon/skin/structurebar/rtl/structureBorder.png");
  background-repeat: no-repeat, repeat-x;
  background-position: top right;
}

window[rtl="true"] structurebar toolbarbutton:first-of-type {
  margin-right: 12px;
  padding-left: 8px;
  background-image: url("chrome://bluegriffon/skin/structurebar/rtl/structureBoxLeft.png"),
                    url("chrome://bluegriffon/skin/structurebar/rtl/structureBorder.png");
  background-repeat: no-repeat, repeat-x;
  background-position: top right;
}

window[rtl="true"] structurebar toolbarbutton:last-of-type {
  background-image: url("chrome://bluegriffon/skin/structurebar/rtl/structureArrow.png"),
                    url("chrome://bluegriffon/skin/structurebar/rtl/structureArrowRight.png"),
                    url("chrome://bluegriffon/skin/structurebar/rtl/structureBorder.png");
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-position: top right, top left;
  padding-left: 12px;
  margin-left: 12px;
}

window[rtl="true"] structurebar toolbarbutton:only-of-type {
  background-image: url("chrome://bluegriffon/skin/structurebar/rtl/structureBoxLeft.png"),
                    url("chrome://bluegriffon/skin/structurebar/rtl/structureArrowRight.png"),
                    url("chrome://bluegriffon/skin/structurebar/rtl/structureBorder.png");
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-position: top right, top left;
  padding-left: 12px;
}

window[rtl="true"] structurebar toolbarbutton[checked="true"]:not(:first-of-type) {
  background-image: url("chrome://bluegriffon/skin/structurebar/rtl/structureArrowSelected.png"),
                    url("chrome://bluegriffon/skin/structurebar/rtl/structureArrowRight.png"),
                    url("chrome://bluegriffon/skin/structurebar/rtl/structureBorder.png");
}

window[rtl="true"] structurebar toolbarbutton[checked="true"]:first-of-type {
  background-image: url("chrome://bluegriffon/skin/structurebar/rtl/structureBoxLeftSelected.png"),
                    url("chrome://bluegriffon/skin/structurebar/rtl/structureArrowRight.png"),
                    url("chrome://bluegriffon/skin/structurebar/rtl/structureBorder.png");
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-position: top right, top left;
}


/****** CLEAR THEME *****/

window[rtl="false"][cleartheme="true"] structurebar toolbarbutton {
  margin-left: 0px;
  margin-right: 0px;

  padding-left: 12px;

  border: none 0px;

  height: 20px;

  color: black;
  font-weight: bold;

  background-image: url("chrome://bluegriffon/skin/structurebar/cleartheme/ltr/structureArrow.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/ltr/structureBorder.png"),
                    -moz-linear-gradient(rgb(255, 255, 255), rgb(192, 192, 192), rgb(204, 204, 204));
  background-repeat: no-repeat, repeat-x;
  background-position: top left;
  background-color: transparent;
}

:root[cleartheme="true"] structurebar toolbarbutton:hover:not([checked="true"]) {
  color: #606060;
}

window[rtl="false"][cleartheme="true"] structurebar toolbarbutton:first-of-type {
  margin-left: 12px;
  padding-left: 8px;
  background-image: url("chrome://bluegriffon/skin/structurebar/cleartheme/ltr/structureBoxLeft.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/ltr/structureBorder.png"),
                    -moz-linear-gradient(rgb(255, 255, 255), rgb(192, 192, 192), rgb(204, 204, 204));
  background-repeat: no-repeat, repeat-x, repeat-x;
}

window[rtl="false"][cleartheme="true"] structurebar toolbarbutton:last-of-type {
  background-image: url("chrome://bluegriffon/skin/structurebar/cleartheme/ltr/structureArrow.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/ltr/structureArrowRight.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/ltr/structureBorder.png"),
                    -moz-linear-gradient(rgb(255, 255, 255), rgb(192, 192, 192), rgb(204, 204, 204));
  background-repeat: no-repeat, no-repeat, repeat-x, repeat-x;
  background-position: top left, top right;
  padding-right: 12px;
}

window[rtl="false"][cleartheme="true"] structurebar toolbarbutton:only-of-type {
  background-image: url("chrome://bluegriffon/skin/structurebar/cleartheme/ltr/structureBoxLeft.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/ltr/structureArrowRight.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/ltr/structureBorder.png"),
                    -moz-linear-gradient(rgb(255, 255, 255), rgb(192, 192, 192), rgb(204, 204, 204));
  background-repeat: no-repeat, no-repeat, repeat-x, repeat-x;
  background-position: top left, top right;
  padding-right: 12px;
}

window[rtl="false"][cleartheme="true"] structurebar toolbarbutton[checked="true"]:not(:first-of-type) {
  background-image: url("chrome://bluegriffon/skin/structurebar/cleartheme/ltr/structureArrowSelected.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/ltr/structureArrowRight.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/ltr/structureBorder.png"),
                    -moz-linear-gradient(#303030, #606060, #303030);
  color: white ! important;
}

window[rtl="false"][cleartheme="true"] structurebar toolbarbutton[checked="true"]:first-of-type {
  background-image: url("chrome://bluegriffon/skin/structurebar/cleartheme/ltr/structureBoxLeftSelected.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/ltr/structureArrowRight.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/ltr/structureBorder.png"),
                    -moz-linear-gradient(#303030, #606060, #303030);
  background-repeat: no-repeat, no-repeat, repeat-x, repeat-x;
  background-position: top left, top right;
  color: white ! important;
}

/************* RTL *************/

:root[cleartheme="true"] structurebar[rtl="true"] toolbarbutton {
  margin-left: 0px;
  margin-right: 0px;

  padding-right: 12px;

  border: none 0px;

  height: 20px;

  color: black;
  font-weight: bold;

  background-image: url("chrome://bluegriffon/skin/structurebar/cleartheme/rtl/structureArrow.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/rtl/structureBorder.png"),
                    -moz-linear-gradient(rgb(255, 255, 255), rgb(192, 192, 192), rgb(204, 204, 204));
  background-repeat: no-repeat, repeat-x;
  background-position: towindow[rtl="true"][cleartheme="true"] structurebar[rtl="true"] toolbarbutton:first-of-type {
  margin-right: 12px;
  padding-left: 8px;
  background-image: url("chrome://bluegriffon/skin/structurebar/cleartheme/rtl/structureBoxLeft.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/rtl/structureBorder.png"),
                    -moz-linear-gradient(rgb(255, 255, 255), rgb(192, 192, 192), rgb(204, 204, 204));
  background-repeat: no-repeat, repeat-x, repeat-x;
  background-position: top right;
}

window[rtl="true"][cleartheme="true"] structurebar toolbarbutton:last-of-type {
  background-image: url("chrome://bluegriffon/skin/structurebar/cleartheme/rtl/structureArrow.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/rtl/structureArrowRight.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/rtl/structureBorder.png"),
                    -moz-linear-gradient(rgb(255, 255, 255), rgb(192, 192, 192), rgb(204, 204, 204));
  background-repeat: no-repeat, no-repeat, repeat-x, repeat-x;
  background-position: top right, top left;
  padding-left: 12px;
  margin-left: 12px;
}

window[rtl="true"][cleartheme="true"] structurebar toolbarbutton:only-of-type {
  background-image: url("chrome://bluegriffon/skin/structurebar/cleartheme/rtl/structureBoxLeft.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/rtl/structureArrowRight.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/rtl/structureBorder.png"),
                    -moz-linear-gradient(rgb(255, 255, 255), rgb(192, 192, 192), rgb(204, 204, 204));
  background-repeat: no-repeat, no-repeat, repeat-x, repeat-x;
  background-position: top right, top left;
  padding-left: 12px;
}

window[rtl="true"][cleartheme="true"] structurebar toolbarbutton[checked="true"]:not(:first-of-type) {
  background-image: url("chrome://bluegriffon/skin/structurebar/cleartheme/rtl/structureArrowSelected.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/rtl/structureArrowRight.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/rtl/structureBorder.png"),
                    -moz-linear-gradient(#303030, #606060, #303030);
  color: white ! important;
}

window[rtl="true"][cleartheme="true"] structurebar toolbarbutton[checked="true"]:first-of-type {
  background-image: url("chrome://bluegriffon/skin/structurebar/cleartheme/rtl/structureBoxLeftSelected.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/rtl/structureArrowRight.png"),
                    url("chrome://bluegriffon/skin/structurebar/cleartheme/rtl/structureBorder.png"),
                    -moz-linear-gradient(#303030, #606060, #303030);
  background-repeat: no-repeat, no-repeat, repeat-x, repeat-x;
  background-position: top right, top left;
  color: white ! important;
}
