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

@import url("chrome://bluegriffon/skin/black.css");

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");

page {
  -moz-appearance: none;
  background-color: transparent;
  color: var(--bg-main-foreground-color);
}

:root {
  --bg-panel-lighter-background: #606060;
}

:root[cleartheme="true"], panel, popup {
  --bg-panel-lighter-background: #E0E0E0;
}

#mainBox {
  margin: 0px;
  padding: 0px;
}

#propertiesBox {
  overflow-x: hidden;
  overflow-y: auto;
}

#mainBoxHeader {
  padding-left: 2em;
  padding-right: 2em;
  padding-top: 1em;
  padding-bottom: 1em;
  overflow-x: hidden;
}

#cssPolicyBox {
  margin-bottom: 0.5em;
}

#sectionHeaderContext {
  background-color: white;
}

#warningBox > vbox {
  margin-left: 5px;
  margin-right: 5px;
}

#classPicker, #IDPicker {
  max-width: 7em;
  min-width: 7em;
}

#classPicker[valid="false"] html|*.menulist-editable-input {
  background-color: #ffcccc ! important;
}

hbox.csspropertiesHeader {
  background-color: transparent ! important;
  color: var(--bg-main-foreground-color);
  border-top: 2px solid var(--bg-dark-border);
  -moz-border-top-colors: var(--bg-dark-border) var(--bg-lighter-border);
  padding-left: 3px;
  padding-top: 2px;
  padding-bottom: 2px;
  text-transform: uppercase;
  font-weight: bold;
  transition: color 0.5s;
}

:root[cleartheme="true"] hbox.csspropertiesHeader {
  font-weight: normal;
}

hbox.csspropertiesHeader > image {
  list-style-image: url("chrome://cssproperties/skin/filter.png");
  -moz-transform: rotate(-90deg);
  transition: -moz-transform 0.5s, filter 0.5s;
  filter: grayscale(100%) contrast(600%);
}

hbox.csspropertiesHeader:-moz-locale-dir(rtl) > image {
  -moz-transform: rotate(+90deg) ;
}

hbox.csspropertiesHeader[open="true"] {
  /*color: #00abff;*/
  background-color: var(--bg-panel-lighter-background) ! important;
}

hbox.csspropertiesHeader[open="true"] > image {
  -moz-transform: rotate(0deg) !important;
  filter: none;
}

.section {
  transition: height 0.5s, opacity 0.5s;
  height: 0px;
  opacity: 0;
  overflow: hidden;
  padding: 1em;
  -moz-padding-start: 2em;
  background-color: var(--bg-panel-lighter-background) ! important;
}

hbox.csspropertiesHeader[open="true"] + .section {
  height: auto;
  overflow: visible;
  opacity: 1;
}

.section:last-child {
  border-bottom: thin solid gray;
}

menulist:not(#cssPolicyMenulist):not(#listStyleTypeMenulist) {
  width: 10em;
}

.listboxBg {
  /*-moz-box-align: center;*/
}

rotator {
  margin-left: 1em;
  margin-bottom: 0.5em;
  -moz-binding: url("chrome://bluegriffon/content/bindings/rotator.xml#rotator");
}

.multipane-menu menuitem {
  font-size: smaller;
}

ecolorpicker {
  margin-right: 1em;
}


%include general.css
%include colors.css
%include geometry.css
%include position.css
%include borders.css
%include transforms.css
%include flexbox.css
%include grids.css
%include griditems.css
%include transforms.css
%include transitions.css
%include shadows.css
%include columns.css

#bezierPanel {
  padding: 1em;
}

#p1_point, #p2_point {
  cursor: -moz-grab;
}

#p1_point.grabbing, #p2_point.grabbing {
  cursor: -moz-grabbing;
}

cssproperty {
  -moz-binding: url("chrome://cssproperties/content/cssproperty.xml#cssPropertyBinding");
  display: -moz-grid-line;
  -moz-box-orient: horizontal;
  -moz-box-align: baseline;
}

csslength {
  -moz-binding: url("chrome://cssproperties/content/cssproperty.xml#csslengthBinding");
}

cssident {
  -moz-binding: url("chrome://cssproperties/content/cssproperty.xml#multibuttonBinding");
}

csscolor {
  -moz-binding: url("chrome://cssproperties/content/cssproperty.xml#csscolorBinding");
}

l10n {
  display: none;
}

listbox, richlistbox {
  background-color: var(--bg-list-background);
  color: var(--bg-main-foreground-color);
  border: var(--bg-dark-border) solid thin;
  -moz-appearance: none;
}

:root[cleartheme="true"] listbox,
:root[cleartheme="true"] richlistbox {
   background-color: white;
 }

hbox.listboxBg {
  background-color: var(--bg-dark-background);
  color: white;
  border-color: var(--bg-dark-border);
}

hbox.listboxBg > * {
  background-color: transparent;
  color: var(--bg-main-foreground-color);
  border-right: thin solid var(--bg-dark-border);
}

hbox.listboxBg > *:last-child {
  border-right: 0px none;
}

/* colorpicker box */

html|input[type="color"] {
  border: 0px none;
  margin: 0px;
  padding: 0px;
  background-color: transparent ! important;
}

html|input[type="color"]::-moz-color-swatch {
  border: 4px solid #858585;
  -moz-border-top-colors: #858585 transparent transparent #858585;
  -moz-border-bottom-colors: #858585 transparent transparent #858585;
  -moz-border-left-colors: #858585 transparent transparent #858585;
  -moz-border-right-colors: #858585 transparent transparent #858585;
  min-width: 24px;
  max-width: 24px;
  min-height: 24px;
  max-height: 24px;
  background-clip: padding-box;
  border-radius: 24px;
  margin: 0px;
  padding: 0px;
}

/******* id alert *****/

#idAlert {
  background-color: orange;
  padding: 16px;
  overflow: hidden;
  max-height: 0px;
  transition: max-height ease-in 1s;
}

#idAlert[open="true"] {
  max-height: 1000px;
}

#idAlert > description {
  font-size: larger;
  font-weight: bold;
  color: black;
}

/* menulists */
menulist html|*.menulist-editable-input,
textbox html|*.numberbox-input,
menulist:not(#cssPolicyMenulist) .menulist-label {
  color: #00abff ! important;
}
