mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 17:20:09 +00:00
Adwaita: fix stack-switcher button outline offset
See https://bugzilla.gnome.org/show_bug.cgi?id=738636
This commit is contained in:
parent
998feeb2bc
commit
ed25153f2d
@ -637,6 +637,9 @@ $_dot_color: if($variant=='light', $selected_bg_color,
|
||||
// to position the needs attention dot, padding is added to the button
|
||||
// child, a label needs just lateral padding while an icon needs vertical
|
||||
// padding added too.
|
||||
|
||||
outline-offset: -3px; // needs to be set or it gets overriden by GtkRadioButton outline-offset
|
||||
|
||||
> .label {
|
||||
padding-left: 6px; // label padding
|
||||
padding-right: 6px; //
|
||||
|
@ -956,25 +956,29 @@ GtkCalendar.header .button.titlebutton {
|
||||
.titlebar .text-button.titlebutton.button .label:last-child,
|
||||
GtkCalendar.header .text-button.titlebutton.button .label:last-child {
|
||||
padding-right: 8px; }
|
||||
.stack-switcher > .button > .label {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px; }
|
||||
.stack-switcher > .button > GtkImage, .header-bar .stack-switcher > .button.titlebutton > GtkImage,
|
||||
.titlebar .stack-switcher > .button.titlebutton > GtkImage,
|
||||
GtkCalendar.header .stack-switcher > .button.titlebutton > GtkImage {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px; }
|
||||
.stack-switcher > .button.text-button {
|
||||
padding: 5px 10px 6px; }
|
||||
.stack-switcher > .button.image-button, .header-bar .stack-switcher > .titlebutton.button,
|
||||
.titlebar .stack-switcher > .titlebutton.button,
|
||||
GtkCalendar.header .stack-switcher > .titlebutton.button {
|
||||
padding: 5px 2px; }
|
||||
.stack-switcher > .button.needs-attention:active > .label, .stack-switcher > .button.needs-attention:active > GtkImage, .stack-switcher > .button.needs-attention:checked > .label, .stack-switcher > .button.needs-attention:checked > GtkImage {
|
||||
animation: none;
|
||||
background-image: none; }
|
||||
.stack-switcher > .button, .header-bar .stack-switcher > .button.titlebutton,
|
||||
.titlebar .stack-switcher > .button.titlebutton,
|
||||
GtkCalendar.header .stack-switcher > .button.titlebutton {
|
||||
outline-offset: -3px; }
|
||||
.stack-switcher > .button > .label {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px; }
|
||||
.stack-switcher > .button > GtkImage, .header-bar .stack-switcher > .button.titlebutton > GtkImage,
|
||||
.titlebar .stack-switcher > .button.titlebutton > GtkImage,
|
||||
GtkCalendar.header .stack-switcher > .button.titlebutton > GtkImage {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px; }
|
||||
.stack-switcher > .button.text-button {
|
||||
padding: 5px 10px 6px; }
|
||||
.stack-switcher > .button.image-button, .header-bar .stack-switcher > .titlebutton.button,
|
||||
.titlebar .stack-switcher > .titlebutton.button,
|
||||
GtkCalendar.header .stack-switcher > .titlebutton.button {
|
||||
padding: 5px 2px; }
|
||||
.stack-switcher > .button.needs-attention:active > .label, .stack-switcher > .button.needs-attention:active > GtkImage, .stack-switcher > .button.needs-attention:checked > .label, .stack-switcher > .button.needs-attention:checked > GtkImage {
|
||||
animation: none;
|
||||
background-image: none; }
|
||||
.inline-toolbar .button, .inline-toolbar .header-bar .button.titlebutton, .header-bar .inline-toolbar .button.titlebutton,
|
||||
.inline-toolbar .titlebar .button.titlebutton,
|
||||
.titlebar .inline-toolbar .button.titlebutton,
|
||||
|
@ -948,25 +948,29 @@ GtkCalendar.header .button.titlebutton {
|
||||
.titlebar .text-button.titlebutton.button .label:last-child,
|
||||
GtkCalendar.header .text-button.titlebutton.button .label:last-child {
|
||||
padding-right: 8px; }
|
||||
.stack-switcher > .button > .label {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px; }
|
||||
.stack-switcher > .button > GtkImage, .header-bar .stack-switcher > .button.titlebutton > GtkImage,
|
||||
.titlebar .stack-switcher > .button.titlebutton > GtkImage,
|
||||
GtkCalendar.header .stack-switcher > .button.titlebutton > GtkImage {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px; }
|
||||
.stack-switcher > .button.text-button {
|
||||
padding: 5px 10px 6px; }
|
||||
.stack-switcher > .button.image-button, .header-bar .stack-switcher > .titlebutton.button,
|
||||
.titlebar .stack-switcher > .titlebutton.button,
|
||||
GtkCalendar.header .stack-switcher > .titlebutton.button {
|
||||
padding: 5px 2px; }
|
||||
.stack-switcher > .button.needs-attention:active > .label, .stack-switcher > .button.needs-attention:active > GtkImage, .stack-switcher > .button.needs-attention:checked > .label, .stack-switcher > .button.needs-attention:checked > GtkImage {
|
||||
animation: none;
|
||||
background-image: none; }
|
||||
.stack-switcher > .button, .header-bar .stack-switcher > .button.titlebutton,
|
||||
.titlebar .stack-switcher > .button.titlebutton,
|
||||
GtkCalendar.header .stack-switcher > .button.titlebutton {
|
||||
outline-offset: -3px; }
|
||||
.stack-switcher > .button > .label {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px; }
|
||||
.stack-switcher > .button > GtkImage, .header-bar .stack-switcher > .button.titlebutton > GtkImage,
|
||||
.titlebar .stack-switcher > .button.titlebutton > GtkImage,
|
||||
GtkCalendar.header .stack-switcher > .button.titlebutton > GtkImage {
|
||||
padding-left: 6px;
|
||||
padding-right: 6px;
|
||||
padding-top: 3px;
|
||||
padding-bottom: 3px; }
|
||||
.stack-switcher > .button.text-button {
|
||||
padding: 5px 10px 6px; }
|
||||
.stack-switcher > .button.image-button, .header-bar .stack-switcher > .titlebutton.button,
|
||||
.titlebar .stack-switcher > .titlebutton.button,
|
||||
GtkCalendar.header .stack-switcher > .titlebutton.button {
|
||||
padding: 5px 2px; }
|
||||
.stack-switcher > .button.needs-attention:active > .label, .stack-switcher > .button.needs-attention:active > GtkImage, .stack-switcher > .button.needs-attention:checked > .label, .stack-switcher > .button.needs-attention:checked > GtkImage {
|
||||
animation: none;
|
||||
background-image: none; }
|
||||
.inline-toolbar .button, .inline-toolbar .header-bar .button.titlebutton, .header-bar .inline-toolbar .button.titlebutton,
|
||||
.inline-toolbar .titlebar .button.titlebutton,
|
||||
.titlebar .inline-toolbar .button.titlebutton,
|
||||
|
Loading…
Reference in New Issue
Block a user