/* nemo */

/* NemoTrashBar, NemoXContentBar, NemoQueryEditor */
.nemo-window-pane > notebook box.vertical box.vertical infobar.horizontal.info revealer .horizontal,
.nemo-window-pane box.vertical.toolbar.primary-toolbar {
    background-color: shade (@theme_bg_color, 1.05);
    border-radius: 0px;
    border-width: 0px 0px 1px 0px;
    border-style: solid;
    border-color: transparent;
    box-shadow: inset  0px  1px alpha(#fff, 0.06),
                inset  1px  0px alpha(#fff, 0.06),
                inset -1px  0px alpha(#fff, 0.06),
                inset  0px -1px alpha(#fff, 0.06);
}

.nemo-window-pane > notebook box.vertical box.vertical infobar.horizontal.info revealer .horizontal label {
    color: shade(@theme_text_color, 1.00);
    text-shadow: 0px 1px @theme_shadow_color;
}

.nemo-window-pane > notebook box.vertical box.vertical infobar.horizontal.info revealer .horizontal label:disabled {
    color: mix(@nautilus_cluebar_color, @theme_fg_color, 0.50);
}

/* disable radius for nemo, looks strange */
.nemo-window .sidebar treeview.view {
    border-radius: 0px;
}

.nemo-window .sidebar treeview.view:selected,
.nemo-window .sidebar treeview.view:selected:hover {
    background-image: linear-gradient(to bottom,
                                      shade (@theme_selected_bg_color, 1.2),
                                      shade (@theme_selected_bg_color, 0.7));
    color: @theme_selected_fg_color;
    border-radius: 0px;
}

.nemo-window toolbar.primary-toolbar button image {
    color: @theme_fg_dark_color;
}

.nemo-window toolbar.primary-toolbar .raised button,
.nemo-window toolbar.primary-toolbar .raised.linked button,
.nemo-window toolbar.primary-toolbar .raised button:hover,
.nemo-window toolbar.primary-toolbar .raised.linked button:hover,
.nemo-window toolbar.primary-toolbar .raised.linked button:focus,
.nemo-window toolbar.primary-toolbar .raised.linked button:checked:hover:active,
.nemo-window toolbar.primary-toolbar .raised.linked button:focus:checked:hover:active {
    padding: 4px 7px;
}

.nemo-window toolbar.primary-toolbar entry {
    padding: 3px 4px;
}

/* pathbar */
.nemo-window widget.raised.linked > button:nth-child(first) widget {
    -gtk-icon-source: -gtk-icontheme("pan-start-symbolic");
    color: @menu_fg_dark_color;
}

.nemo-window widget.raised.linked > button:nth-child(last) widget {
    -gtk-icon-source: -gtk-icontheme("pan-end-symbolic");
    color: @menu_fg_dark_color;
}

.nemo-window widget.raised.linked > button:nth-child(first) widget:disabled,
.nemo-window widget.raised.linked > button:nth-child(last) widget:disabled {
    color: @insensitive_fg_color;
}

.nemo-window widget.raised.linked > button:nth-child(first),
.nemo-window widget.raised.linked > button:nth-child(first):hover,
.nemo-window widget.raised.linked > button:nth-child(first):focus,
.nemo-window widget.raised.linked > button:nth-child(first):backdrop,
.nemo-window widget.raised.linked > button:nth-child(first):disabled,
.nemo-window widget.raised.linked > button:nth-child(first):focus:hover:active {
   margin: 0px -1px 0px -1px;
   padding: 0px;
}

.nemo-window widget.raised.linked > button:nth-child(last),
.nemo-window widget.raised.linked > button:nth-child(last):hover,
.nemo-window widget.raised.linked > button:nth-child(last):focus,
.nemo-window widget.raised.linked > button:nth-child(last):backdrop,
.nemo-window widget.raised.linked > button:nth-child(last):disabled,
.nemo-window widget.raised.linked > button:nth-child(last):focus:hover:active {
   margin: 0px -1px 0px -1px;
   padding: 0px;
}

.nemo-window widget.raised.linked > button.text-button.toggle,
.nemo-window widget.raised.linked > button.text-button.toggle:nth-child(first) {
    margin: 0px 0px 0px 0px;
    padding: 0px 6px;
}

.nemo-window widget.raised.linked > button.text-button.toggle:nth-child(last) {
    margin: 0px 0px 0px 0px;
    padding: 0px 6px;
}

/* Nemo statusbar */
.nemo-window box.toolbar.horizontal {
    background-image: none;
    background-color: @theme_bg_color;
    border-top-width: 0;
    border-bottom-width: 0;
    box-shadow: none;
    padding: 0px;
}

.nemo-window box.toolbar.horizontal button {
    padding: 6px;
}

/* kill unwanted colors */
.nemo-window .nemo-window-pane notebook {
    background-color: @theme_bg_color;
}

/* icon and compat mode, FIXME .view is broken with 3.20 */
.nemo-window .nemo-window-pane > notebook scrolledwindow {
    background-color: @theme_base_color;
}

.nemo-canvas-item {
    border-radius: 3px;
}

/* desktop mode */
.nemo-desktop.nemo-canvas-item {
    color: white;
    text-shadow: 1px 1px black;
}

.nemo-desktop.nemo-canvas-item:active,
.nemo-desktop.nemo-canvas-item:checked {
    background-image: none;
    color: @theme_text_color;
}

.nemo-desktop.nemo-canvas-item:selected {
    color: @theme_selected_fg_color;
}

.nemo-desktop.nemo-canvas-item:active,
.nemo-desktop.nemo-canvas-item:checked,
.nemo-desktop.nemo-canvas-item:hover,
.nemo-desktop.nemo-canvas-item:selected,
.nemo-desktop.nemo-canvas-item:checked {
    text-shadow: none;
}

/* stack-switcher ie. nemo preferences */
.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar {
    background-color: transparent;
    border-color: @primay-toolbar-border;
    border-width: 1px 0px;
    padding: 1px 0px;
}

.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar stackswitcher.horizontal.linked.stack-switcher button.text-button.radio,
.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar stackswitcher.horizontal.linked.stack-switcher button.text-button.radio:focus {
    color: @menu_fg_dark_color;
    text-shadow: none;
    box-shadow: none;
    padding: 5px 2px;
    background-image: none;
}

.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar stackswitcher.horizontal.linked.stack-switcher button.text-button.radio:hover,
.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar stackswitcher.horizontal.linked.stack-switcher button.text-button.radio:checked,
.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar stackswitcher.horizontal.linked.stack-switcher button.text-button.radio:checked:hover {
    background-image: -gtk-gradient (linear,
                                     left top, left bottom,
                                     from (shade(@menu_bg_dark_color, 2.03)),
                                     to   (shade(@menu_bg_dark_color, 1.17)));
    box-shadow: inset  0px  1px shade (@theme_selected_bg_color, 1.3),
                inset  1px  0px shade (@theme_selected_bg_color, 1.3),
                inset -1px  0px shade (@theme_selected_bg_color, 1.3),
                inset  0px -1px shade (@theme_selected_bg_color, 1.3);
}

/* middle most button */
.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar stackswitcher.horizontal.linked.stack-switcher button.text-button.radio,
.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar stackswitcher.horizontal.linked.stack-switcher button.text-button.radio:focus,
.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar stackswitcher.horizontal.linked.stack-switcher button.text-button.radio:hover,
.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar stackswitcher.horizontal.linked.stack-switcher button.text-button.radio:checked {
    border-right-width: 0px;
    border-left-width:  0px;
    border-radius: 0px;
}

/* left most button */
.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar stackswitcher.horizontal.linked.stack-switcher button.text-button.radio:first-child,
.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar stackswitcher.horizontal.linked.stack-switcher button.text-button.radio:focus:first-child,
.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar stackswitcher.horizontal.linked.stack-switcher button.text-button.radio:hover:first-child,
.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar stackswitcher.horizontal.linked.stack-switcher button.text-button.radio:checked:first-child {
    border-radius: 6px 0 0 6px;
    border-width: 1px;
    border-right-width: 0px;
}

/* right most button */
.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar stackswitcher.horizontal.linked.stack-switcher button.text-button.radio:last-child,
.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar stackswitcher.horizontal.linked.stack-switcher button.text-button.radio:focus:last-child,
.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar stackswitcher.horizontal.linked.stack-switcher button.text-button.radio:hover:last-child,
.nemo-properties-dialog box.vertical.dialog-vbox toolbar.horizontal.primary-toolbar stackswitcher.horizontal.linked.stack-switcher button.text-button.radio:checked:last-child {
    border-radius: 0 6px 6px 0;
    border-width: 1px;
    border-left-width: 0px;
}

.nemo-properties-dialog box.vertical.dialog-vbox frame.view {
    background-color: shade (@theme_bg_color, 1.1);
    border-color: @borders;
}

.nemo-properties-dialog box.vertical.dialog-vbox frame.view  GtkViewport.frame {
    background-color: shade (@theme_bg_color, 1.1);
}

.nemo-properties-dialog box.vertical.dialog-vbox frame.view stack  viewport.frame .vertical separator.horizontal {
    border-color: @borders;
    border-width: 0 0 1px 0;
}

.nemo-properties-dialog box.vertical.dialog-vbox frame.view stack  viewport.frame .vertical .vertical .vertical checkbutton.text-button {
    background-color: transparent;
}

.nemo-properties-dialog box.vertical.dialog-vbox frame.view stack  viewport.frame .vertical .vertical .vertical checkbutton.text-button:hover {
    background-color: shade (@theme_bg_color, 1.05);
    border-radius: 4px;
}

/* Cinnamon-Settings */

toolbar.cs-header {
    background-color: transparent;
    background-image: -gtk-gradient (linear,
                                     left top, left bottom,
                                     from (shade(@button_base, 1.00)),
                                     to (shade(@button_base, 0.93)));
    border-style: solid;
    border-radius: 3px 3px 0px 0px;
    border-top-color:    shade(@button_border, 1.05);
    border-left-color:   shade(@button_border, 1.05);
    border-right-color:  shade(@button_border, 1.05);
    border-bottom-color: shade(@button_border, 0.95);
    box-shadow: inset  0px  1px alpha(#fff, 0.09),
                inset  1px  0px alpha(#fff, 0.07),
                inset -1px  0px alpha(#fff, 0.07),
                inset  0px -1px alpha(#fff, 0.05);
    border-width: 1px;
    margin: -2px  -2px  0px  -2px;
}

/* CompizConfigManager */

.ccsm-window notebook.frame scrolledwindow viewport widget.notebook {
    background-color: shade (@theme_bg_color, 1.1);
}

.ccsm-window notebook.frame scrolledwindow viewport widget.notebook box.vertical frame {
    background-color: shade (@theme_bg_color, 1.14);
}

.ccsm-window notebook.frame scrolledwindow viewport widget.notebook box.vertical frame frame {
    background-color: shade (@theme_bg_color, 1.17);
}

.ccsm-window notebook.frame scrolledwindow viewport widget.notebook box.vertical frame expander scrolledwindow {
    border-color: @notebook_border;
    border-style: solid;
    border-width: 1px;
}

/* treeview header */
.ccsm-window notebook.frame scrolledwindow viewport widget.notebook box.vertical frame expander scrolledwindow treeview.view button {
    border-color: @notebook_border;
    border-style: solid;
    border-width: 0px 1px 1px 0px;
}

.ccsm-window notebook.frame scrolledwindow viewport widget.notebook box.vertical frame expander scrolledwindow treeview.view button:first-child {
    border-width: 0px 1px 1px 0px;
}

.ccsm-window notebook.frame scrolledwindow viewport widget.notebook box.vertical frame expander scrolledwindow treeview.view button:last-child {
    border-width: 0px 0px 1px 0px;;
}

.ccsm-window notebook.frame scrolledwindow viewport widget.notebook  spinbutton.horizontal > entry {
   padding: 0px 2px 0px 3px;
}

.ccsm-window notebook.frame scrolledwindow viewport widget.notebook  spinbutton.horizontal > button {
    padding: 0px 8px;
}

/* virtual-manager detail view, hopefully only */
window.background box.vertical notebook box.horizontal box.vertical notebook {
    border-style: none;
}

