Files
paper-gtk-theme/Paper/gtk-3.0/widgets/header-bar.css

358 lines
8.3 KiB
CSS
Raw Normal View History

2016-03-16 13:34:25 -04:00
/* Copyright 2016 Sam Hewitt.
2014-12-13 12:48:16 -05:00
*
* This file is part of the Paper GTK theme.
*
* The Paper GTK theme is free software: you can redistribute it
* and/or modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* The Paper GTK theme 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 General
* Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with the Paper GTK theme. If not, see http://www.gnu.org/licenses/.
*/
2015-04-23 21:55:19 -04:00
@define-color backdrop_header_text alpha(@header_text, 0.7);
@define-color insensitive_header_text alpha(@header_text, 0.5);
@define-color backdrop_header_text_dark alpha(@header_text_dark, 0.7);
@define-color insensitive_header_text_dark alpha(@header_text_dark, 0.5);
2014-12-13 12:48:16 -05:00
/**************
* Header Bar *
**************/
2014-12-14 22:19:51 -05:00
.header-bar {
2015-04-09 17:03:00 -04:00
padding:0;
border: none;
2015-04-22 22:13:11 -04:00
border-radius: 4px 4px 0 0;
2014-12-13 12:48:16 -05:00
background-color: @header;
color: @header_text;
2016-03-16 13:34:25 -04:00
box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.1);
2015-04-09 13:30:59 -04:00
}
.maximized .header-bar {
border-radius: 0px;
2015-04-23 10:56:06 -04:00
box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.1);
2015-04-22 22:13:11 -04:00
box-shadow: none;
2014-12-13 12:48:16 -05:00
}
2014-12-14 22:19:51 -05:00
.header-bar:backdrop {
2014-12-19 18:51:20 -05:00
background-image: none;
2014-12-13 12:48:16 -05:00
background-color: @backdrop_header;
color: @backdrop_header_text;
box-shadow: none;
}
2014-12-15 12:09:13 -05:00
.header-bar *:insensitive {
color: @insensitive_header_text;
}
2014-12-13 12:48:16 -05:00
/* Title */
2015-04-26 18:08:22 -04:00
.title,
2014-12-13 12:48:16 -05:00
.header-bar .title {
2015-04-26 18:08:22 -04:00
padding: 0;
2014-12-16 14:14:43 -05:00
padding-left: 13px;
padding-right: 13px;
2015-04-23 22:11:31 -04:00
font: Bold;
2014-12-13 12:48:16 -05:00
color: @header_text;
}
2016-03-16 13:34:25 -04:00
.header-bar > GtkImage {
color: @header_text;
}
.header-bar .button.button.linked .title,
2015-04-26 18:08:22 -04:00
.header-bar .button.flat .title {
padding: 0;
}
2014-12-13 12:48:16 -05:00
.header-bar .title:backdrop {
color: @backdrop_header_text;
}
/* Subtitle */
.header-bar .subtitle {
2015-04-26 18:08:22 -04:00
padding: 0;
2014-12-13 12:48:16 -05:00
font: 9;
2015-01-31 16:57:26 -05:00
}
2015-02-27 15:08:13 -05:00
.header-bar .subtitle,
.header-bar .subtitle GtkLabel,
.header-bar .subtitle GtkImage {
color: alpha(@header_text, 0.8);
2014-12-13 12:48:16 -05:00
}
2015-02-27 15:08:13 -05:00
.header-bar .subtitle:backdrop,
.header-bar .subtitle:backdrop GtkLabel,
.header-bar .subtitle:backdrop GtkImage {
color: alpha(@backdrop_header_text,0.8);
}
2014-12-14 22:19:51 -05:00
2016-03-16 13:34:25 -04:00
/*Images*/
2014-12-16 14:14:43 -05:00
2016-03-16 13:34:25 -04:00
.header-bar GtkImage,
.header-bar *:active GtkImage,
.header-bar *:focus GtkImage,
.header-bar *:hover GtkImage {
color: @header_text;
2014-12-13 12:48:16 -05:00
}
2016-03-16 13:34:25 -04:00
.header-bar *:backdrop GtkImage,
.header-bar *:backdrop:hover GtkImage,
.header-bar *:active:backdrop GtkImage {
color: shade(@header_text, 1.1);
/*-gtk-image-effect: dim;*/
2014-12-13 12:48:16 -05:00
}
2016-03-16 13:34:25 -04:00
.header-bar *:insensitive GtkImage
.header-bar *:insensitive:backdrop GtkImage {
2014-12-13 12:48:16 -05:00
color: @header_text;
2016-03-16 13:34:25 -04:00
-gtk-image-effect: dim;
2014-12-13 12:48:16 -05:00
}
2014-12-18 20:06:29 -05:00
2016-03-16 13:34:25 -04:00
/* Separator */
.header-bar .separator {
2015-06-04 16:04:44 -04:00
background: none;
2016-03-16 13:34:25 -04:00
color: @separator;
2014-12-18 20:06:29 -05:00
}
2016-03-16 13:34:25 -04:00
/* Buttons */
.header-bar .button,
.header-bar .flat,
.header-bar .button.image-button,
.header-bar .button.linked,
.header-bar .suggested-action .button,
.header-bar .button.text-button,
.header-bar .titlebutton {
2014-12-17 23:18:40 -05:00
background-color: transparent;
2014-12-19 15:47:55 -05:00
background-image: none;
2016-03-16 13:34:25 -04:00
border-radius: 0px;
2014-12-13 12:48:16 -05:00
border: none;
2016-03-16 13:34:25 -04:00
box-shadow: none;
padding: 10px 12px;
2014-12-14 22:19:51 -05:00
color: @header_text;
2014-12-13 12:48:16 -05:00
}
2016-03-16 13:34:25 -04:00
/* Buttons (Hover) */
2014-12-17 23:18:40 -05:00
.header-bar .button:hover,
2014-12-16 14:14:43 -05:00
.header-bar .flat:hover,
2016-03-16 13:34:25 -04:00
.header-bar .button.image-button:hover,
.header-bar .button.linked:hover,
2014-12-17 23:18:40 -05:00
.header-bar .suggested-action .button:hover,
2016-03-16 13:34:25 -04:00
.header-bar .button.text-button:hover,
.header-bar .titlebutton:hover {
2014-12-19 15:47:55 -05:00
background-image: none;
2016-03-16 13:34:25 -04:00
border-radius: 0px;
2014-12-13 12:48:16 -05:00
border: none;
2016-03-16 13:34:25 -04:00
box-shadow: none;
background-color: alpha(#000,0.1);
2014-12-13 12:48:16 -05:00
color: @header_text;
}
2016-03-16 13:34:25 -04:00
/* Buttons (Backdrop) */
2014-12-17 23:18:40 -05:00
.header-bar .button:backdrop,
2014-12-16 14:14:43 -05:00
.header-bar .flat:backdrop,
2016-03-16 13:34:25 -04:00
.header-bar .button.image-button:backdrop,
.header-bar .button.linked:backdrop,
2014-12-17 23:18:40 -05:00
.header-bar .suggested-action .button:backdrop,
2016-03-16 13:34:25 -04:00
.header-bar .button.text-button:backdrop,
.header-bar .titlebutton:backdrop {
background: none;
2014-12-19 15:47:55 -05:00
background-image: none;
2014-12-14 22:19:51 -05:00
border-radius: 0px;
border: none;
2016-03-16 13:34:25 -04:00
box-shadow: none;
color: shade(@header_text, 1.1);
2014-12-13 12:48:16 -05:00
}
2016-03-16 13:34:25 -04:00
/* Buttons (Insensitive) */
2014-12-17 23:18:40 -05:00
.header-bar .button:insensitive,
2014-12-16 14:14:43 -05:00
.header-bar .flat:insensitive,
2016-03-16 13:34:25 -04:00
.header-bar .button.image-button:insensitive,
.header-bar .button.linked:insensitive,
2014-12-17 23:18:40 -05:00
.header-bar .suggested-action .button:insensitive,
2016-03-16 13:34:25 -04:00
.header-bar .button.text-button:insensitive,
.header-bar .titlebutton:insensitive {
background: none;
2014-12-19 15:47:55 -05:00
background-image: none;
2014-12-14 22:19:51 -05:00
border-radius: 0px;
2014-12-13 12:48:16 -05:00
border: none;
2014-12-18 20:06:29 -05:00
box-shadow: none;
2016-03-16 13:34:25 -04:00
color: alpha(@header_text, 0.5);
2014-12-17 23:36:56 -05:00
}
2016-03-16 13:34:25 -04:00
/* Buttons (Checked) */
.header-bar .button:checked,
.header-bar .flat:checked,
.header-bar .button.image-button:checked,
.header-bar .button.linked:checked,
.header-bar .suggested-action .button:checked,
.header-bar .button.text-button:checked,
.header-bar .titlebutton:checked {
font: Bold;
2014-12-19 15:47:55 -05:00
background-image: none;
2014-12-17 23:36:56 -05:00
border: none;
2016-03-16 13:34:25 -04:00
border-radius: 0px;
box-shadow: none;
background-color: alpha(#000,0.1);
2015-04-09 17:03:00 -04:00
color: @header_text;
2016-03-16 13:34:25 -04:00
box-shadow:inset 0 -2px 0 0 @header_text;
2015-04-09 17:03:00 -04:00
}
2016-03-16 13:34:25 -04:00
/* Buttons (Active/Focused) */
.header-bar .button:focus,
.header-bar .flat:focus,
.header-bar .button.image-button:focus,
.header-bar .button.linked:focus,
.header-bar .suggested-action .button:focus,
.header-bar .button.text-button:focus,
.header-bar .titlebutton:focus,
.header-bar .button:active,
.header-bar .flat:active,
.header-bar .button.image-button:active,
.header-bar .button.linked:active,
.header-bar .suggested-action .button:active,
.header-bar .button.text-button:active,
.header-bar .titlebutton:active {
background-image: none;
border: none;
border-radius: 0px;
box-shadow: none;
background-color: alpha(#000,0.1);
2014-12-17 21:01:33 -05:00
color: @header_text;
}
2016-03-16 13:34:25 -04:00
/* Separators */
2014-12-13 12:48:16 -05:00
.header-bar > GtkBox > .separator.vertical {
-GtkWidget-wide-separators: 1;
-GtkWidget-separator-width: 0;
2014-12-16 21:13:11 -05:00
background-color: @separator;
color: @separator;
2014-12-13 12:48:16 -05:00
border:none;
}
.header-bar .separator,
.header-bar .button .separator,
.header-bar .button.separator {
2015-04-26 18:08:22 -04:00
background: inherit;
color: @separator;
2014-12-13 12:48:16 -05:00
border:none;
2014-12-16 21:13:11 -05:00
}
2014-12-13 12:48:16 -05:00
2016-03-16 13:34:25 -04:00
/* Entries */
2014-12-13 12:48:16 -05:00
.header-bar .entry {
2014-12-17 21:01:33 -05:00
background: none;
2014-12-13 12:48:16 -05:00
color: @header_text;
2015-03-15 02:06:07 -04:00
border-radius: 0px;
border: 1px solid transparent;
box-shadow: none;
2014-12-13 12:48:16 -05:00
}
.header-bar .entry:active,
.header-bar .entry:focus {
2014-12-17 21:01:33 -05:00
background: none;
2014-12-13 12:48:16 -05:00
color: @header_text;
border: none;
}
.header-bar .entry:backdrop {
2014-12-17 21:01:33 -05:00
background: none;
2014-12-13 12:48:16 -05:00
color: @backdrop_header_text;
border: none;
}
2015-03-15 02:06:07 -04:00
.header-bar .entry:selected,
.header-bar .entry:selected:focus {
color: @header;
background-color: @header_text;
}
2014-12-13 12:48:16 -05:00
.header-bar .entry.image {
color: @insensitive_base;
}
.header-bar .entry.image.left {
padding-right: 6px;
color: @header_text;
}
2016-03-16 13:34:25 -04:00
/* switches */
2014-12-13 12:48:16 -05:00
.header-bar GtkSwitch {
border-radius: 1em;
2015-02-27 17:30:26 -05:00
font: bold;
2014-12-13 12:48:16 -05:00
}
/* Trough */
.header-bar GtkSwitch.trough {
2015-03-15 15:19:59 -04:00
background: none;
border: none;
2015-02-27 17:30:26 -05:00
background-color: alpha(@header_text, 0.2);
color: @insensitive_header_text;
2015-03-15 15:19:59 -04:00
background-image: none;
2014-12-13 12:48:16 -05:00
}
.header-bar GtkSwitch.trough:active {
2015-03-15 15:19:59 -04:00
background: none;
border: none;
2015-02-27 17:30:26 -05:00
background-color: alpha(@header_text, 0.2);
color: @header_text;
2015-03-15 15:19:59 -04:00
background-image: none;
2014-12-13 12:48:16 -05:00
}
.header-bar GtkSwitch.trough:backdrop,
.header-bar GtkSwitch.trough:active:backdrop {
2015-03-15 15:19:59 -04:00
background: none;
border: none;
2015-02-27 17:30:26 -05:00
background-color: alpha(@header_text, 0.1);
color: @backdrop_header_text;
2015-03-15 15:19:59 -04:00
background-image: none;
2014-12-13 12:48:16 -05:00
}
.header-bar GtkSwitch.trough:insensitive,
.header-bar GtkSwitch.trough:active:insensitive {
2015-02-27 17:30:26 -05:00
background: none;
2015-03-15 15:19:59 -04:00
background: none;
border: none;
2015-02-27 17:30:26 -05:00
color: @insensitive_header_text;
2015-03-15 15:19:59 -04:00
background-image: none;
2014-12-13 12:48:16 -05:00
}
/* Slider */
2015-02-27 17:30:26 -05:00
.header-bar GtkSwitch.slider,
2014-12-13 12:48:16 -05:00
.header-bar GtkSwitch.slider:active {
2015-03-15 15:19:59 -04:00
background: none;
border: none;
2015-02-27 17:30:26 -05:00
background-color: @header_text;
background-image: none;
2015-03-15 15:19:59 -04:00
color: @header_text;
2014-12-13 12:48:16 -05:00
}
.header-bar GtkSwitch.slider:active:insensitive,
.header-bar GtkSwitch.slider:insensitive {
2015-03-15 15:19:59 -04:00
background: none;
border: none;
2015-02-27 17:30:26 -05:00
background-color: @insensitive_header_text;
background-image: none;
2015-03-15 15:19:59 -04:00
color: @insensitive_header_text;
2014-12-13 12:48:16 -05:00
}
.header-bar GtkSwitch.slider:active:backdrop,
.header-bar GtkSwitch.slider:backdrop {
2015-03-15 15:19:59 -04:00
background: none;
border: none;
2015-02-27 17:30:26 -05:00
background-color: @backdrop_header_text;
background-image: none;
2015-03-15 15:19:59 -04:00
color: @backdrop_header_text;
2014-12-13 12:48:16 -05:00
}