mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 17:50:39 +00:00
Merge "Prevent horizontal scroll bars in Firefox"
This commit is contained in:
commit
58e1966e1d
20
modules/mixins.less
Normal file
20
modules/mixins.less
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
// Begin Mixins
|
||||||
|
|
||||||
|
// FIXME: Use a core mixin.
|
||||||
|
// truncated-text
|
||||||
|
//
|
||||||
|
// Add the truncated-text mixin to any element where long text is
|
||||||
|
// expected, and truncating improves the UX.
|
||||||
|
// Can be used with .truncated-text(true) to undo text truncation.
|
||||||
|
//
|
||||||
|
// Use in Flow, Echo and MobileFrontend extensions.
|
||||||
|
.truncated-text(@undo: false) when not (@undo) {
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.truncated-text(@undo: false) when (@undo) {
|
||||||
|
white-space: inherit;
|
||||||
|
overflow: inherit;
|
||||||
|
text-overflow: inherit;
|
||||||
|
}
|
|
@ -1,3 +1,5 @@
|
||||||
|
@import '../mixins.less';
|
||||||
|
|
||||||
.mw-echo-title {
|
.mw-echo-title {
|
||||||
a {
|
a {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
@ -35,14 +37,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.mw-echo-title {
|
.mw-echo-title {
|
||||||
// Automatically makes any text too long in a single line capped by ellipsis
|
|
||||||
// @todo .truncated-text() doesn't really apply here because we don't want white-space changed
|
|
||||||
overflow-x: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
|
|
||||||
// Helper class to be used to force single-line text in overlay
|
// Helper class to be used to force single-line text in overlay
|
||||||
.mw-echo-title-heading {
|
.plainlinks {
|
||||||
white-space: nowrap;
|
.truncated-text();
|
||||||
|
max-width: 100%;
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|
|
@ -1,23 +1,4 @@
|
||||||
// Begin Mixins
|
@import '../mixins.less';
|
||||||
|
|
||||||
// FIXME: Use a core mixin.
|
|
||||||
// truncated-text
|
|
||||||
//
|
|
||||||
// Add the truncated-text mixin to any element where long text is
|
|
||||||
// expected, and truncating improves the UX.
|
|
||||||
// Can be used with .truncated-text(true) to undo text truncation.
|
|
||||||
//
|
|
||||||
// Use in Flow, Echo and MobileFrontend extensions.
|
|
||||||
.truncated-text(@undo: false) when not (@undo) {
|
|
||||||
white-space: nowrap;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
|
||||||
.truncated-text(@undo: false) when (@undo) {
|
|
||||||
white-space: inherit;
|
|
||||||
overflow: inherit;
|
|
||||||
text-overflow: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Echo specific CSS */
|
/* Echo specific CSS */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue