/* This theme was ported with the help of bluedxca93's porting script
   https://github.com/bluedxca93/18-20 */

* {
    engine: none;

    background-clip: padding-box;
    background-origin: border-box;
    
    -GtkArrow-arrow-scaling: 0.7;

    -GtkButton-child-displacement-x: 0;
    -GtkButton-child-displacement-y: 0;
    -GtkButtonBox-child-min-height: 26;
    
    -GtkCheckButton-indicator-size: 15;
    -GtkCheckMenuItem-indicator-size: 18;
    
    -GtkExpander-expander-size: 14;

    -GtkHTML-link-color: @link_color;
    -GtkIMHtml-hyperlink-color: @link_color;
    
    -GtkMenu-horizontal-padding: 0;
    -GtkMenu-vertical-padding: 0;
    
    -paned-handle-size: 5;
    
    -GtkScrolledWindow-scrollbar-spacing: 0;
    -GtkScrolledWindow-scrollbars-within-bevel: 1;
    
    -GtkTextView-error-underline-color: @error_color;
    
    -toolbutton-icon-spacing: 6;
    -GtkToolItemGroup-expander-size: 11;
    
    -treeview-expander-size: 11;
    -treeview-horizontal-separator: 4;

    -GtkWidget-focus-padding: 2;
    -GtkWidget-focus-line-width: 1;
    -GtkWidget-link-color: @link_color;
    -GtkWidget-separator-height: 1;
    -GtkWidget-separator-width: 1;
    -GtkWidget-visited-link-color: @link_color;
    -window-resize-grip-width: 0;
    -window-resize-grip-height: 0

    -WnckTasklist-fade-overlay-rect: 0;
}

.background {
    background-color: @theme_bg_color;
    color: @theme_fg_color;
}

*:selected,
*:selected:focus {
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

*:selected:backdrop,
*:selected:backdrop:focus {
    background-color: @theme_bg_color;
    color: @theme_fg_color;
}

*:disabled {
    color: @insensitive_fg_color;
    text-shadow: 0 1px alpha(white, 0.4);
}

/* Apply Effects to insensitive and Prelit Images */

*:disabled {
    -gtk-image-effect: dim;
}

.gtkstyle-fallback {
  color: @theme_fg_color;
  background-color: @theme_bg_color; }
  .gtkstyle-fallback:hover {
    color: @theme_fg_color;
    background-color: @theme_bg_color; }
  .gtkstyle-fallback:active {
    color: @theme_fg_color;
    background-color: @theme_base_color; }
  .gtkstyle-fallback:disabled {
    color: @insensitive_fg_color;
    background-color: @insensitive_bg_color; }
  .gtkstyle-fallback:selected {
    color: @theme_selected_fg_color;
    background-color: @theme_selected_bg_color; }


/*************
 * assistant *
 *************/
 
assistant .sidebar highlight {
    background-color: transparent;
    color: @theme_fg_color;
    font: bold;
}

assistant .sidebar {
    padding: 12px;
    border: 1px solid @borders_color;
    border-radius: 0;
    background-color: @theme_base_color;
    color: @insensitive_fg_color;
}

/**********
 * button *
 **********/

button {
    -GtkButton-image-spacing: 4;
    -GtkButton-interior-focus: 1;
    -GtkWidget-focus-line-width: 1;
    -GtkButton-default-border: 0;
    -GtkButton-inner-border: 0;
}

button,
buttonmenuitemmenubar {
    padding: 2px 5px;
}

GtkColorButtonbutton {
    padding: 2px;
}

combobox button.combo {
    padding: 2px 4px;
}

toolbar button {
    padding: 2px;
}

toolbar button.text-button {
    padding: 3px 11px;
}

toolbar buttonimage-button {
    padding: 2px;
}

buttonimage-button {
    padding: 2px;
}

.primary-toolbartoolbar buttonimage-button {
    padding: 2px;
}

.inline-toolbar buttonimage-button {
    padding: 2px;
}

button {
    border-color: transparent;
    color: @button_fg;
    text-shadow: none;
    icon-shadow: none;

}

button:disabled {
    color: @insensitive_fg_color;
    icon-shadow: none;
}

.primary-toolbartoolbar buttonimage-button {
    color: @theme_fg_color;
}

.primary-toolbartoolbar buttonimage-button:active,
.primary-toolbartoolbar buttonimage-button:active:hover {
}

.primary-toolbartoolbar buttonimage-button:disabled {
    color: @insensitive_fg_color;
    icon-shadow: none;
}

button.flat.link.text-button,
button.flat.link.text-button:active {
    text-shadow: none;
}

GtkPathBar button {
    padding: 2px;
}

/**:link,
*:visited {
    color: @link_color;
}*/

/***********
* calendar *
************/

calendar {
    padding: 2px;
}

calendar.view {
    padding: 2px;
    border: 1px solid @separator_color;
    border-radius: 0;
    background-color: @theme_base_color;
    background-image: none;
}

calendar.header {
    border-width: 0;
    border-radius: 0;
    color: @theme_selected_fg_color;
    background-image: linear-gradient(to bottom, @theme_selected_bg_color);
}

calendarbutton,
calendarbutton:disabled {
    background-color: transparent;
    background-image: none;
}

highlight,
calendar.highlight {
    padding: 0;
    border-width: 0;
    border-radius: 0;
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

/****************
 * cell and row *
 ****************/

.cell {
    padding: 2px;
}

.cell:selected,
.cell:selected:focus {
    border: none;
    border-radius: 0;
    background-color: transparent;
    background-image: linear-gradient(to bottom, @theme_selected_bg_color);
    color: @theme_selected_fg_color;
}

.cell:selected:backdrop,
.cell:selected:backdrop:focus {
    background-image: linear-gradient(to bottom, @theme_bg_color);
    color: @theme_fg_color;
}

list row {
    padding: 2px; }


/*******************
 * check and radio *
 *******************/

check,
radio,
check:disabled,
radio:disabled {
    border: none;
    background-color: transparent;
}

menuitem check,
menuitem radio,
menuitem check:hover,
menuitem radio:hover,
menuitem check:disabled,
menuitem radio:disabled {
    border-style: none;
    background-color: transparent;
    background-image: none;
}

checkbutton:hover,
checkbutton:active:hover,
checkbutton:selected,
checkbutton:selected:focus {
    background-color: transparent;
}

/*****************
 * Color Chooser *
 *****************/
colorswatch,
colorswatch:selected {
    border-radius: 0;
    border: 2px solid transparent;
    border-image: url("Shadows/frame-inset.png");
    border-image-slice: 2 2 2 2;
    background-color: transparent;
}

colorchooser #add-color-button {
    background-clip: padding-box;
    background-color: @theme_base_color;
    color: @theme_text_color;
    box-shadow: none;
}

colorchooser #add-color-button:hover {
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

.color-active-badge,
.color-active-badge:selected {
    background-color: transparent;
    box-shadow: none;
}

.color-active-badge.color-light,
.color-active-badge.color-light:hover {
    border: 1px solid #444444;
    color: #444444;
}

.color-active-badge.color-dark,
.color-active-badge.color-dark:hover {
    border: 1px solid #cccccc;
    color: #cccccc;
}

/*****************
 * column-header *
 *****************/
treeview header button,
treeview header button {
    padding: 1px 4px;
    color: @theme_fg_color;
    text-shadow: none;
    icon-shadow: none;
}

treeview header button:disabled,
treeview header button:disabled {
    color: @insensitive_fg_color;
}

treeview header button.dnd {
}

/**************
 * ComboBoxes *
 **************/

combobox {
    -combobox-arrow-scaling: 0.5;
    -combobox-shadow-type: none;
}

comboboxbutton {
    padding: 3px 4px 4px 4px;
}

combobox:disabled {
    color: @insensitive_fg_color;
    text-shadow: none;
    icon-shadow: none;
}

combobox.combobox-entry entry:first-child {
    border-right-width: 0;
    border-radius: 0;
}

combobox.combobox-entry entry:last-child {
    border-left-width: 0;
    border-radius: 0;
}

combobox entry button  {
    color: @arrow;
    border-style: solid;
    border-color: transparent;
    border-radius: 0;
    box-shadow: none;
    background-color: @theme_bg_color;
    background-size: 100% 100%;
}

combobox > box > button.combo {
}

comboboxtoolbar.primary-toolbar button:hover  {
    background-color: @theme_bg_color;
}

combobox entry button:active  {
    background-color: @theme_bg_color;
}

comboboxtoolbar combobox button.combo:disabled  {
    color: @arrow_insensitive;
    background-color: shade(@theme_bg_color, 1.1);
}

combobox entry button:last-child {
    border-width: 3px 3px 3px 2px;
    border-image: url("Button/entry-button.png");
    border-image-slice: 3 3 3 2;
}

combobox entry button:last-child:hover {
    border-image: url("Button/entry-button-hover.png");
    border-image-slice: 3 3 3 2;
}

combobox entry button:last-child:active {
    border-image: url("Button/entry-button-active.png");
    border-image-slice: 3 3 3 2;
}

combobox entry button:last-child:disabled  {
    border-image: url("Button/entry-button-insensitive.png");
    border-image-slice: 3 3 3 2;
}

combobox entry button:first-child {
    border-width: 3px 2px 3px 3px;
    border-image: url("Button/entry-button.png");
    border-image-slice: 3 2 3 3;
}

combobox entry button:first-child:hover {
    border-image: url("Button/entry-button-hover.png");
    border-image-slice: 3 2 3 3;
}

combobox entry button:first-child:active {
    border-image: url("Button/entry-button-active.png");
    border-image-slice: 3 2 3 3;
}

combobox entry button:first-child:disabled  {
    border-image: url("Button/entry-button-insensitive.png");
    border-image-slice: 3 2 3 3;
}

/* GTK 3.20  arrow */
combobox arrow {
  -gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
  min-height: 16px;
  min-width: 16px; }
combobox:drop(active) {
  box-shadow: none; }

/****************
 * content view *
 ****************/
 
.content-view.view,
.content-view.view:hover {
    background-color: @theme_base_color;
}

.content-view.view:disabled {
}

.content-view.view:selected {
    background-color: @theme_selected_bg_color;
    background-image: none;
}

.content-view.cell {
    background-color: transparent;
    background-image: none;
}

EggListBox.content-view:hover,
.content-view.cell:hover {
    background-color: @theme_bg_color;
}

EggListBox.content-view:selected,
EggListBox.content-view:active,
.content-view.cell:selected,
.content-view.cell:active {
    background-color: @theme_selected_bg_color;
    background-image: none;
}

.content-view {
    --icon-size: 40;
}

/**********************
 * Window Decorations *
 *********************/

headerbar.titlebar {
    border-radius: 0;
}

.tiled headerbar.titlebar {
    border-radius: 0;
}

.maximized headerbar.titlebar {
    border-radius: 0;
}

headerbar.titlebar.default-decoration {
    border: none;
    box-shadow: none;
}

headerbar button {
    padding: 5px;
}

headerbar {
    padding: 6px 6px;
    background-color: @theme_bg_color;
}

decoration {
    border-style: solid;
    border-width: 1px;
    border-radius: 0;
    border-color: darker(@theme_bg_color);
    box-shadow: 0 2px 8px 3px alpha(black, 0.5);
    
    /* this is used for the resize cursor area */
    margin: 10px;
}

.tiled decoration {
    border-radius: 0;
    background-color: @theme_bg_color;
}

/*
decoration {
  border-radius: 6px 6px 0 0;
  border-width: 0px;
  box-shadow: 0 3px 9px 1px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.23);
  margin: 10px; }*/
  decoration:backdrop {
    box-shadow: 0 3px 9px 1px transparent, 0 2px 6px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.18);
    transition: 200ms ease-out; } 
  .maximized decoration, .fullscreen decoration, .tiled decoration {
    border-radius: 0; }
  .popup decoration {
    box-shadow: none; }
  .ssd decoration {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.23); }
  .csd.popup decoration {
    border-radius: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.13); }
  tooltip.csd decoration {
    border-radius: 0px;
    background-color: @theme_bg_color;
    box-shadow: none; }
  messagedialog.csd decoration {
    border-radius: 0px;
    background-color: @theme_bg_color;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.13); }
  .solid-csd decoration {
    margin: 0;
    padding: 4px;
    background-color: @borders;
    border: solid 1px @borders;
    border-radius: 0;
    box-shadow: inset 0 0 0 3px @theme_bg_color, inset 0 1px rgba(255, 255, 255, 0.8); }
    .solid-csd decoration:backdrop {
      box-shadow: inset 0 0 0 3px @theme_bg_color, inset 0 1px rgba(255, 255, 255, 0.8); }

/* Server-side decoration (SSD) */
.window-frame.ssd {
    border-radius: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18); 
}

.window-frame.ssd,
.window-frame.ssd:backdrop {
    background-color: @theme_bg_color;
}


/* Client-side Decorations (CSD)*/
.window-frame.csd.tooltip {
    border-radius: 0;
    box-shadow: none; 
}

.window-frame.csd.message-dialog {
    border-radius: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.13); 
}

.window-frame.solid-csd {
     border: solid 1px shade(@bg_color, 0.8);
     border-radius: 0;
     margin: 2px;
     background-color: @theme_bg_color;
     box-shadow: none; 
}

.default-decoration.titlebar:not(headerbar),
headerbar.default-decoration {
    min-height: 28px;
}

.default-decoration.titlebar:not(headerbar) button.titlebutton,
headerbar.default-decoration button.titlebutton {
    min-height: 26px;
    min-width: 26px;
    margin: 0;
    padding: 0; }

/* Nautilus rename popup */
.csd popover.background, popover.background {
    box-shadow: 0 0 2px 0px gray;
    border: 1px solid @borders; }
popover.background:backdrop {
    background-color: @theme_bg_color;
    box-shadow: none; }

/****************
 * drawing area *
 ****************/

GtkDrawingArea {
    background-color: transparent;
}

/*********
 * entry *
 *********/
entry {
    color: @theme_text_color;
}

entry entry {
    border: none;
    box-shadow: none;
    background-color: transparent;
    background-image: none;
}

entry,
combobox.combobox-entry entry {
    padding: 5px 6px;
}

entry image.left {
    padding-right: 6px;
    padding-left: 0;
}

entry image.right {
   padding-right: 0;
}

entry selection:focus {
}

entry progress,
entry progress:focus {
    margin: 1px;
    border-radius: 0;
    border-width: 0 0 2px;
    border-color: @theme_selected_bg_color;
    border-style: solid;
    background-image: none;
    background-color: transparent;
    background-size: auto;
    box-shadow: none;
}

entry progress.pulse,
entry progress.pulse:focus {
    background-image: linear-gradient(to top, 
                                      transparent 2px,
                                      white 2px,
                                      white 3px,
                                      @theme_selected_bg_color 3px,
                                      @theme_selected_bg_color 5px,
                                      transparent 5px);
}

entry selection,
entry:selected,
entry selection,
entry:selected:focus {
}

spinbutton.verticalentry selection,
entry:selected:focus {
    background-color: @theme_selected_bg_color;
}

spinbutton.verticalentry selection,
entry:selected:backdrop {
    background-color: @theme_bg_color;
}

entry:disabled {
    color: @insensitive_fg_color;
}

entry:active {
}

cursor-handle.top,
cursor-handle.bottom {
}

/************
 * expander *
 ************/

expander {
    color: @theme_fg_color;
}

expander:active {
    color: @theme_fg_color;
}

expander:hover {
    color: @theme_fg_color;
}

expander row:selected,
expander row:selected:focus {
    border-color: @theme_selected_fg_color;
    color: @theme_selected_fg_color;
}

expander row:selected:hover,
expander row:selected:focus:hover {
    border-color: @theme_selected_fg_color;
    color: @theme_selected_fg_color;
}

/**********************
* fallback mode panel *
**********************/

.gnome-panel-menu-bar,
PanelApplet > GtkMenuBarmenubar,
PanelToplevel,
PanelWidget,
PanelAppletFrame,
PanelApplet {
    background-color: @theme_bg_color;
    background-image: none;
    color: @theme_fg_color;
}

ClockBox,
.gnome-panel-menu-barmenubar,
PanelApplet > GtkMenuBarmenubar {
    font: bold;
}

.gnome-panel-menu-barmenubar menuitem,
menubar menuitem *:hover,
PanelApplet > GtkMenuBarmenubar menuitem,
menubar menuitem *:hover {
    text-shadow: 0 1px white;
}

.gnome-panel-menu-barmenubar menu,
PanelApplet > GtkMenuBarmenubar menu {
    font: regular;
}

.gnome-panel-menu-barmenubar menu *:hover,
PanelApplet > GtkMenuBarmenubar menu *:hover {
    text-shadow: none;
}

.gnome-panel-menu-bar menuitem:hover,
PanelApplet > GtkMenuBarmenubar menuitem,
menubar menuitem:hover,
.gnome-panel-menu-bar menuitem *:hover,
PanelApplet > GtkMenuBarmenubar menuitem,
menubar menuitem *:hover {
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

.gnome-panel-menu-bar menuitem *:hover,
PanelApplet > GtkMenuBarmenubar menuitem,
menubar menuitem *:hover {
    color: @theme_selected_fg_color;
}

WnckPager {
    background-color: lighter(@theme_bg_color);
}

NaTrayApplet {
    -NaTrayApplet-icon-padding: 12;
    -NaTrayApplet-icon-size: 16;
}

GsmFailWhaleDialog {
    background-color: @theme_bg_color;
    background-image: none;
    color: @theme_fg_color;
}

GsmFailWhaleDialog button,
GsmFailWhaleDialog button:active {
    border-image: none;
    border-color: @border;
    border-width: 1px;
}

/****************
 * floating bar *
 ****************/

.floating-bar {
    border: 1px solid @borders_color;
    border-radius: 0;
    background-image: linear-gradient(to bottom, @theme_bg_color);
}

.floating-bar top {
    border-top-width: 0;
}

.floating-bar right {
    border-right-width: 0;
}

.floating-bar bottom {
    border-bottom-width: 0;
}

.floating-bar left {
    border-left-width: 0;
}

.floating-bar button {
    -GtkButton-image-spacing: 0;
    -GtkButton-inner-border: 0;
}

/*********
 * frame *
 *********/
frame > border {
    border-width: 1px;
    border-style: solid;
    border-color: shade(@theme_bg_color, 0.85);
    border-radius: 0;
    box-shadow: none;
}

frame.flat > border,
frame > border.flat,
statusbar frame > border {
    border: none;
}

GtkScrolledWindowframe {
    border: 1px solid @borders_color;
    border-radius: 0;
}

GtkViewportframe {
    border-width: 0;
}

scrolledwindow viewportframe {
    border: none;
}

GtkRevealer frame {
    border: 1px solid @menu_borders;
    background-color: @osd_bg;
}

/************
 * gtkstyle *
 ************/

.gtkstyle-fallback {
    background-color: @theme_bg_color;
    color: @theme_fg_color;
}

.gtkstyle-fallback:hover {
    background-color: shade(@theme_bg_color, 1.1);
    color: @theme_fg_color;
}

.gtkstyle-fallback:active {
    background-color: shade(@theme_bg_color, 0.9);
    color: @theme_fg_color;
}

.gtkstyle-fallback:disabled {
    background-color: shade(shade(@theme_bg_color, 0.95), 1.05);
    color: mix(@theme_fg_color, @theme_bg_color, 0.4);
}

.gtkstyle-fallback:selected {
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

/***************
 * Header Bars *
 ***************/
 
.header-bar {
    padding: 6px 6px 5px 6px;
    border-radius: 0;
}

.header-bar button.text-button {
    padding: 2px 16px 3px 16px;
}

.header-bar buttonimage-button {
    padding: 5px 5px 4px 5px;
}

.header-bar .title {
    font: Bold 11;
    padding: 0 12px 0 12px;
}

.header-bar .subtitle {
    font: 9;
    padding: 0 12px 0 12px;
}

/************
 * iconview *
 ************/

view.cell:selected,
view.cell:selected:focus {
    color: @theme_selected_fg_color;
    border: none;
    border-radius: 0px;
    background-image: linear-gradient(to bottom, @theme_selected_bg_color);
}

/*******************
 * image and label *
 *******************/
label:disabled {
    color: @insensitive_fg_color;
    text-shadow: 1px 1px white;
} 

image,
image:active,
image:disabled,
label,
label:active,
label:disabled,
box,
box:disabled,
GtkGrid,
GtkGrid:disabled {
    background-color: transparent;
}

.viewlabel,
label {
    color: alpha(@theme_fg_color, 0.6);
}

label:selected,
label:selected:focus {
    color: alpha(@theme_selected_fg_color, 0.6);
}

/***********
 * infobar *
 ***********/

.info,
.question,
.warning,
.error {
    border-style: solid;
    border-width: 0 0 1px 0;
    border-radius: 0;
    border-color: @separator_color;
    border-image: none;
}

.info {
    background-image: linear-gradient(to bottom, @info_color);
}

.info label {
    color: @theme_text_color;
}

.question {
    background-image: linear-gradient(to bottom, @question_color);
}

.question label {
    color: #004166;
}

.warning {
    background-image: linear-gradient(to bottom, @warning_color);
}

.warning label {
    color: #664e00;
}

.error {
    background-image: linear-gradient(to bottom, @error_color);
}

.error label {
    color: #550000;
}

infobar entry,
infobar menu {
    color: @text_color;
}

/*************
 * level bar *
 *************/

GtkLevelBar {
    -GtkLevelBar-min-block-width: 34;
    -GtkLevelBar-min-block-height: 5;
}

GtkLevelBar.vertical {
    -GtkLevelBar-min-block-width: 5;
    -GtkLevelBar-min-block-height: 34;
}

levelbar trough {
    padding: 2px;
}

levelbar block {
    background-color: @theme_selected_bg_color;
    border: 1px solid alpha(@theme_fg_color, 0.1);
    background-image: none;
}

levelbar.indicator-continuous.fill-block {
    padding: 2px;
    border-radius: 2px;
}

levelbar.indicator-discrete.fill-block.horizontal {
    margin: 0 1px;
}

levelbar.indicator-discrete.fill-block.vertical {
    margin: 1px 0;
}

levelbar block.level-high {
    background-color: #1EC207;
    border-color: alpha(@theme_fg_color, 0.1);
    background-image: none;
}

levelbar block.level-low {
    background-color: #E68304;
    border: 1px solid alpha(@theme_fg_color, 0.1);
    background-image: none;
}

levelbar block.empty-fill-block {
    border-color: alpha(@theme_fg_color, 0.1);
    background-color: transparent;
    background-image: none;
}

/**************
 * list boxes *
 **************/

EggListBox,
EggListBox:hover {
    background-color: @theme_base_color;    
}

EggListBox:selected {
    background-color: @theme_selected_bg_color;
}

list,
list-row,
list-row:active {
    background-color: @theme_base_color;
}

list-row:selected {
    color: @theme_selected_fg_color;
    background-color: @theme_selected_bg_color;
}

/*****************
 * miscellaneous *
 *****************/

.dnd {
    border: 1px solid shade(@theme_selected_bg_color, 1.12);
}

.view.rubberband,
view rubberband,
rubberband,
.rubberband,
view rubberband,
rubberband {
    border: 1px solid @theme_selected_bg_color;
    border-radius: 0;
    background-color: alpha(@theme_selected_bg_color, 0.3);
}

/********
 * menu *
 ********/
menu,
treemenu menu {
    border: 1px solid @menu_borders;
    border-radius: 0;
    background-color: @menu_bg;
    margin: 4px;    /* avoid minify of menu */
}

menu > arrow.top,
.menu > arrow.top {
    margin-top: -3px;
    border-bottom: 1px solid shade(@theme_bg_color, 0.9);
    -gtk-icon-source: -gtk-icontheme("pan-up-symbolic");
}

menu > arrow.bottom,
.menu > arrow.bottom {
    margin-bottom: -3px;
    border-top: 1px solid shade(@theme_bg_color, 0.9);
    -gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
}

GtkMenuButton menu {
    text-shadow: none;
}

.context-menu {
    font: initial;
}

menu {
    margin: 4px;
    padding: 3px;
    border: 1px solid @menu_borders;
    border-radius: 0;
    background-color: @menu_bg;
}

menu button,
.menu button,
menu button,
.menu button:hover {
    border: 1px solid @menu_borders;
    border-radius: 0;
    border-image: none;
    background-color: @menu_bg;
    background-image: none;
    color: @menu_fg;
}

menu button,
.menu button:disabled {
    border: 1px solid @menu_borders;
    border-radius: 0;
    border-image: none;
    background-color: @menu_bg;
    background-image: none;
    color: @insensitive_fg_color;
}


/***********
 * menubar *
 ***********/

menubar {
    -GtkWidget-window-dragging: true;
    border: none;
    background-color: @theme_base_color;
    box-shadow: inset 0px 1px white,
                inset 0px -1px @separator_color;
}

/***************
 * menubaritem *
 ***************/

menubar menuitem,
menu menuitem, {
    padding: 4px 8px;
    border: none;
    text-shadow: none;
}

menubar menuitem,
menubar menuitem:backdrop {
    color: @backdrop_text_color;
}

menubar menuitem {
   padding: 3px 5px 3px 5px;
    border: none;
    border-radius: 0;
    background-color: transparent;
    background-image: linear-gradient(to bottom, @theme_base_color);
    color: @theme_selected_fg_color;
    text-shadow: none;
}

    menubar > menuitem:hover,
    .menubar > menuitem:hover {
      background-image: linear-gradient(to bottom, @theme_selected_bg_color);
      color: @borders; }

.menu {
  margin: 4px;
  padding: 2px 0px;
  background-color: @theme_bg_color;
  border: 1px solid @borders; }

/************
 * menuitem *
 ************/

treemenu menuitem,
menu menuitem,
menu menuitem {
    -GtkMenuItem-arrow-scaling: 0.5;
    color: @menu_fg;
}

treemenu menuitem {
    padding: 2px;
}

menu menuitem,
menu menuitem {
    padding: 4px;
}

treemenu menuitem,
button menuitem,
toolbar button menuitem,
menu menuitem,
menu menuitem {
    text-shadow: none;
}

menu menuitem,
menu menuitem:hover {
    border-radius: 0;
}

.menu menuitem:active,
menu menuitem:active,
.menu menuitem:hover,
menu menuitem:hover {
    border: none;
    background-image: linear-gradient(to bottom, @theme_selected_bg_color); 
}

menu menuitem,
menu menuitem:disabled {
    background-color: transparent;
    background-image: none;
}

menu menuitem,
menu menuitem:active,
menu menuitem,
menu menuitem:hover {
    color: @theme_selected_fg_color;
}

menu menuitem,
menu menuitem:disabled {
    color: @insensitive_fg_color;
}

GtkModelMenuItem box image {
}

menuitem arrow {
}

/************
 * notebook *
 ************/

notebook {
    background-clip: border-box;
    -GtkNotebook-initial-gap: 0;
    -GtkNotebook-tab-overlap: 3;
    -GtkNotebook-tab-curvature: 0;
    -GtkWidget-focus-line-width: 1;
    -GtkWidget-focus-padding: 0;
}

notebook > stack:not(:only-child) {
    padding: 0;
    background-color: @notebook_bg;
    background-image: none;
    border: 1px solid @notebook_borders_color;
    border-radius: 0;
    border-image: none;
    box-shadow: inset 0 2px shade(@theme_bg_color, 0.65),
                inset 2px 0 shade(@theme_bg_color, 0.65),
                inset 0 -1px white,
                inset -1px 0 white;
}

paned.horizontal notebook {
    border: 0;
    background-color: @notebook_bg;
}

notebook GtkTextView {
    background-color: @notebook_bg;
}

notebook tab {
    box-shadow: none;
}

notebook header {
    background-color: @theme_bg_color;
}

notebook header.top tab,
notebook header.bottom tab {
    padding: 5px 12px;
}

notebook header.left tab,
notebook header.right tab {
    padding: 7px 10px;
}

notebook header.top tab:checked,
notebook header.bottom tab:checked {
    padding: 6px 12px;
}

notebook header.left tab:checked {
    padding: 7px 10px 7px 12px;
}

notebook header.right tab:checked {
    padding: 7px 12px 7px 10px;
}

notebook tab {
    border-color: transparent;
    border-style: solid;
    border-image-repeat: stretch;
}

notebook header.top tab {
    border-width: 8px 5px 0 5px;
    border-image: url("Notebook/tab-top.png");
    border-image-slice: 8 5 0 5;
}

notebook header.bottom tab {
    border-width: 0 5px 5px 5px;
    border-image: url("Notebook/tab-bottom.png");
    border-image-slice: 0 5 5 5;
}

notebook header.left tab {
    border-width: 6px 0 7px 7px;
    border-image: url("Notebook/tab-left.png");
    border-image-slice: 6 0 7 7;
}

notebook header.right tab {
    border-width: 6px 7px 7px 0;
    border-image: url("Notebook/tab-right.png");
    border-image-slice: 6 7 7 0;
}

notebook header.top tab:checked {
    border-image: url("Notebook/tab-top-active.png");
    border-image-slice: 8 5 0 5;
}

notebook header.bottom tab:checked {
    border-image: url("Notebook/tab-bottom-active.png");
    border-image-slice: 0 5 5 5;
}

notebook header.left tab:checked {
    border-image: url("Notebook/tab-left-active.png");
    border-image-slice: 6 0 7 7;
}

notebook header.right tab:checked {
    border-image: url("Notebook/tab-right-active.png");
    border-image-slice: 6 7 7 0;
}

notebook > header.top > tabs > arrow.up,
notebook > header.bottom > tabs > arrow.up {
    -gtk-icon-source: -gtk-icontheme("pan-end-symbolic");
}

notebook > header.top > tabs > arrow.up:last-child,
notebook > header.bottom > tabs > arrow.up:last-child {
    margin-left: 2px;
}

notebook > header.top > tabs > arrow.down,
notebook > header.bottom > tabs > arrow.down {
    -gtk-icon-source: -gtk-icontheme("pan-start-symbolic");
}

notebook > header.top > tabs > arrow.down:first-child,
notebook > header.bottom > tabs > arrow.down:first-child {
    margin-right: 2px;
}

notebook > header.left > tabs > arrow.up,
notebook > header.right > tabs > arrow.up {
    -gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
}

notebook > header.left > tabs > arrow.up:last-child,
notebook > header.right > tabs > arrow.up:last-child {
    margin-top: 2px;
}

notebook > header.left > tabs > arrow.down,
notebook > header.right > tabs > arrow.down {
    -gtk-icon-source: -gtk-icontheme("pan-up-symbolic");
}

notebook > header.left > tabs > arrow.down:first-child,
notebook > header.right > tabs > arrow.down:first-child {
    margin-bottom: 2px;
}

notebook > header > tabs > arrow {
    color: @theme_fg_color;
}

notebook > header > tabs > arrow:hover {
    color: shade(@theme_fg_color, 1.2);
}

notebook > header > tabs > arrow:active {
    color: shade(@theme_fg_color, 0.8);
}

notebook > header > tabs > arrow:disabled {
    color: shade(@theme_bg_color, 0.6);
}

/******
* osd *
*******/

.background osd {
    background-color: @osd_bg;
    color: @osd_fg;
}

overlay osd {
    background-color: transparent;
}

osd trough {
    background-color: alpha(@osd_bg, 0.6);
}

osd progressbar.vertical progress {
    background-color: @osd_fg;
}

.csd popover.background.touch-selection, .csd popover.background.magnifier, popover.background.touch-selection, popover.background.magnifier, .csd popover.background.osd, popover.background.osd, .app-notification,
.app-notification.frame, .osd .scale-popup,
.osd {
  color: @osd_fg;
  border: none;
  padding: 4px;
  background-color: @osd_bg;
  background-clip: padding-box;
  outline-color: @osd_fg;
  text-shadow: none;
  -gtk-icon-shadow: 0 1px @osd_fg; }


/******************
 * pane separator *
 ******************/

paned > separator {
    background-color: @theme_bg_color;
    color: @theme_fg_color;
    border-style: none;
}

grip {
    background-color: transparent;
}

/***************
 * progressbar *
 ***************/

progressbar {
    -progressbar-min-horizontal-bar-height: 20;
    -progressbar-min-vertical-bar-width: 22;
    font-size: smaller;
    color: alpha(@theme_fg_color, 0.4);
    padding: 0;
}

progressbar progress {
  border: 1px solid @theme_fg_color;
  border-radius: 0;
  background-color: @theme_selected_bg_color; 
}

progressbar progress row,
progressbar progress row,
progressbar progress row:selected,
progressbar progress row:selected:focus {
    color: @theme_text_color;
    border-width: 0;
}

trough,

trough row {
    color: @theme_fg_color;
}

trough row:selected,
trough row:selected:focus {
    color: @theme_selected_fg_color;
}

/*********
 * Scale *
 *********/
scale {
    -GtkRange-slider-width: 23;
    -scale-slider-length: 15;
    -GtkRange-trough-border: 2;
}

scale.scale-has-marks-above,
scale.scale-has-marks-below {
    -GtkRange-slider-width: 21;
    -scale-slider-length: 11;
}

scale slider {
    border: none;
    background-color: transparent;
    background-position: center center;
    background-repeat: no-repeat;
    color: transparent;
}

scale slider.fine-tune:active,
scale slider.fine-tune:active:hover,
scale slider.fine-tune.horizontal:active,
scale slider.fine-tune.horizontal:active:hover {
    background-size: 75%;
    background-repeat: no-repeat;
    background-position: center;
}

scale trough {
    margin: 11px 6px;
}

scale trough.vertical {
    margin: 6px 11px;
}

scale trough {
    background-color: transparent;
    background-image: none;
    box-shadow: none;
}

.primary-toolbar .scale trough {
    background-image: none;
}

.scale trough.vertical {
    background-color: transparent;
    background-image: none;
    box-shadow: none;
}

.primary-toolbar .scale trough.vertical {
    background-image: none;
}

.scale trough.highlight {
    background-image: none;
    box-shadow: none;
}

.scale trough.highlight.vertical {
    background-image: none;
    box-shadow: none;
}

.scale trough:disabled,
.scale trough.highlight:disabled,
.scale trough.vertical:disabled,
.scale trough.highlight.vertical:disabled {
    background-color: transparent;
    background-image: none;
    box-shadow: none;                            
}

.primary-toolbar .scale trough:disabled,
.primary-toolbar .scale trough.highlight:disabled,
.primary-toolbar .scale trough.vertical:disabled,
.primary-toolbar .scale trough.highlight.vertical:disabled {
    background-color: transparent;
    background-image: none;
    box-shadow: none;                            
}

scale progressbar.vertical progress {
    background-image: none;
    background-color: @theme_selected_bg_color;
}

.scale.mark separator,
.separator {
    color: @border;
}

/*************
 * scrollbar *
 *************/

scrollbar {
    -GtkRange-trough-border: 0;
    -GtkScrollbar-has-backward-stepper: 1;
    -GtkScrollbar-has-forward-stepper: 1;
    -GtkRange-stepper-size: 17;
    -GtkRange-slider-width: 17;
    -GtkScrollbar-min-slider-length: 15;
    -GtkRange-stepper-spacing: 0;
    -GtkRange-trough-under-steppers: 1;
    background-color: @theme_bg_color;
}

scrollbar button,
scrollbar button:hover,
scrollbar button:hover,
scrollbar button:active,
scrollbar button:active:hover,
scrollbar button:disabled,
scrollbar button:disabled {
    -GtkRange-arrow-scaling: 0.0; /* dirty hack to use our buttons */
    border: 0 solid transparent;
    box-shadow: none;
    background-position: center center;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    min-width: 10px;
    min-height: 10px;
    color: transparent;
}

scrollbar.vertical button.up,
scrollbar.vertical button.up:hover,
scrollbar.vertical button.up:disabled {
    min-height: 15px;
    background-image: url("Scrollbars/top-stepper.png");
}

scrollbar.vertical button.up:active {
    background-image: url("Scrollbars/top-stepper-active.png");
}

scrollbar.vertical button.down,
scrollbar.vertical button.down:hover,
scrollbar.vertical button.down:disabled {
    min-height: 15px;
    background-image: url("Scrollbars/bottom-stepper.png");
}

scrollbar.vertical button.down:active {
    background-image: url("Scrollbars/bottom-stepper-active.png");
}

scrollbar.horizontal button.up,
scrollbar.horizontal button.up:hover,
scrollbar.horizontal button.up:disabled {
    min-width: 15px;
    background-image: url("Scrollbars/left-stepper.png");
}

scrollbar.horizontal button.up:active {
    min-width: 15px;
    background-image: url("Scrollbars/left-stepper-active.png");
}

scrollbar.horizontal button.down,
scrollbar.horizontal button.down:hover,
scrollbar.horizontal button.down:disabled {
    background-image: url("Scrollbars/right-stepper.png");
}

scrollbar.horizontal button.down:active {
    background-image: url("Scrollbars/right-stepper-active.png");
}

scrollbar,
scrollbar.horizontal trough,
scrollbar.vertical trough {
    border: none;
    box-shadow: none;
    border-radius: 0;
}

scrollbar trough,
scrollbar.vertical trough {
    background-color: @theme_bg_color;
    border: 1px inset black;
}

scrollbar slider,
scrollbar slider:hover,
scrollbar slider:active {
    border: 3px solid transparent;
    border-radius: 0;
    border-image-repeat: stretch;
    min-width: 10px;
    min-height: 10px;
    box-shadow: none;
    background: none;
}

scrollbar slider,
scrollbar.vertical slider,
scrollbar.vertical .slider,
scrollbar slider:hover,
scrollbar.vertical slider,
scrollbar.vertical .slider:hover,
scrollbar slider:active,
scrollbar.vertical slider,
scrollbar.vertical .slider:active {
    border-image: url("Scrollbars/slider-vert.png");
    border-image-slice: 3 3 3 3;
}

scrollbar.horizontal slider,
scrollbar.horizontal .slider,
scrollbar.horizontal .slider:hover,
scrollbar.horizontal .slider:active {
    border-image: url("Scrollbars/slider-horiz.png");
    border-image-slice: 3 3 3 3;
}

scrollbar slider,
scrollbar slider.fine-tune {
    margin: 0px;
    min-width: 10px;
    min-height: 10px;
}

  scrollbar.overlay-indicator:not(.dragging):not(.hovering) {
    opacity: 1;
    margin: 0;
    background-color: @theme_bg_color; }
    scrollbar.overlay-indicator:not(.dragging):not(.hovering) slider {
      margin: 0;
      min-width: 10px;
      min-height: 10px;
      border-image: url('Scrollbars/slider-vert.png') 4 4 4 4;
      background-color: @theme_bg_color; }
    scrollbar.overlay-indicator:not(.dragging):not(.hovering) button {
      min-width: 10px;
      min-height: 10px;
      background-color: @theme_bg_color;
      background-clip: padding-box;
      border-radius: 0;
      border: none /*1px solid shade(@theme_bg_color, 0.8)*/;
      -gtk-icon-source: none; }
    scrollbar.overlay-indicator:not(.dragging):not(.hovering).horizontal slider {
      margin: 0;
      min-width: 40px; }
    scrollbar.overlay-indicator:not(.dragging):not(.hovering).horizontal button {
      margin: 0;
      min-width: 15px; }
    scrollbar.overlay-indicator:not(.dragging):not(.hovering).vertical slider {
      margin: 0;
      min-height: 40px; }
    scrollbar.overlay-indicator:not(.dragging):not(.hovering).vertical button {
      margin: 0;
      min-height: 15px; }
  scrollbar.overlay-indicator.dragging, scrollbar.overlay-indicator.hovering {
    opacity: 1; }
  scrollbar.horizontal slider {
    min-width: 40px; }
  scrollbar.vertical slider {
    min-height: 40px; }
treeview ~ scrollbar.vertical {
  margin-top: -1px; }


/*************
* separators *
**************/

separator,
.separator,
separator,
.separator.vertical {
    -GtkWidget-wide-separators: 1;
    -GtkWidget-separator-width: 1;
    -GtkWidget-separator-height: 1;
    border: 1px solid @separator_color;
}

combobox separator,
.separator {
    /* always disable separators */
    -GtkWidget-wide-separators: 1;
    -GtkWidget-horizontal-separator: 0;
    -GtkWidget-vertical-separator: 0;
}

treeview separator {
    color: @separator_color;
}

menuitemseparator,
.separator,
GtkMenuButton menuitemseparator,
.separator {
    -GtkWidget-wide-separators: true;
    -GtkWidget-separator-height: 1;
    border: 1px solid @separator_color;
}

.primary-toolbar GtkSeparatorToolItem,
.primary-toolbar separator,
.separator {
    -GtkWidget-window-dragging: true;
    border: 1px solid @separator_color;
}

button separator,
.separator {
    border-color: transparent;
}

/***********
 * sidebar *
 ***********/

.sidebar,
.sidebar .view,
placessidebar .view,
.sidebar GtkScrolledWindow {
    background-color: @sidebar_bg;
}

.sidebar radio,
.sidebar radio:focus,
.sidebar radio:selected {
    background-color: transparent;
    background-image: none;
}

placessidebar > viewport.frame {
  border-style: none; }
placessidebar row {
  min-height: 36px;
  padding: 0px; }
  placessidebar row > revealer {
    padding: 0 14px; }
  placessidebar row image.sidebar-icon {
    opacity: 0.7; }
    placessidebar row image.sidebar-icon:dir(ltr) {
      padding-right: 8px; }
    placessidebar row image.sidebar-icon:dir(rtl) {
      padding-left: 8px; }
  placessidebar row label.sidebar-label:dir(ltr) {
    padding-right: 2px; }
  placessidebar row label.sidebar-label:dir(rtl) {
    padding-left: 2px; }
  button.sidebar-button {
    min-height: 26px;
    min-width: 26px;
    margin-top: 3px;
    margin-bottom: 3px;
    padding: 0;
    border-radius: 100%;
    -gtk-outline-radius: 100%; }


/**************
 * spinbutton *
 **************/

spinbutton {
    color: @arrow;
    padding: 3px;
    border-width: 2px;
    border-radius: 0;
    box-shadow: none;
    border-image: url("Button/entry-button.png");
    border-image-slice: 2 2 2 2;
    background-color: @theme_bg_color;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

spinbutton:hover {
    border-width: 2px;
    border-radius: 0;
    box-shadow: none;
    border-image: url("Button/entry-button-hover.png");
    border-image-slice: 2 2 2 2;
    background-color: @theme_bg_color;
}

spinbutton:active {
    border-width: 2px;
    border-radius: 0;
    box-shadow: none;
    border-image: url("Button/entry-button-active.png");
    border-image-slice: 2 2 2 2;
    background-color: @theme_bg_color;
}

spinbutton:disabled {
    color: @arrow_insensitive;
    border-width: 2px;
    border-radius: 0;
    box-shadow: none;
    border-image: url("Button/entry-button-insensitive.png");
    border-image-slice: 2 2 2 2;
    background-color: shade(@theme_bg_color, 1.1);
}

spinbutton.vertical button {
    color: @button_fg;
}

spinbutton.vertical button:disabled,
spinbutton.vertical entry:disabled {
    color: @insensitive_fg_color;
}


/*********************
 * Spinner Animation *
 *********************/
@keyframes spin {
  to {
    -gtk-icon-transform: rotate(1turn); } }
spinner {
  background: none;
  opacity: 0;
  -gtk-icon-source: -gtk-icontheme("process-working-symbolic"); }
  spinner:checked {
    opacity: 1;
    animation: spin 1s linear infinite; }
    spinner:checked:disabled {
      opacity: 0.5; }

/*************
 * statusbar *
 *************/

GtkStatusbar {
    -GtkStatusbar-shadow-type: none;
    padding: 1px;
    color: @theme_fg_color;
}

/**********
 * switch *
 **********/
switch {
    -switch-slider-width: 35px;
    font-size: smaller;
    background-color: @theme_bg_color;
    padding: 0;
    color: @button_fg;
    box-shadow: inset 2px 2px black, inset -1px -1px white;
    border-radius: 3px;
}

switchtrough:disabled,
switchtrough:disabled:active {
    color: @insensitive_fg_color;
}

switch slider {
    padding: 0;
    border-radius: 3px;
}

/*******************
 * symbolic images *
 *******************/

image,
image:hover {
    color: @internal_element_color;
}

image:selected,
image:selected:hover {
    color: @theme_selected_fg_color;
}

/************
 * textview *
 ************/

GtkTextView {
    background-color: @theme_base_color;
    color: @theme_text_color;
}

/* Firefox adress bar */
label.separator {
  color: @theme_fg_color; }
  label.separator:backdrop {
    color: @insensitive_fg_color; }
label selection {
  background-color: @theme_selected_bg_color;
  color: @theme_selected_fg_color; }
label:disabled {
  color: @insensitive_fg_color; }
  label:disabled:backdrop {
    color: shade(@theme_unfocused_fg_color, 1.1); }
label:backdrop {
  color: @insensitive_fg_color; }

.view:selected:focus, iconview:selected:focus, .view:selected, iconview:selected,
.view text:selected:focus,
iconview text:selected:focus,
textview text:selected:focus,
.view text:selected,
iconview text:selected,
textview text:selected, .view text selection:focus, iconview text selection:focus, .view text selection, iconview text selection,
textview text selection:focus,
textview text selection, flowbox flowboxchild:selected, spinbutton:not(.vertical) selection:focus, spinbutton:not(.vertical) selection,
entry selection:focus,
entry selection, modelbutton.flat:selected, popover.background checkbutton:selected,
popover.background radiobutton:selected,
.menuitem.button.flat:selected, treeview.view:selected:focus, treeview.view:selected, row:selected, calendar:selected {
  background-color: @theme_selected_bg_color;
  color: @theme_selected_fg_color; }

/***********
 * toolbar *
 ***********/

toolbar {
    border: none;
    background-image: none;
    background-color: @theme_bg_color;
    box-shadow: none;
    padding: 4px;
}

toolbarmenubar {
    -GtkToolbar-button-relief: normal;
}

.primary-toolbar toolbar,
.primary-toolbartoolbar {
    -GtkWidget-window-dragging: true;
    -GtkToolbar-button-relief: normal;
}

.primary-toolbar toolbar:disabled,
.primary-toolbartoolbar:disabled {
    text-shadow: none;
}

.primary-toolbar toolbar separator,
.separator,
.primary-toolbartoolbar separator,
.separator {
    -GtkWidget-window-dragging: true;
}

.inline-toolbartoolbar,
.inline-toolbar toolbar {
    -GtkToolbar-button-relief: normal;
    padding: 3px;
}

/***********
 * tooltip *
 ***********/

tooltip,
tooltip {
    padding: 4px;
    border: 1px solid @theme_tooltip_borders;
    border-radius: 0;
    background-color: @theme_tooltip_bg_color;
    color: @theme_tooltip_fg_color;    
}

tooltip *,
tooltip,
tooltip * {
    background-color: transparent;
}

/************
 * treeview *
 ************/

treeview {
    -treeview-vertical-separator: 2;
    -GtkWidget-focus-padding: 0;
    -GtkWidget-focus-line-width: 1;
}

treeview.dnd {
    border: 1px solid shade(@theme_selected_bg_color, 1.2);
    border-radius: 3px;
}

treeview entry {
    padding: 3px;
    color: @theme_text_color;
}

treeview entry selection,
entry:selected,
treeview entry selection,
entry:selected:focus {
    background-color: @theme_selected_bg_color;
}

treeview row:nth-child(even)
treeview row:nth-child(odd) {
    background-color: @theme_base_color;
}

/************
 * viewport *
 ************/

GtkViewport {
    background-color: transparent;
}

.view {
    background-color: @theme_base_color;
    color: @theme_text_color;
}

.view:selected,
.view:selected:focus {
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

.view:selected:backdrop,
.view:selected:backdrop:focus {
    background-color: @theme_bg_color;
    color: @theme_fg_color;
}

.view:disabled {
    background-color: shade(@theme_base_color, 0.95);
    color: shade(@insensitive_fg_color, 1.3);
}

/*************
 * evolution *
 *************/

GtkHTML {
    background-color: @theme_base_color;
    color: @theme_fg_color;
}

GtkHTML:active {
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

/*************
 * Gucharmap *
 *************/

GucharmapChartable {
    background-color: @theme_base_color;
}

GucharmapChartable:active,
GucharmapChartable:focus,
GucharmapChartable:selected {
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

/************
 * terminal *
 ************/

TerminalScreen {
    -TerminalScreen-background-darkness: 1.0;
    background-color: black;
    color: white;
}

TerminalWindow GtkNotebooknotebook {
    border-bottom-width: 0;
    border-right-width: 0;
    border-left-width: 0;
}

.nautilus-canvas-item {
    border-radius: 0;
}

.nautilus-desktop.nautilus-canvas-item {
    color: @desktop_item_fg;
    text-shadow: 1px 1px @desktop_item_text_shadow;
}

.nautilus-desktop.nautilus-canvas-item:active {
    background-color: @desktop_item_selected_fg;
    background-image: none;
    color: @theme_fg_color;
}

.nautilus-desktop.nautilus-canvas-item:selected {
    background-color: @theme_selected_bg_color;
    background-image: none;
    color: @theme_selected_fg_color;
}

.nautilus-desktop.nautilus-canvas-item:active,
.nautilus-desktop.nautilus-canvas-item:prelight,
.nautilus-desktop.nautilus-canvas-item:selected {
    text-shadow: none;
}

/********
 * Nemo *
 ********/
 
NemoTrashBar.info,
NemoXContentBar.info,
NemoQueryEditortoolbar.primary-toolbar {
    background-color: @theme_bg_color;
    background-image: none;
    color: @theme_fg_color;
    text-shadow: none;
    border: none;
    box-shadow: inset 1px 1px alpha(white, 0.6),
                inset -1px -1px alpha(black, 0.2);
}

NemoSearchBar.info {
  color: @theme_fg_color;
    background-color: @nemo_searchbar_bg_color;
    border: 1px solid @borders_color;
    border-width: 0px 0px 1px 0px;
}

NemoWindow .sidebar .view,
placessidebar .view {
    -GtkWidget-focus-padding: 0;
    -GtkWidget-focus-line-width: 1;
    -treeview-vertical-separator: 0;
}

NemoWindow .sidebar expander:selected {
    border: none;
    color: @theme_fg_color;
}

NemoPlacesTreeView {
    -NemoPlacesTreeView-disk-full-bg-color: mix(white, @nemo_places_bg_color, 0.55);
    -NemoPlacesTreeView-disk-full-fg-color: mix(white, @nemo_places_bg_color, 0.10);
    -NemoPlacesTreeView-disk-full-bar-width: 2px;
    -NemoPlacesTreeView-disk-full-bar-radius: 1px;
    -NemoPlacesTreeView-disk-full-bottom-padding: 1px;
    -NemoPlacesTreeView-disk-full-max-length: 70px;
}

NemoPlacesTreeView:selected {
    -NemoPlacesTreeView-disk-full-bg-color: mix(white, @nemo_places_bg_color, 0.45);
    -NemoPlacesTreeView-disk-full-fg-color: mix(white, @nemo_places_bg_color, 0.00);
}

NemoWindow > GtkGrid > paned > separator {
    background-color: transparent;
}

.nemo-canvas-item {
    border-radius: 0;
}

.nemo-desktop.nemo-canvas-item {
    color: @desktop_item_fg;
    text-shadow: none;
}

.nemo-desktop.nemo-canvas-item:selected {
    background-color: @theme_selected_bg_color;
    background-image: none;
    color: @theme_selected_fg_color;
    text-shadow: none;
}

/* notebook */

NemoViewframe,
NemoNotebooknotebook {
    border: solid;
    border-width: 1px 0 0 1px;
    border-width: 1px 0 0 1px;
    border-color: @notebook_borders_color;
}

/* inactive pane */

.nemo-inactive-pane .view {
    background-color: shade(@theme_base_color, 0.93);
    color: shade(@theme_fg_color, 1.2);
}

.nemo-inactive-pane .view:selected,
.nemo-inactive-pane .nautilus-canvas-item:selected {
    background-color: alpha(@theme_selected_bg_color, 0.85);
    color: @theme_selected_fg_color;
}

/* small buttons on the nemo status bar */

NemoWindow GtkStatusbar {
    padding: 0;
}

NemoWindow toolbar buttonimage-button {
    -GtkWidget-focus-line-width: 0;
    -GtkWidget-focus-padding: 0;
    padding: 10px;
}

/* the fix above for the statusbar buttons also affects the primary toolbar so we need to reset the
    padding for those buttons */

NemoWindow .primary-toolbartoolbar buttonimage-button {
    padding: 4px 7px 5px;
}

NemoWindow .sidebar row {
    color: #000080;
}

NemoWindow .sidebar row:selected {
    color: @theme_fg_color;
}

NemoWindow .sidebar frame {
    border-width: 0px;
}

NemoWindow .sidebar .vertical .view {
    background-color: @nemo_places_bg_color;
    color: @theme_fg_color;
}

NemoWindow .sidebar .vertical .view row:selected,
NemoWindow .sidebar .vertical .view row:selected:backdrop {
    background-color: @theme_selected_bg_color;
    color: white;
}

/*********************
 * Cinnamon Settings *
 *********************/

.section-bg {
    background-color: @notebook_bg;
    box-shadow: inset -1px 0 @notebook_borders_color,
                inset 1px 0 @notebook_borders_color,
                inset 0 1px @notebook_borders_color,
                inset 0 -1px @notebook_borders_color;
}

.cs-header {
    /* see backgrounds under toolbars */
}

/************
 * ubiquity *
 ************/

.ubiquity-menubar {
    background-color: #3F3F3F;
    color: #EEEEEE;
}
