@charset "UTF-8";

/************
 * Toolbars *
 ************/
%toolbar {
	-GtkWidget-window-dragging: true;
	padding: 4px;
	background-color: gtk("@theme_bg_color");
}
.toolbar, toolbar {
	@extend %toolbar;
	padding: 4px 3px 3px 4px;
	&:backdrop {
		background-color: gtk("@theme_unfocused_bg_color");
		box-shadow: none;
	}
	button {
		margin: 2px;
		padding: 3px;
		&.image-button,
		&.text-button.image-button {
			padding: 3px;
		}
	}
	separator {
		margin-left: 3px;
		margin-right: 3px;
	}
	entry {
		margin: 3px;
	}
	// on OSD
	.osd & {
		background-color: transparent;
	}
	&.osd {
		padding: 13px;
		border: none;
		border-radius: $r;
		background-color: gtk("@theme_bg_color");
		&:backdrop {
			border-color: gtk("@unfocused_borders");
			background-color: gtk("@theme_unfocused_bg_color");
			box-shadow: none;
		}
		&.left,
		&.right,
		&.top,
		&.bottom {
			border-radius: 0;
		} // positional classes for `attached` osd toolbars
	}
}

//searchbar, location-bar & inline-toolbar
.inline-toolbar {
	@extend %toolbar;
	@extend %inset-bar;
	border-width: 0px 0px 1px 0px;
	padding: 3px;
	border-radius: 0;
}
searchbar > revealer > box,
.location-bar {
	@extend %toolbar;
	@extend %inset-bar;
	border-width: 0px 0px 1px 0px;
	padding: 3px;
}

%inset-bar {
	border-style: solid;
	border-color: gtk("@borders");
	text-shadow: none;
	background-color: gtk("@theme_bg_color");
}
