b7a4b13970
With the recent (and very welcoming) changes to steer away for generic elements such as div and instead use more appropriate/semantic elements such as button we ended up applying new rules to main-nav buttons. These rules were only intended to be apply to classic buttons (rectangle + text inside). Result: - userlistheader even if invisible was getting a background on mouseover - all <button> elements were getting extra padding and margin Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com> Change-Id: Ic774fd342df5483cd7210b85c4847688914b28f2
99 lines
2.3 KiB
CSS
99 lines
2.3 KiB
CSS
/* For btns hover status see device-desktop.css */
|
|
|
|
.jsdialog *[disabled] {
|
|
color: var(--color-text-lighter);
|
|
border: 1px solid var(--color-border-lighter);
|
|
background: var(--color-background-lighter);
|
|
}
|
|
|
|
/*limit icon to button height*/
|
|
button.jsdialog img {
|
|
max-height: 100%;
|
|
}
|
|
|
|
.annotation-btns-container {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: end;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
:not(.main-nav) .button-secondary,
|
|
:not(.main-nav) > div > button:not(.ui-tab):not(.ui-corner-all):not(.button-primary):not(.unobutton):not(.form-field-button) {
|
|
box-sizing: border-box;
|
|
height: 32px;
|
|
line-height: 0em;
|
|
color: var(--color-main-text);
|
|
font-size: var(--default-font-size);
|
|
min-width: 62px;
|
|
background-color: var(--color-background-dark);
|
|
border: 1px solid var(--color-btn-border);
|
|
border: 1px solid var(--color-border-dark);
|
|
border-radius: var(--border-radius);
|
|
margin: 5px;
|
|
vertical-align: middle;
|
|
width: max-content;
|
|
}
|
|
|
|
.button-primary {
|
|
height: 32px;
|
|
line-height: 0em;
|
|
color: var(--color-primary-text);
|
|
min-width: 62px;
|
|
background-color: var(--color-primary);
|
|
border: 1px solid var(--color-primary-dark);
|
|
border-radius: var(--border-radius);
|
|
margin: 5px;
|
|
vertical-align: middle;
|
|
width: max-content;
|
|
}
|
|
|
|
.jsdialog.ui-button-box.end {
|
|
margin-top: 8px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.jsdialog.ui-button-box button[disabled='disabled'] {
|
|
color: var(--color-text-lighter) !important;
|
|
background-color: var(--color-background-lighter) !important;
|
|
border-color: var(--color-border-lighter) !important;
|
|
}
|
|
|
|
.ui-button-box .jsdialog.ui-pushbutton:not(.hidden) {
|
|
display: initial !important;
|
|
}
|
|
|
|
.ui-pushbutton[disabled] {
|
|
color: var(--color-text-lighter) !important;
|
|
background-color: var(--color-background-lighter) !important;
|
|
border: 1px solid var(--color-border-lighter) !important;
|
|
}
|
|
|
|
.ui-pushbutton[disabled]:hover {
|
|
cursor: not-allowed !important;
|
|
background: var(--color-background-darker) !important;
|
|
}
|
|
|
|
/* button box */
|
|
|
|
.jsdialog.ui-button-box {
|
|
display: grid;
|
|
}
|
|
|
|
.jsdialog.ui-button-box-right {
|
|
display: flex;
|
|
justify-self: end;
|
|
margin-inline-end: -5px;
|
|
}
|
|
|
|
.jsdialog.ui-button-box-left {
|
|
display: flex;
|
|
justify-self: start;
|
|
margin-inline-start: -5px;
|
|
}
|
|
|
|
/* Eg: Sidebar -> Animation -> Effects buttons shouldn't overflow the content */
|
|
button.has-img {
|
|
min-width: auto !important;
|
|
}
|