GTK3: Refactor code according to an upstream change
based on https://git.gnome.org/browse/gtk+/commit/?id=9be18363e771ac2046219ce171204057d8fab260
based on https://git.gnome.org/browse/gtk+/commit/?id=9be18363e771ac2046219ce171204057d8fab260
by roundabout, Friday, 5 May 2017, 11:50:27 (1493985027), pushed by roundabout, Sunday, 11 May 2025, 13:22:09 (1746969729)
Author identity: nana-4 <hnmaigo@gmail.com>
1829a621492e06571764c33e4d373c10c1bc519b
color: inherit;
}
modelbutton.flat check,
modelbutton.flat radio,
.menuitem.button.flat check,
.menuitem.button.flat radio {
box-shadow: none;
background-image: none;
}
modelbutton.flat check:not(:checked):not(:indeterminate),
modelbutton.flat radio:not(:checked):not(:indeterminate),
.menuitem.button.flat check:not(:checked):not(:indeterminate),
.menuitem.button.flat radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
modelbutton.flat check:last-child,
modelbutton.flat radio:last-child,
.menuitem.button.flat check:last-child,
.menuitem.button.flat radio:last-child {
margin-left: -8px;
margin-right: -16px;
}
modelbutton.flat check:first-child,
modelbutton.flat radio:first-child,
.menuitem.button.flat check:first-child,
.menuitem.button.flat radio:first-child {
margin-left: -16px;
margin-right: -8px;
}
modelbutton.flat arrow {
background: none;
}
color: alpha(currentColor, 0.3);
}
popover check, popover check:hover, popover check:disabled, popover
radio, popover
radio:hover, popover
radio:disabled {
box-shadow: none;
background-image: none;
}
popover check:not(:checked):not(:indeterminate), popover
radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
popover check.left:dir(rtl), popover
radio.left:dir(rtl) {
margin-left: -16px;
margin-right: -8px;
}
popover check.right:dir(ltr), popover
radio.right:dir(ltr) {
margin-left: -8px;
margin-right: -16px;
}
menu menuitem check, menu menuitem
radio {
transition: none;
color: inherit;
}
modelbutton.flat check,
modelbutton.flat radio,
.menuitem.button.flat check,
.menuitem.button.flat radio {
box-shadow: none;
background-image: none;
}
modelbutton.flat check:not(:checked):not(:indeterminate),
modelbutton.flat radio:not(:checked):not(:indeterminate),
.menuitem.button.flat check:not(:checked):not(:indeterminate),
.menuitem.button.flat radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
modelbutton.flat check:last-child,
modelbutton.flat radio:last-child,
.menuitem.button.flat check:last-child,
.menuitem.button.flat radio:last-child {
margin-left: -8px;
margin-right: -16px;
}
modelbutton.flat check:first-child,
modelbutton.flat radio:first-child,
.menuitem.button.flat check:first-child,
.menuitem.button.flat radio:first-child {
margin-left: -16px;
margin-right: -8px;
}
modelbutton.flat arrow {
background: none;
}
color: alpha(currentColor, 0.3);
}
popover check, popover check:hover, popover check:disabled, popover
radio, popover
radio:hover, popover
radio:disabled {
box-shadow: none;
background-image: none;
}
popover check:not(:checked):not(:indeterminate), popover
radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
popover check.left:dir(rtl), popover
radio.left:dir(rtl) {
margin-left: -16px;
margin-right: -8px;
}
popover check.right:dir(ltr), popover
radio.right:dir(ltr) {
margin-left: -8px;
margin-right: -16px;
}
menu menuitem check, menu menuitem
radio {
transition: none;
color: inherit;
}
modelbutton.flat check,
modelbutton.flat radio,
.menuitem.button.flat check,
.menuitem.button.flat radio {
box-shadow: none;
background-image: none;
}
modelbutton.flat check:not(:checked):not(:indeterminate),
modelbutton.flat radio:not(:checked):not(:indeterminate),
.menuitem.button.flat check:not(:checked):not(:indeterminate),
.menuitem.button.flat radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
modelbutton.flat check:last-child,
modelbutton.flat radio:last-child,
.menuitem.button.flat check:last-child,
.menuitem.button.flat radio:last-child {
margin-left: -8px;
margin-right: -16px;
}
modelbutton.flat check:first-child,
modelbutton.flat radio:first-child,
.menuitem.button.flat check:first-child,
.menuitem.button.flat radio:first-child {
margin-left: -16px;
margin-right: -8px;
}
modelbutton.flat arrow {
background: none;
}
color: alpha(currentColor, 0.3);
}
popover check, popover check:hover, popover check:disabled, popover
radio, popover
radio:hover, popover
radio:disabled {
box-shadow: none;
background-image: none;
}
popover check:not(:checked):not(:indeterminate), popover
radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
popover check.left:dir(rtl), popover
radio.left:dir(rtl) {
margin-left: -16px;
margin-right: -8px;
}
popover check.right:dir(ltr), popover
radio.right:dir(ltr) {
margin-left: -8px;
margin-right: -16px;
}
menu menuitem check, menu menuitem
radio {
transition: none;
color: inherit;
}
modelbutton.flat check,
modelbutton.flat radio,
.menuitem.button.flat check,
.menuitem.button.flat radio {
box-shadow: none;
background-image: none;
}
modelbutton.flat check:not(:checked):not(:indeterminate),
modelbutton.flat radio:not(:checked):not(:indeterminate),
.menuitem.button.flat check:not(:checked):not(:indeterminate),
.menuitem.button.flat radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
modelbutton.flat check:last-child,
modelbutton.flat radio:last-child,
.menuitem.button.flat check:last-child,
.menuitem.button.flat radio:last-child {
margin-left: -8px;
margin-right: -16px;
}
modelbutton.flat check:first-child,
modelbutton.flat radio:first-child,
.menuitem.button.flat check:first-child,
.menuitem.button.flat radio:first-child {
margin-left: -16px;
margin-right: -8px;
}
modelbutton.flat arrow {
background: none;
}
color: alpha(currentColor, 0.3);
}
popover check, popover check:hover, popover check:disabled, popover
radio, popover
radio:hover, popover
radio:disabled {
box-shadow: none;
background-image: none;
}
popover check:not(:checked):not(:indeterminate), popover
radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
popover check.left:dir(rtl), popover
radio.left:dir(rtl) {
margin-left: -16px;
margin-right: -8px;
}
popover check.right:dir(ltr), popover
radio.right:dir(ltr) {
margin-left: -8px;
margin-right: -16px;
}
menu menuitem check, menu menuitem
radio {
transition: none;
color: inherit;
}
modelbutton.flat check,
modelbutton.flat radio,
.menuitem.button.flat check,
.menuitem.button.flat radio {
box-shadow: none;
background-image: none;
}
modelbutton.flat check:not(:checked):not(:indeterminate),
modelbutton.flat radio:not(:checked):not(:indeterminate),
.menuitem.button.flat check:not(:checked):not(:indeterminate),
.menuitem.button.flat radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
modelbutton.flat check:last-child,
modelbutton.flat radio:last-child,
.menuitem.button.flat check:last-child,
.menuitem.button.flat radio:last-child {
margin-left: -8px;
margin-right: -16px;
}
modelbutton.flat check:first-child,
modelbutton.flat radio:first-child,
.menuitem.button.flat check:first-child,
.menuitem.button.flat radio:first-child {
margin-left: -16px;
margin-right: -8px;
}
modelbutton.flat arrow {
background: none;
}
color: alpha(currentColor, 0.3);
}
popover check, popover check:hover, popover check:disabled, popover
radio, popover
radio:hover, popover
radio:disabled {
box-shadow: none;
background-image: none;
}
popover check:not(:checked):not(:indeterminate), popover
radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
popover check.left:dir(rtl), popover
radio.left:dir(rtl) {
margin-left: -16px;
margin-right: -8px;
}
popover check.right:dir(ltr), popover
radio.right:dir(ltr) {
margin-left: -8px;
margin-right: -16px;
}
menu menuitem check, menu menuitem
radio {
transition: none;
color: inherit;
}
modelbutton.flat check,
modelbutton.flat radio,
.menuitem.button.flat check,
.menuitem.button.flat radio {
box-shadow: none;
background-image: none;
}
modelbutton.flat check:not(:checked):not(:indeterminate),
modelbutton.flat radio:not(:checked):not(:indeterminate),
.menuitem.button.flat check:not(:checked):not(:indeterminate),
.menuitem.button.flat radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
modelbutton.flat check:last-child,
modelbutton.flat radio:last-child,
.menuitem.button.flat check:last-child,
.menuitem.button.flat radio:last-child {
margin-left: -8px;
margin-right: -16px;
}
modelbutton.flat check:first-child,
modelbutton.flat radio:first-child,
.menuitem.button.flat check:first-child,
.menuitem.button.flat radio:first-child {
margin-left: -16px;
margin-right: -8px;
}
modelbutton.flat arrow {
background: none;
}
color: alpha(currentColor, 0.3);
}
popover check, popover check:hover, popover check:disabled, popover
radio, popover
radio:hover, popover
radio:disabled {
box-shadow: none;
background-image: none;
}
popover check:not(:checked):not(:indeterminate), popover
radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
popover check.left:dir(rtl), popover
radio.left:dir(rtl) {
margin-left: -16px;
margin-right: -8px;
}
popover check.right:dir(ltr), popover
radio.right:dir(ltr) {
margin-left: -8px;
margin-right: -16px;
}
menu menuitem check, menu menuitem
radio {
transition: none;
color: inherit;
}
modelbutton.flat check,
modelbutton.flat radio,
.menuitem.button.flat check,
.menuitem.button.flat radio {
box-shadow: none;
background-image: none;
}
modelbutton.flat check:not(:checked):not(:indeterminate),
modelbutton.flat radio:not(:checked):not(:indeterminate),
.menuitem.button.flat check:not(:checked):not(:indeterminate),
.menuitem.button.flat radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
modelbutton.flat check:last-child,
modelbutton.flat radio:last-child,
.menuitem.button.flat check:last-child,
.menuitem.button.flat radio:last-child {
margin-left: -8px;
margin-right: -16px;
}
modelbutton.flat check:first-child,
modelbutton.flat radio:first-child,
.menuitem.button.flat check:first-child,
.menuitem.button.flat radio:first-child {
margin-left: -16px;
margin-right: -8px;
}
modelbutton.flat arrow {
background: none;
}
color: alpha(currentColor, 0.3);
}
popover check, popover check:hover, popover check:disabled, popover
radio, popover
radio:hover, popover
radio:disabled {
box-shadow: none;
background-image: none;
}
popover check:not(:checked):not(:indeterminate), popover
radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
popover check.left:dir(rtl), popover
radio.left:dir(rtl) {
margin-left: -16px;
margin-right: -8px;
}
popover check.right:dir(ltr), popover
radio.right:dir(ltr) {
margin-left: -8px;
margin-right: -16px;
}
menu menuitem check, menu menuitem
radio {
transition: none;
color: inherit;
}
modelbutton.flat check,
modelbutton.flat radio,
.menuitem.button.flat check,
.menuitem.button.flat radio {
box-shadow: none;
background-image: none;
}
modelbutton.flat check:not(:checked):not(:indeterminate),
modelbutton.flat radio:not(:checked):not(:indeterminate),
.menuitem.button.flat check:not(:checked):not(:indeterminate),
.menuitem.button.flat radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
modelbutton.flat check:last-child,
modelbutton.flat radio:last-child,
.menuitem.button.flat check:last-child,
.menuitem.button.flat radio:last-child {
margin-left: -8px;
margin-right: -16px;
}
modelbutton.flat check:first-child,
modelbutton.flat radio:first-child,
.menuitem.button.flat check:first-child,
.menuitem.button.flat radio:first-child {
margin-left: -16px;
margin-right: -8px;
}
modelbutton.flat arrow {
background: none;
}
color: alpha(currentColor, 0.3);
}
popover check, popover check:hover, popover check:disabled, popover
radio, popover
radio:hover, popover
radio:disabled {
box-shadow: none;
background-image: none;
}
popover check:not(:checked):not(:indeterminate), popover
radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
popover check.left:dir(rtl), popover
radio.left:dir(rtl) {
margin-left: -16px;
margin-right: -8px;
}
popover check.right:dir(ltr), popover
radio.right:dir(ltr) {
margin-left: -8px;
margin-right: -16px;
}
menu menuitem check, menu menuitem
radio {
transition: none;
color: inherit;
}
modelbutton.flat check,
modelbutton.flat radio,
.menuitem.button.flat check,
.menuitem.button.flat radio {
box-shadow: none;
background-image: none;
}
modelbutton.flat check:not(:checked):not(:indeterminate),
modelbutton.flat radio:not(:checked):not(:indeterminate),
.menuitem.button.flat check:not(:checked):not(:indeterminate),
.menuitem.button.flat radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
modelbutton.flat check:last-child,
modelbutton.flat radio:last-child,
.menuitem.button.flat check:last-child,
.menuitem.button.flat radio:last-child {
margin-left: -8px;
margin-right: -16px;
}
modelbutton.flat check:first-child,
modelbutton.flat radio:first-child,
.menuitem.button.flat check:first-child,
.menuitem.button.flat radio:first-child {
margin-left: -16px;
margin-right: -8px;
}
modelbutton.flat arrow {
background: none;
}
color: alpha(currentColor, 0.3);
}
popover check, popover check:hover, popover check:disabled, popover
radio, popover
radio:hover, popover
radio:disabled {
box-shadow: none;
background-image: none;
}
popover check:not(:checked):not(:indeterminate), popover
radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
popover check.left:dir(rtl), popover
radio.left:dir(rtl) {
margin-left: -16px;
margin-right: -8px;
}
popover check.right:dir(ltr), popover
radio.right:dir(ltr) {
margin-left: -8px;
margin-right: -16px;
}
menu menuitem check, menu menuitem
radio {
transition: none;
color: inherit;
}
modelbutton.flat check,
modelbutton.flat radio,
.menuitem.button.flat check,
.menuitem.button.flat radio {
box-shadow: none;
background-image: none;
}
modelbutton.flat check:not(:checked):not(:indeterminate),
modelbutton.flat radio:not(:checked):not(:indeterminate),
.menuitem.button.flat check:not(:checked):not(:indeterminate),
.menuitem.button.flat radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
modelbutton.flat check:last-child,
modelbutton.flat radio:last-child,
.menuitem.button.flat check:last-child,
.menuitem.button.flat radio:last-child {
margin-left: -8px;
margin-right: -16px;
}
modelbutton.flat check:first-child,
modelbutton.flat radio:first-child,
.menuitem.button.flat check:first-child,
.menuitem.button.flat radio:first-child {
margin-left: -16px;
margin-right: -8px;
}
modelbutton.flat arrow {
background: none;
}
color: alpha(currentColor, 0.3);
}
popover check, popover check:hover, popover check:disabled, popover
radio, popover
radio:hover, popover
radio:disabled {
box-shadow: none;
background-image: none;
}
popover check:not(:checked):not(:indeterminate), popover
radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
popover check.left:dir(rtl), popover
radio.left:dir(rtl) {
margin-left: -16px;
margin-right: -8px;
}
popover check.right:dir(ltr), popover
radio.right:dir(ltr) {
margin-left: -8px;
margin-right: -16px;
}
menu menuitem check, menu menuitem
radio {
transition: none;
color: inherit;
}
modelbutton.flat check,
modelbutton.flat radio,
.menuitem.button.flat check,
.menuitem.button.flat radio {
box-shadow: none;
background-image: none;
}
modelbutton.flat check:not(:checked):not(:indeterminate),
modelbutton.flat radio:not(:checked):not(:indeterminate),
.menuitem.button.flat check:not(:checked):not(:indeterminate),
.menuitem.button.flat radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
modelbutton.flat check:last-child,
modelbutton.flat radio:last-child,
.menuitem.button.flat check:last-child,
.menuitem.button.flat radio:last-child {
margin-left: -8px;
margin-right: -16px;
}
modelbutton.flat check:first-child,
modelbutton.flat radio:first-child,
.menuitem.button.flat check:first-child,
.menuitem.button.flat radio:first-child {
margin-left: -16px;
margin-right: -8px;
}
modelbutton.flat arrow {
background: none;
}
color: alpha(currentColor, 0.3);
}
popover check, popover check:hover, popover check:disabled, popover
radio, popover
radio:hover, popover
radio:disabled {
box-shadow: none;
background-image: none;
}
popover check:not(:checked):not(:indeterminate), popover
radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
popover check.left:dir(rtl), popover
radio.left:dir(rtl) {
margin-left: -16px;
margin-right: -8px;
}
popover check.right:dir(ltr), popover
radio.right:dir(ltr) {
margin-left: -8px;
margin-right: -16px;
}
menu menuitem check, menu menuitem
radio {
transition: none;
color: inherit;
}
modelbutton.flat check,
modelbutton.flat radio,
.menuitem.button.flat check,
.menuitem.button.flat radio {
box-shadow: none;
background-image: none;
}
modelbutton.flat check:not(:checked):not(:indeterminate),
modelbutton.flat radio:not(:checked):not(:indeterminate),
.menuitem.button.flat check:not(:checked):not(:indeterminate),
.menuitem.button.flat radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
modelbutton.flat check:last-child,
modelbutton.flat radio:last-child,
.menuitem.button.flat check:last-child,
.menuitem.button.flat radio:last-child {
margin-left: -8px;
margin-right: -16px;
}
modelbutton.flat check:first-child,
modelbutton.flat radio:first-child,
.menuitem.button.flat check:first-child,
.menuitem.button.flat radio:first-child {
margin-left: -16px;
margin-right: -8px;
}
modelbutton.flat arrow {
background: none;
}
color: alpha(currentColor, 0.3);
}
popover check, popover check:hover, popover check:disabled, popover
radio, popover
radio:hover, popover
radio:disabled {
box-shadow: none;
background-image: none;
}
popover check:not(:checked):not(:indeterminate), popover
radio:not(:checked):not(:indeterminate) {
color: alpha(currentColor, 0.6);
}
popover check.left:dir(rtl), popover
radio.left:dir(rtl) {
margin-left: -16px;
margin-right: -8px;
}
popover check.right:dir(ltr), popover
radio.right:dir(ltr) {
margin-left: -8px;
margin-right: -16px;
}
menu menuitem check, menu menuitem
radio {
transition: none;
@extend %simple_flat_button;
&:selected { @extend %selected_items; }
check,
radio {
box-shadow: none;
background-image: none;
&:not(:checked):not(:indeterminate) { color: gtkalpha(currentColor, $tertiary_opacity); }
&:last-child { margin-left: -8px; margin-right: -16px; }
&:first-child { margin-left: -16px; margin-right: -8px; }
}
}
modelbutton.flat arrow {
&:disabled { color: gtkalpha(currentColor, $secondary_opacity * $disabled_opacity); }
}
popover & {
&, &:hover, &:disabled {
box-shadow: none;
background-image: none;
}
&:not(:checked):not(:indeterminate) { color: gtkalpha(currentColor, $tertiary_opacity); }
&.left:dir(rtl) {
margin-left: -16px;
margin-right: -8px;
}
&.right:dir(ltr) {
margin-left: -8px;
margin-right: -16px;
}
}
menu menuitem & {
transition: none;
min-height: 16px;