Adwaita: linked combos
This commit is contained in:
parent
285f1cc30f
commit
cfff562069
@ -762,6 +762,36 @@ GtkComboBox {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//FIXME: we need a better general solution for button linking
|
||||
|
||||
.linked > GtkComboBox > .button {
|
||||
// the combo is a composite widget so the way we do button linkind doesn't
|
||||
// work, special case needed. See
|
||||
// https://bugzilla.gnome.org/show_bug.cgi?id=733979
|
||||
|
||||
&:dir(ltr), &:dir(rtl) { // needed to increase specificity
|
||||
border-radius: 0;
|
||||
border-left-style: none;
|
||||
}
|
||||
&:dir(rtl) {
|
||||
border-right-style: none;
|
||||
border-left-style: solid
|
||||
}
|
||||
}
|
||||
.linked > GtkComboBox:first-child > .button {
|
||||
border-radius: 3px 0 0 3px;
|
||||
border-left-style: solid;
|
||||
}
|
||||
.linked > GtkComboBox:last-child > .button {
|
||||
border-radius: 0 3px 3px 0;
|
||||
&:dir(rtl) { border-right-style: solid; }
|
||||
}
|
||||
.linked > GtkComboBox:only-child > .button {
|
||||
border-radius: 3px;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
/************
|
||||
* Toolbars *
|
||||
************/
|
||||
|
@ -881,6 +881,26 @@ GtkComboBox {
|
||||
border-left-style: solid;
|
||||
border-right-style: none; }
|
||||
|
||||
.linked > GtkComboBox > .button:dir(ltr), .linked > GtkComboBox > .button:dir(rtl) {
|
||||
border-radius: 0;
|
||||
border-left-style: none; }
|
||||
.linked > GtkComboBox > .button:dir(rtl) {
|
||||
border-right-style: none;
|
||||
border-left-style: solid; }
|
||||
|
||||
.linked > GtkComboBox:first-child > .button {
|
||||
border-radius: 3px 0 0 3px;
|
||||
border-left-style: solid; }
|
||||
|
||||
.linked > GtkComboBox:last-child > .button {
|
||||
border-radius: 0 3px 3px 0; }
|
||||
.linked > GtkComboBox:last-child > .button:dir(rtl) {
|
||||
border-right-style: solid; }
|
||||
|
||||
.linked > GtkComboBox:only-child > .button {
|
||||
border-radius: 3px;
|
||||
border-style: solid; }
|
||||
|
||||
/************
|
||||
* Toolbars *
|
||||
************/
|
||||
|
@ -873,6 +873,26 @@ GtkComboBox {
|
||||
border-left-style: solid;
|
||||
border-right-style: none; }
|
||||
|
||||
.linked > GtkComboBox > .button:dir(ltr), .linked > GtkComboBox > .button:dir(rtl) {
|
||||
border-radius: 0;
|
||||
border-left-style: none; }
|
||||
.linked > GtkComboBox > .button:dir(rtl) {
|
||||
border-right-style: none;
|
||||
border-left-style: solid; }
|
||||
|
||||
.linked > GtkComboBox:first-child > .button {
|
||||
border-radius: 3px 0 0 3px;
|
||||
border-left-style: solid; }
|
||||
|
||||
.linked > GtkComboBox:last-child > .button {
|
||||
border-radius: 0 3px 3px 0; }
|
||||
.linked > GtkComboBox:last-child > .button:dir(rtl) {
|
||||
border-right-style: solid; }
|
||||
|
||||
.linked > GtkComboBox:only-child > .button {
|
||||
border-radius: 3px;
|
||||
border-style: solid; }
|
||||
|
||||
/************
|
||||
* Toolbars *
|
||||
************/
|
||||
|
Loading…
Reference in New Issue
Block a user