Adwaita: linked combos

This commit is contained in:
Lapo Calamandrei 2014-08-06 12:23:47 +02:00
parent 285f1cc30f
commit cfff562069
3 changed files with 70 additions and 0 deletions

View File

@ -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 *
************/

View File

@ -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 *
************/

View File

@ -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 *
************/