forked from AuroraMiddleware/gtk
Merge branch 'fix-menu-check-radio-styling-gtk3' into 'gtk-3-24'
Adwaita: Fix check/radio styling in menu (GTK3) See merge request GNOME/gtk!1186
This commit is contained in:
commit
089bf46d9a
@ -2986,21 +2986,17 @@ radio {
|
|||||||
menu menuitem & {
|
menu menuitem & {
|
||||||
margin: 0; // this is a workaround for a menu check/radio size allocation issue
|
margin: 0; // this is a workaround for a menu check/radio size allocation issue
|
||||||
|
|
||||||
&, &:hover, &:disabled { //FIXME use button reset mixin
|
&, &:checked, &:indeterminate {
|
||||||
min-height: 14px;
|
&, &:hover, &:disabled { //FIXME use button reset mixin
|
||||||
min-width: 14px;
|
min-height: 14px;
|
||||||
background-image: none;
|
min-width: 14px;
|
||||||
background-color: transparent;
|
background-image: none;
|
||||||
box-shadow: none;
|
background-color: transparent;
|
||||||
-gtk-icon-shadow: none;
|
box-shadow: none;
|
||||||
color: inherit;
|
-gtk-icon-shadow: none;
|
||||||
border-color: currentColor;
|
color: inherit;
|
||||||
}
|
border-color: currentColor;
|
||||||
&:indeterminate, &:checked {
|
}
|
||||||
&:hover {
|
|
||||||
color: $checkradio_fg_color;
|
|
||||||
border-color: darken($checkradio_bg_color, if($variant=='light', 15%, 30%));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1205,9 +1205,7 @@ check:backdrop, radio:backdrop { transition: 200ms ease-out; }
|
|||||||
|
|
||||||
menu menuitem check, menu menuitem radio { margin: 0; }
|
menu menuitem check, menu menuitem radio { margin: 0; }
|
||||||
|
|
||||||
menu menuitem check, menu menuitem check:hover, menu menuitem check:disabled, menu menuitem radio, menu menuitem radio:hover, menu menuitem radio:disabled { min-height: 14px; min-width: 14px; background-image: none; background-color: transparent; box-shadow: none; -gtk-icon-shadow: none; color: inherit; border-color: currentColor; }
|
menu menuitem check, menu menuitem check:hover, menu menuitem check:disabled, menu menuitem check:checked, menu menuitem check:checked:hover, menu menuitem check:checked:disabled, menu menuitem check:indeterminate, menu menuitem check:indeterminate:hover, menu menuitem check:indeterminate:disabled, menu menuitem radio, menu menuitem radio:hover, menu menuitem radio:disabled, menu menuitem radio:checked, menu menuitem radio:checked:hover, menu menuitem radio:checked:disabled, menu menuitem radio:indeterminate, menu menuitem radio:indeterminate:hover, menu menuitem radio:indeterminate:disabled { min-height: 14px; min-width: 14px; background-image: none; background-color: transparent; box-shadow: none; -gtk-icon-shadow: none; color: inherit; border-color: currentColor; }
|
||||||
|
|
||||||
menu menuitem check:indeterminate:hover, menu menuitem check:checked:hover, menu menuitem radio:indeterminate:hover, menu menuitem radio:checked:hover { color: #ffffff; border-color: #030c17; }
|
|
||||||
|
|
||||||
check { border-radius: 3px; }
|
check { border-radius: 3px; }
|
||||||
|
|
||||||
|
@ -1221,9 +1221,7 @@ row:selected check, row:selected radio { border-color: #185fb4; }
|
|||||||
|
|
||||||
menu menuitem check, menu menuitem radio { margin: 0; }
|
menu menuitem check, menu menuitem radio { margin: 0; }
|
||||||
|
|
||||||
menu menuitem check, menu menuitem check:hover, menu menuitem check:disabled, menu menuitem radio, menu menuitem radio:hover, menu menuitem radio:disabled { min-height: 14px; min-width: 14px; background-image: none; background-color: transparent; box-shadow: none; -gtk-icon-shadow: none; color: inherit; border-color: currentColor; }
|
menu menuitem check, menu menuitem check:hover, menu menuitem check:disabled, menu menuitem check:checked, menu menuitem check:checked:hover, menu menuitem check:checked:disabled, menu menuitem check:indeterminate, menu menuitem check:indeterminate:hover, menu menuitem check:indeterminate:disabled, menu menuitem radio, menu menuitem radio:hover, menu menuitem radio:disabled, menu menuitem radio:checked, menu menuitem radio:checked:hover, menu menuitem radio:checked:disabled, menu menuitem radio:indeterminate, menu menuitem radio:indeterminate:hover, menu menuitem radio:indeterminate:disabled { min-height: 14px; min-width: 14px; background-image: none; background-color: transparent; box-shadow: none; -gtk-icon-shadow: none; color: inherit; border-color: currentColor; }
|
||||||
|
|
||||||
menu menuitem check:indeterminate:hover, menu menuitem check:checked:hover, menu menuitem radio:indeterminate:hover, menu menuitem radio:checked:hover { color: #ffffff; border-color: #185fb4; }
|
|
||||||
|
|
||||||
check { border-radius: 3px; }
|
check { border-radius: 3px; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user