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

/*
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;
    -GtkButton-inner-border: 1px 2px 0px;

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


    -GtkMenu-horizontal-padding: 3px;
    -GtkMenu-vertical-padding: 5px;
    -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: GTK_SHADOW_NONE;

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

    /*
    Apparently the following have become obsolete
    -GtkTreeView-row-ending-details: 1px;
    -GtkStatusbar-has-resize-grip: false;
    -GtkEntry-honors-transparent-bg-hint: 1px;
    */

    engine: oxygen-gtk;
}

GtkScrolledWindow { border-width: 1px; }

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

/* specialization of default widgets style properties */
GtkToggleButton { -GtkButton-inner-border: 1px 0px 0px; }

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

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

/* entries */
/* do not change unless also changing Entry_SideMargin in OxygenStyle.h */
GtkEntry {
    padding: 2px 5px;
}

/* menuitems padding */
GtkMenuBar {
    padding: 1px;
    border-width: 0px;
}
GtkMenuBar>GtkMenuItem { padding: 2px 5px; }
GtkMenu>GtkMenuItem { padding: 5px 1px; }
GtkMenu>GtkSeparatorMenuItem { padding: 1px 1px; }

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

/* notebooks */
GtkNotebook { padding: 4px; }

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

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

/* frames */
GtkFrame { padding: 1px; }
GtkScrolledWindow { padding: 1px; }
GtkViewport { padding: 1px; }
GtkProgressBar { padding: 0px; }

/* combo boxes */
GtkComboBox { padding: 1px 0px; }
GtkComboBox>GtkFrame { padding: 4px; }
GtkComboBox>GtkEntry {
    padding: 2px 5px;
}
/* headers */
GtkTreeView>GtkButton { border-width: 0px 2px; }
GtkList>GtkButton { border-width: 0px 2px; }
