Files
paper-gtk-theme/Paper/gtk-3.0/widgets/spinbutton.css

119 lines
2.5 KiB
CSS
Raw Normal View History

2014-12-13 12:48:16 -05:00
/* Copyright 2014 Sam Hewitt.
*
* 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/.
*/
/**************
* Spinbutton *
**************/
.spinbutton {
2014-12-17 21:01:33 -05:00
border-radius: 2px;
2014-12-13 12:48:16 -05:00
border: 1px solid @border;
box-shadow: none;
color: @text;
}
2014-12-17 21:01:33 -05:00
.spinbutton:hover,
2014-12-13 12:48:16 -05:00
.spinbutton:focus {
box-shadow: none;
}
.spinbutton .button {
2014-12-16 21:13:11 -05:00
border-radius: 0px;
2014-12-13 12:48:16 -05:00
background: none;
border: none;
padding: 2px 4px;
color: @foreground;
}
.spinbutton .button:last-child {
2014-12-16 21:13:11 -05:00
border-radius: 0px;
background: none;
border: none;
2014-12-17 21:01:33 -05:00
/*border-top-right-radius: 5px;*/
/*border-bottom-right-radius: 5px;*/
2014-12-16 21:13:11 -05:00
padding: 2px 4px;
2014-12-13 12:48:16 -05:00
color: @foreground;
}
2014-12-16 21:13:11 -05:00
/* Buttons */
2014-12-13 12:48:16 -05:00
2014-12-16 21:13:11 -05:00
.spinbutton .button:hover {
2014-12-17 21:01:33 -05:00
box-shadow: none;
2014-12-16 21:13:11 -05:00
border: none;
color: @selection;
2014-12-17 21:01:33 -05:00
background: none;
2014-12-13 12:48:16 -05:00
}
2014-12-16 21:13:11 -05:00
.spinbutton .button:active {
2014-12-17 21:01:33 -05:00
box-shadow: none;
2014-12-16 21:13:11 -05:00
background-color: @selection;
color: @selection_foreground;
2014-12-13 12:48:16 -05:00
}
2014-12-16 21:13:11 -05:00
.spinbutton .button:insensitive {
2014-12-17 21:01:33 -05:00
box-shadow: none;
2014-12-16 21:13:11 -05:00
background-color: @insensitive_background;
color: @insensitive_text;
2014-12-13 12:48:16 -05:00
}
2014-12-16 21:13:11 -05:00
/* Entry */
.spinbutton.entry {
2014-12-13 12:48:16 -05:00
background-color: @base;
color: @text;
}
2014-12-16 21:13:11 -05:00
.spinbutton.entry:focus {
2014-12-13 12:48:16 -05:00
color: @text;
}
2014-12-16 21:13:11 -05:00
.spinbutton.entry:insensitive {
2014-12-13 12:48:16 -05:00
color: @insensitive_text;
2014-12-16 21:13:11 -05:00
background-color: @insensitive_background;
2014-12-13 12:48:16 -05:00
}
2014-12-16 21:13:11 -05:00
.spinbutton.entry:backdrop {
2014-12-13 12:48:16 -05:00
color: @backdrop_text;
2014-12-16 21:13:11 -05:00
background-color: @backdrop_background;
2014-12-18 14:50:30 -05:00
}
/* Labels */
.spinbutton GtkLabel {
color: @text;
}
.spinbutton:active GtkLabel,
.spinbutton:focus GtkLabel,
.spinbutton:hover GtkLabel {
color: @selected_foreground;
}
.spinbutton:backdrop GtkLabel,
.spinbutton:backdrop:hover GtkLabel,
.spinbutton:active:backdrop GtkLabel {
color: @backdrop_text;
}
.spinbutton:insensitive GtkLabel {
color: @insensitive_text;
}
.spinbutton:insensitive:backdrop GtkLabel {
color: mix(@backdrop_text, @insensitive_text, 0.5);
}