mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-02 19:36:48 +00:00
b54576564b
Have the page hide the sidebar at 982px, when there is not enough room for both (and when vector switches down to SD). Make inbox responsive when resizing. Change-Id: I3daae156d1ebb0619090d466caa5138d0d98e937
87 lines
1.5 KiB
Plaintext
87 lines
1.5 KiB
Plaintext
@import '../echo.variables';
|
|
.mw-echo-ui-notificationsInboxWidget {
|
|
display: table;
|
|
width: 100%;
|
|
max-width: @specialpage-width;
|
|
|
|
&-row {
|
|
display: table-row;
|
|
width: 100%;
|
|
}
|
|
&-cell {
|
|
display: table-cell;
|
|
vertical-align: middle;
|
|
&-placeholder {
|
|
display: table-cell;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
&-sidebar {
|
|
width: @specialpage-sidebar-width;
|
|
padding-right: 1em;
|
|
vertical-align: top;
|
|
|
|
@media all and ( max-width: ( @specialpage-hd-width - 1 ) ) {
|
|
// Hide the sidebar for small screens
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&-main {
|
|
vertical-align: top;
|
|
|
|
&-toolbar {
|
|
&-top {
|
|
display: table;
|
|
margin-bottom: 3 * @specialpage-separation-unit;
|
|
width: 100%;
|
|
}
|
|
|
|
&-bottom {
|
|
display: table;
|
|
width: inherit;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
margin-top: 3 * @specialpage-separation-unit;
|
|
}
|
|
|
|
&-settings {
|
|
padding-left: 1em;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media all and ( max-width: ( @specialpage-hd-width - 1 ) ) {
|
|
// Override table-layout for the top toolbar so we get
|
|
// filters and pagination under one another
|
|
&-main {
|
|
&-toolbar {
|
|
&-top {
|
|
display: block;
|
|
margin-bottom: 1em;
|
|
|
|
.mw-echo-ui-notificationsInboxWidget-row {
|
|
display: block;
|
|
text-align: center;
|
|
}
|
|
}
|
|
&-readState {
|
|
display: inline-block;
|
|
}
|
|
&-settings,
|
|
&-pagination {
|
|
display: inline-block;
|
|
margin-top: 1em;
|
|
}
|
|
|
|
&-settings {
|
|
.oo-ui-popupWidget-popup {
|
|
text-align: left;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|