/* ***** 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;
}

structurebar[rtl="false"] 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/ltr/structureArrow.png"),
                    url("chrome://bluegriffon/skin/structurebar/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;
}

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

structurebar[rtl="false"] 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"),
                    -moz-linear-gradient(rgb(255, 255, 255), rgb(192, 192, 192), rgb(204, 204, 204));
  background-repeat: no-repeat, repeat-x, repeat-x;
}

structurebar[rtl="false"] 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"),
                    -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;
}

structurebar[rtl="false"] 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"),
                    -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;
}

structurebar[rtl="false"] 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"),
                    -moz-linear-gradient(#303030, #606060, #303030);
  color: white ! important;
}

structurebar[rtl="false"] 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"),
                    -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 *************/

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/rtl/structureArrow.png"),
                    url("chrome://bluegriffon/skin/structurebar/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: top right;
}

structurebar[rtl="true"] 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"),
                    -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;
}

structurebar[rtl="true"] 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"),
                    -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;
}

structurebar[rtl="true"] 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"),
                    -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;
}

structurebar[rtl="true"] 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"),
                    -moz-linear-gradient(#303030, #606060, #303030);
  color: white ! important;
}

structurebar[rtl="true"] 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"),
                    -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;
}
