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

499 lines
12 KiB
CSS
Raw Normal View History

2015-02-27 23:30:26 +01:00
/* Copyright 2015 Sam Hewitt.
2014-12-13 18:48:16 +01: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/.
*/
/**************
* Header Bar *
**************/
2014-12-15 04:19:51 +01:00
.header-bar {
2014-12-18 19:08:32 +01:00
padding-left: 6px;
padding-right: 6px;
2015-04-09 19:30:59 +02:00
border-radius: 0px;
2014-12-20 00:51:20 +01:00
background-image: none;
2014-12-13 18:48:16 +01:00
background-color: @header;
color: @header_text;
2015-04-09 19:30:59 +02:00
box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.1);
}
.maximized .header-bar {
border-radius: 0px;
box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.1);
2014-12-13 18:48:16 +01:00
}
2014-12-15 04:19:51 +01:00
.header-bar:backdrop {
2014-12-20 00:51:20 +01:00
background-image: none;
2014-12-13 18:48:16 +01:00
background-color: @backdrop_header;
color: @backdrop_header_text;
box-shadow: none;
}
2014-12-15 18:09:13 +01:00
.header-bar *:insensitive {
color: @insensitive_header_text;
}
2014-12-13 18:48:16 +01:00
/* Title */
.header-bar .title {
2014-12-16 20:14:43 +01:00
padding-left: 13px;
padding-right: 13px;
2014-12-13 18:48:16 +01:00
font: Bold 11;
color: @header_text;
}
.header-bar .title:backdrop {
color: @backdrop_header_text;
}
2015-02-27 21:08:13 +01:00
2014-12-13 18:48:16 +01:00
/* Subtitle */
.header-bar .subtitle {
font: 9;
2015-01-31 22:57:26 +01:00
}
2015-02-27 21:08:13 +01:00
.header-bar .subtitle,
.header-bar .subtitle GtkLabel,
.header-bar .subtitle GtkImage {
color: alpha(@header_text, 0.8);
2014-12-13 18:48:16 +01:00
}
2015-02-27 21:08:13 +01:00
.header-bar .subtitle:backdrop,
.header-bar .subtitle:backdrop GtkLabel,
.header-bar .subtitle:backdrop GtkImage {
color: alpha(@backdrop_header_text,0.8);
}
2014-12-15 04:19:51 +01:00
2014-12-16 20:14:43 +01:00
/* Separator */
.header-bar .separator {
2014-12-18 03:01:33 +01:00
background: none;
2014-12-16 20:14:43 +01:00
color: transparent;
}
2014-12-18 05:18:40 +01:00
/**********************
* Header bar buttons *
**********************/
2014-12-19 22:18:26 +01:00
.header-bar .button {
2015-04-09 19:30:59 +02:00
border: none;
padding: 12px 15px;
2014-12-19 22:18:26 +01:00
}
2014-12-15 04:19:51 +01:00
2014-12-16 20:14:43 +01:00
.header-bar .flat,
2014-12-13 18:48:16 +01:00
.header-bar .button,
2014-12-18 05:18:40 +01:00
.header-bar .title,
.header-bar .titlebutton,
.header-bar .linked,
2014-12-15 04:19:51 +01:00
.header-bar .text-button,
2014-12-18 05:18:40 +01:00
.header-bar .image-button {
background-color: transparent;
2014-12-19 21:47:55 +01:00
background-image: none;
2014-12-19 02:06:29 +01:00
box-shadow: none;
2014-12-18 19:08:32 +01:00
transition: all 300ms cubic-bezier(0.3, 0.5, 0.5, 0.9);
2014-12-13 18:48:16 +01:00
}
2014-12-15 04:19:51 +01:00
/* Normal Button */
2014-12-18 05:18:40 +01:00
.header-bar .button,
2014-12-15 04:19:51 +01:00
.header-bar .text-button,
2014-12-18 05:18:40 +01:00
.header-bar .titlebutton,
.header-bar .linked,
2014-12-16 20:14:43 +01:00
.header-bar .flat,
2014-12-18 05:18:40 +01:00
.header-bar .suggested-action .button,
.header-bar .image-button {
background-color: transparent;
2014-12-19 21:47:55 +01:00
background-image: none;
2014-12-13 18:48:16 +01:00
border-radius: 0px;
border: none;
2014-12-19 02:06:29 +01:00
box-shadow: none;
2014-12-18 05:36:56 +01:00
outline: none;
2014-12-13 18:48:16 +01:00
color: @header_text;
}
2014-12-15 04:19:51 +01:00
/* Active Button */
2014-12-18 05:18:40 +01:00
.header-bar .button:active,
2014-12-15 04:19:51 +01:00
.header-bar .text-button:active,
2014-12-18 05:18:40 +01:00
.header-bar .titlebutton:active,
.header-bar .linked:active,
2014-12-16 20:14:43 +01:00
.header-bar .flat:active,
2014-12-18 05:18:40 +01:00
.header-bar .suggested-action .button:active,
.header-bar .image-button:active {
2014-12-15 04:19:51 +01:00
border-radius: 0px;
2014-12-18 05:18:40 +01:00
background-color: alpha(#000, 0.1);
2014-12-19 21:47:55 +01:00
background-image: none;
2014-12-13 18:48:16 +01:00
border: none;
2014-12-18 05:36:56 +01:00
outline: none;
2014-12-13 18:48:16 +01:00
color: @header_text;
box-shadow: inset 0 -2px 0 0 @header_text;
}
2014-12-19 02:06:29 +01:00
.header-bar .text-button:active {
font: Bold;
}
/* Checked Button */
.header-bar .button:checked,
.header-bar .text-button:checked,
.header-bar .titlebutton:checked,
.header-bar .linked:checked,
.header-bar .flat:checked,
.header-bar .suggested-action .button:checked,
.header-bar .image-button:checked {
border-radius: 0px;
2014-12-19 21:47:55 +01:00
background-image: none;
2014-12-19 02:06:29 +01:00
border: none;
outline: none;
color: @header_text;
box-shadow: inset 0 -2px 0 0 @header_text;
}
.header-bar .text-button:checked {
font: Bold;
}
2014-12-15 04:19:51 +01:00
/* Focus Button */
2014-12-18 05:18:40 +01:00
.header-bar .button:focus,
2014-12-15 04:19:51 +01:00
.header-bar .text-button:focus,
2014-12-18 05:18:40 +01:00
.header-bar .titlebutton:focus,
.header-bar .linked:focus,
2014-12-16 20:14:43 +01:00
.header-bar .flat:focus,
2014-12-18 05:18:40 +01:00
.header-bar .suggested-action .button:focus,
.header-bar .image-button:focus {
2014-12-15 04:19:51 +01:00
border-radius: 0px;
2014-12-18 05:18:40 +01:00
background-color: transparent;
2014-12-19 21:47:55 +01:00
background-image: none;
2014-12-13 18:48:16 +01:00
border: none;
2014-12-18 05:36:56 +01:00
outline: none;
2014-12-15 04:19:51 +01:00
color: @header_text;
2014-12-13 18:48:16 +01:00
box-shadow: inset 0 -2px 0 0 @header_text;
}
2014-12-15 04:19:51 +01:00
/* Hover Button */
2014-12-18 05:18:40 +01:00
.header-bar .button:hover,
2014-12-15 04:19:51 +01:00
.header-bar .text-button:hover,
2014-12-18 05:18:40 +01:00
.header-bar .titlebutton:hover,
.header-bar .linked:hover,
2014-12-16 20:14:43 +01:00
.header-bar .flat:hover,
2014-12-18 05:18:40 +01:00
.header-bar .suggested-action .button:hover,
.header-bar .image-button:hover {
2014-12-15 04:19:51 +01:00
border-radius: 0px;
2014-12-18 03:01:33 +01:00
background-color: alpha(#000, 0.1);
2014-12-19 21:47:55 +01:00
background-image: none;
2014-12-13 18:48:16 +01:00
border: none;
2014-12-18 05:36:56 +01:00
outline: none;
2014-12-18 03:01:33 +01:00
box-shadow: inset 0 -2px 0 0 @header_text;
2014-12-13 18:48:16 +01:00
color: @header_text;
}
2014-12-15 04:19:51 +01:00
/* Backdrop Button */
2014-12-18 05:18:40 +01:00
.header-bar .button:backdrop,
2014-12-15 04:19:51 +01:00
.header-bar .text-button:backdrop,
2014-12-18 05:18:40 +01:00
.header-bar .titlebutton:backdrop,
.header-bar .linked:backdrop,
2014-12-16 20:14:43 +01:00
.header-bar .flat:backdrop,
2014-12-18 05:18:40 +01:00
.header-bar .suggested-action .button:backdrop,
.header-bar .image-button:backdrop {
2014-12-15 04:19:51 +01:00
border-radius: 0px;
2014-12-18 05:18:40 +01:00
background-color: transparent;
2014-12-19 21:47:55 +01:00
background-image: none;
2014-12-15 18:09:13 +01:00
border: none;
2014-12-19 02:06:29 +01:00
box-shadow: none;
2014-12-18 05:36:56 +01:00
outline: none;
2014-12-15 18:09:13 +01:00
color: @backdrop_header_text;
}
2015-03-09 07:53:18 +01:00
/* *:Backdrop Button */
.header-bar .button:hover:backdrop,
.header-bar .text-button:hover:backdrop,
.header-bar .titlebutton:hover:backdrop,
.header-bar .linked:hover:backdrop,
.header-bar .flat:hover:backdrop,
.header-bar .suggested-action .button:hover:backdrop,
.header-bar .image-button:hover:backdrop,
.header-bar .button:checked:backdrop,
.header-bar .text-button:checked:backdrop,
.header-bar .titlebutton:checked:backdrop,
.header-bar .linked:checked:backdrop,
.header-bar .flat:checked:backdrop,
.header-bar .suggested-action .button:checked:backdrop,
.header-bar .image-button:checked:backdrop,
.header-bar .button:focus:backdrop,
.header-bar .text-button:focus:backdrop,
.header-bar .titlebutton:focus:backdrop,
.header-bar .linked:focus:backdrop,
.header-bar .flat:focus:backdrop,
.header-bar .suggested-action .button:focus:backdrop,
.header-bar .image-button:focus:backdrop,
2014-12-18 05:18:40 +01:00
.header-bar .button:active:backdrop,
2014-12-15 04:19:51 +01:00
.header-bar .text-button:active:backdrop,
2014-12-18 05:18:40 +01:00
.header-bar .titlebutton:active:backdrop,
.header-bar .linked:active:backdrop,
2014-12-16 20:14:43 +01:00
.header-bar .flat:active:backdrop,
2014-12-18 05:18:40 +01:00
.header-bar .suggested-action .button:active:backdrop,
.header-bar .image-button:active:backdrop {
2014-12-15 04:19:51 +01:00
border-radius: 0px;
2014-12-18 05:18:40 +01:00
background-color: transparent;
2014-12-19 21:47:55 +01:00
background-image: none;
2014-12-13 18:48:16 +01:00
border: none;
2014-12-18 05:36:56 +01:00
outline: none;
2014-12-13 18:48:16 +01:00
color: @backdrop_header_text;
box-shadow: inset 0 -2px 0 0 @backdrop_header_text;
}
2014-12-19 02:06:29 +01:00
.header-bar .text-button:active:backdrop {
font: Bold;
}
2014-12-18 05:36:56 +01:00
/* Backdrop:Hover Button */
2014-12-18 05:18:40 +01:00
.header-bar .button:backdrop:hover,
2014-12-15 04:19:51 +01:00
.header-bar .text-button:backdrop:hover,
2014-12-18 05:18:40 +01:00
.header-bar .titlebutton:backdrop:hover,
.header-bar .linked:backdrop:hover,
2014-12-16 20:14:43 +01:00
.header-bar .flat:backdrop:hover,
2014-12-18 05:18:40 +01:00
.header-bar .suggested-action .button:backdrop:hover,
.header-bar .image-button:backdrop:hover {
background-color: transparent;
2014-12-19 21:47:55 +01:00
background-image: none;
2014-12-15 04:19:51 +01:00
border-radius: 0px;
border: none;
2014-12-18 05:36:56 +01:00
outline: none;
2014-12-18 03:01:33 +01:00
box-shadow: inset 0 -2px 0 0 @backdrop_header_text;
2014-12-15 04:19:51 +01:00
color: @backdrop_header_text;
2014-12-13 18:48:16 +01:00
}
2014-12-15 04:19:51 +01:00
/* Insensitive Button */
2014-12-18 05:18:40 +01:00
.header-bar .button:insensitive,
2014-12-15 04:19:51 +01:00
.header-bar .text-button:insensitive,
2014-12-18 05:18:40 +01:00
.header-bar .titlebutton:insensitive,
.header-bar .linked:insensitive,
2014-12-16 20:14:43 +01:00
.header-bar .flat:insensitive,
2014-12-18 05:18:40 +01:00
.header-bar .suggested-action .button:insensitive,
.header-bar .image-button:insensitive {
background-color: transparent;
2014-12-19 21:47:55 +01:00
background-image: none;
2014-12-15 04:19:51 +01:00
border-radius: 0px;
2014-12-13 18:48:16 +01:00
border: none;
2014-12-19 02:06:29 +01:00
box-shadow: none;
2014-12-18 05:36:56 +01:00
outline: none;
color: @insensitive_header_text;
}
/* Insensitive:Backdrop Button */
.header-bar .button:insensitive:backdrop,
.header-bar .text-button:insensitive:backdrop,
.header-bar .titlebutton:insensitive:backdrop,
.header-bar .linked:insensitive:backdrop,
.header-bar .flat:insensitive:backdrop,
.header-bar .suggested-action .button:insensitive:backdrop,
.header-bar .image-button:insensitive:backdrop {
border-radius: 0px;
background-color: transparent;
2014-12-19 21:47:55 +01:00
background-image: none;
2014-12-18 05:36:56 +01:00
border: none;
outline: none;
2014-12-13 18:48:16 +01:00
color: @insensitive_header_text;
}
2014-12-18 05:18:40 +01:00
2014-12-16 20:14:43 +01:00
/* Button Images */
.header-bar .button GtkImage,
.header-bar .button GtkImage:active,
.header-bar .button GtkImage:focus,
.header-bar .button GtkImage:hover {
color: @header_text;
}
.header-bar .button GtkImage:active:backdrop,
.header-bar .button GtkImage:backdrop,
.header-bar .button GtkImage:backdrop:hover {
color: @backdrop_header_text;
-gtk-image-effect: dim;
}
.header-bar .button GtkImage:insensitive {
color: @insensitive_header_text;
-gtk-image-effect: dim;
}
2014-12-13 18:48:16 +01:00
2014-12-18 03:01:33 +01:00
.header-bar .button GtkImage:insensitive:backdrop {
color: mix(@backdrop_toolbar_text, @insensitive_toolbar_text, 0.5);
-gtk-image-effect: dim;
}
/* Button Labels */
.header-bar .button GtkLabel,
.header-bar .button GtkLabel:active,
.header-bar .button GtkLabel:focus,
.header-bar .button GtkLabel:hover {
color: @header_text;
}
.header-bar .button GtkLabel:active:backdrop,
.header-bar .button GtkLabel:backdrop,
.header-bar .button GtkLabel:backdrop:hover {
color: @backdrop_header_text;
-gtk-image-effect: dim;
}
.header-bar .button GtkLabel:insensitive {
color: @insensitive_header_text;
-gtk-image-effect: dim;
}
.header-bar .button GtkLabel:insensitive:backdrop {
color: mix(@backdrop_toolbar_text, @insensitive_toolbar_text, 0.5);
-gtk-image-effect: dim;
}
2014-12-13 18:48:16 +01:00
/*************************
* Header bar separator *
*************************/
.header-bar > GtkBox > .separator.vertical {
-GtkWidget-wide-separators: 1;
-GtkWidget-separator-width: 0;
2014-12-17 03:13:11 +01:00
background-color: @separator;
color: @separator;
2014-12-13 18:48:16 +01:00
border:none;
}
2014-12-17 03:13:11 +01:00
/* Separator */
2014-12-13 18:48:16 +01:00
.header-bar .separator,
.header-bar .button .separator,
.header-bar .button.separator {
2014-12-18 03:01:33 +01:00
background: none;
2014-12-15 04:19:51 +01:00
color: transparent;
2014-12-13 18:48:16 +01:00
border:none;
2014-12-17 03:13:11 +01:00
}
2014-12-13 18:48:16 +01:00
/********************
* Header bar entry *
********************/
.header-bar .entry {
2014-12-18 03:01:33 +01:00
background: none;
2014-12-13 18:48:16 +01:00
color: @header_text;
2015-03-15 07:06:07 +01:00
padding: 13px;
border-radius: 0px;
border: 1px solid transparent;
2014-12-18 05:36:56 +01:00
outline: none;
2015-03-15 07:06:07 +01:00
box-shadow: none;
2014-12-13 18:48:16 +01:00
}
.header-bar .entry:active,
.header-bar .entry:focus {
2014-12-18 03:01:33 +01:00
background: none;
2014-12-13 18:48:16 +01:00
color: @header_text;
border: none;
2014-12-18 05:36:56 +01:00
outline: none;
2014-12-13 18:48:16 +01:00
}
.header-bar .entry:backdrop {
2014-12-18 03:01:33 +01:00
background: none;
2014-12-13 18:48:16 +01:00
color: @backdrop_header_text;
border: none;
2014-12-18 05:36:56 +01:00
outline: none;
2014-12-13 18:48:16 +01:00
}
2015-03-15 07:06:07 +01:00
.header-bar .entry:selected,
.header-bar .entry:selected:focus {
color: @header;
background-color: @header_text;
}
2014-12-13 18:48:16 +01:00
.header-bar .entry.image {
color: @insensitive_base;
}
.header-bar .entry.image.left {
padding-right: 6px;
color: @header_text;
}
/*********************
* Header bar switch *
*********************/
.header-bar GtkSwitch {
border-radius: 1em;
2015-02-27 23:30:26 +01:00
font: bold;
2014-12-13 18:48:16 +01:00
}
/* Trough */
.header-bar GtkSwitch.trough {
2015-03-15 20:19:59 +01:00
background: none;
border: none;
2015-02-27 23:30:26 +01:00
background-color: alpha(@header_text, 0.2);
color: @insensitive_header_text;
2015-03-15 20:19:59 +01:00
background-image: none;
2014-12-13 18:48:16 +01:00
}
.header-bar GtkSwitch.trough:active {
2015-03-15 20:19:59 +01:00
background: none;
border: none;
2015-02-27 23:30:26 +01:00
background-color: alpha(@header_text, 0.2);
color: @header_text;
2015-03-15 20:19:59 +01:00
background-image: none;
2014-12-13 18:48:16 +01:00
}
.header-bar GtkSwitch.trough:backdrop,
.header-bar GtkSwitch.trough:active:backdrop {
2015-03-15 20:19:59 +01:00
background: none;
border: none;
2015-02-27 23:30:26 +01:00
background-color: alpha(@header_text, 0.1);
color: @backdrop_header_text;
2015-03-15 20:19:59 +01:00
background-image: none;
2014-12-13 18:48:16 +01:00
}
.header-bar GtkSwitch.trough:insensitive,
.header-bar GtkSwitch.trough:active:insensitive {
2015-02-27 23:30:26 +01:00
background: none;
2015-03-15 20:19:59 +01:00
background: none;
border: none;
2015-02-27 23:30:26 +01:00
color: @insensitive_header_text;
2015-03-15 20:19:59 +01:00
background-image: none;
2014-12-13 18:48:16 +01:00
}
/* Slider */
2015-02-27 23:30:26 +01:00
.header-bar GtkSwitch.slider,
2014-12-13 18:48:16 +01:00
.header-bar GtkSwitch.slider:active {
2015-03-15 20:19:59 +01:00
background: none;
border: none;
2015-02-27 23:30:26 +01:00
background-color: @header_text;
background-image: none;
2015-03-15 20:19:59 +01:00
color: @header_text;
2014-12-13 18:48:16 +01:00
}
.header-bar GtkSwitch.slider:active:insensitive,
.header-bar GtkSwitch.slider:insensitive {
2015-03-15 20:19:59 +01:00
background: none;
border: none;
2015-02-27 23:30:26 +01:00
background-color: @insensitive_header_text;
background-image: none;
2015-03-15 20:19:59 +01:00
color: @insensitive_header_text;
2014-12-13 18:48:16 +01:00
}
.header-bar GtkSwitch.slider:active:backdrop,
.header-bar GtkSwitch.slider:backdrop {
2015-03-15 20:19:59 +01:00
background: none;
border: none;
2015-02-27 23:30:26 +01:00
background-color: @backdrop_header_text;
background-image: none;
2015-03-15 20:19:59 +01:00
color: @backdrop_header_text;
2014-12-13 18:48:16 +01:00
}