/*
* this file is part of the oxygen gtk engine
* Copyright (c) 2010 Hugo Pereira Da Costa <hugo@oxygen-icons.org>
* Copyright (c) 2010 Ruslan Kabatsayev <b7.10110111@gmail.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or( at your option ) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
/*
hard coded colors for infobars
these used to have valid default values set by Gtk,
but is not the case anymore.
TODO: use the same colors as KDE's message boxes
*/

@define-color info_fg_color black;
@define-color info_bg_color rgb (252, 252, 189);

@define-color warning_fg_color black;
@define-color warning_bg_color rgb (250, 173, 61);

@define-color question_fg_color white;
@define-color question_bg_color rgb (138, 173, 212);

@define-color error_fg_color white;
@define-color error_bg_color rgb (237, 54, 54);



/*
INFO: css border and padding ordering is either:
   - all-sides;
   - top/bottom left/right;
   - top left/right bottom;
   - top right bottom left;
*/

* {
    -GtkPaned-handle-size: 3px;
    -GtkButton-child_displacement_x: 0px;
    -GtkButton-child_displacement_y: 0px;

    -GtkButton-default_border: 0px;
    -GtkButton-default_outside_border: 0px;

    -GtkCalendar-horizontal-separation: 0px;
    -GtkComboBox-appears-as-list: 1;

    -GtkMenu-horizontal-offset: -7px;
    -GtkMenuBar-internal-padding: 0px;

    -GtkScrolledWindow-scrollbar-spacing: 1px;

    -GtkCheckButton-indicator-size: 18px;
    -GtkCheckMenuItem-indicator-size: 16px;
    -GtkExpander-expander-size: 15px;
    -GtkTreeView-expander-size: 15px;

    -GtkTreeView-allow-rules: 1px;

    -GtkStatusbar-shadow-type: none;
    -GtkMenubar-shadow-type: none;
    -GtkToolbar-shadow-type: none;

    -GtkWindow-resize-grip-height: 0px;
    -GtkWindow-resize-grip-width: 0px;

    -GtkWidget-wide-separators: 1;
    -GtkWidget-separator-width: 3;
    -GtkWidget-separator-height: 3;

    engine: oxygen-gtk;
}

/* customize border styles */
.toolbar { border-style: none; }
.menubar { border-style: none; }
GtkStatusBar { border-style: none; }

/*
    TODO:
    look at default values from GtkCssProvider for better style definitions
    (class based, rather than widget based)
*/

GtkScale {
    -GtkRange-slider-width: 23px;
    -GtkScale-slider-length: 21px;
}

GtkScrollbar {
    -GtkRange-stepper-size: 12px;
    -GtkRange-trough-border: 0px;
}

/* menuitems padding */
GtkMenuBar {
    padding: 1px;
    border-width: 0px;
}

GtkMenuBar>GtkMenuItem { padding: 2px 5px; }

/* menu toolbutton */
GtkMenuToolButton, GtkMenuToolButton * {
    border-width: 0px;
    -GtkButton-focus-padding: 0px;
    -GtkWidget-focus-line-width: 0px;
}

/* notebooks */
GtkNotebook {
    padding: 4px 6px 0px 6px;
    border-width: 2px 0px 6px 0px;
    border-style: outset;
}

/* option menu */
GtkOptionMenu { padding: 0px 4px; }

/* separators */
GtkSeparator {
    border-style: solid;
    border-width: 3px;
}

/* frames */
GtkScrolledWindow {
    border-style: inset;
    border-width: 1px;
    padding: 1px;
}

GtkFrame { padding: 4px; }
GtkViewport { padding: 0px; }
GtkProgressBar { padding: 0px; }
GtkAssistant .sidebar { padding: 4px; }

GtkInfoBar {
    border-style: solid;
    border-width: 8px;
}

/* switchs */
GtkSwitch { padding: 0px; }

/* spinners */
.spinner:active {
    transition: 750ms linear loop;
}

/* combo boxes */
GtkComboBox { padding: 0px 0px; }
GtkComboBox>GtkFrame { padding: 0px 0px 0px 4px; }

/* headers */
GtkTreeView>GtkButton {
    border-width: 0px 2px;
    border-style: solid;
}

GtkList>GtkButton {
    border-width: 0px 2px;
    border-style: solid;
}
