/*
 * Copyright (c) 2012 Josh Rickmar <jrick@devio.us>
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

@define-color red #cc0000;
@define-color yellow #ffff66;
@define-color green #99ff66;
@define-color blue lightblue;
@define-color ct_bg #000000;
@define-color ct_inactive #dddddd;
@define-color ct_active #bbbb00;
@define-color ct_separator #555555;

* {
	border-width: 1px;
	padding: 0;
	margin: 0;
	-GtkScrolledWindow-scrollbar-spacing: 0;
	-GtkWidget-line-width: 0;
}

.button,
GtkSpinner {
	-GtkWidget-focus-padding: 0;
	-GtkWidget-line-width: 0;
}

.button :insensitive,
GtkMenu :insensitive {
	background-color: rgba(0,0,0,0); /* transparent */
}

.entry {
	padding: 2px;
	color: @text_color;
}

#vbox > .entry,
#statusbar * {
	border-width: 0px;
}

#statusbar > GtkEventBox {
	background-image: none;
	background-color: white;
}

#statusbar > GtkEventBox .entry {
	background-image: none;
	background-color: rgba(0, 0, 0, 0);
}

GtkEventBox#red,
.entry#red {
	background-image: none;
	background-color: @red;
}

GtkEventBox#yellow,
.entry#yellow {
	background-image: none;
	background-color: @yellow;
}

GtkEventBox#green,
.entry#green {
	background-image: none;
	background-color: @green;
}

GtkEventBox#blue,
.entry#blue {
	background-image: none;
	background-color: @blue;
}

.entry:selected,
.entry:selected#red,
.entry:selected#yellow,
.entry:selected#green,
.entry:selected#blue,
.entry.progressbar,
.entry.progressbar#red,
.entry.progressbar#yellow,
.entry.progressbar#green,
.entry.progressbar#blue,
#statusbar .entry:selected,
#statusbar .entry:selected#red,
#statusbar .entry:selected#yellow,
#statusbar .entry:selected#green,
#statusbar .entry:selected#blue,
#statusbar .entry.progressbar,
#statusbar .entry.progressbar#red,
#statusbar .entry.progressbar#yellow,
#statusbar .entry.progressbar#green,
#statusbar .entry.progressbar#blue {
	background-image: none;
	background-color: @selected_bg_color;
	color: @selected_fg_color;
}

.button#Back,
.button#Forward,
.button#Home,
.button#Stop,
.button#JS-Toggle,
.button#Close {
	border-width: 0;
}

.menuitem {
	padding: 3px;
}

.notebook tab {
	background-color: shade(@bg_color, 0.85);
	color: @fg_color;
	padding: 0px;
}

.notebook tab:active {
	background-color: @bg_color;
}

GtkScrollbar#hidden {
	border-width: 0px;
	-GtkRange-slider-width: 0px;
	-GtkRange-trough-border: 0px;
}

/* compact tabs */

#tab_bar {
	background-color: @ct_separator;
}

#compact_tab {
	background-color: @ct_bg;
}

#compact_tab GtkLabel {
	-GtkLabel-width-chars: 1;
	color: @ct_inactive;
	padding: 4px;
}

#compact_tab GtkLabel#active {
	color: @ct_active;
}
