From bb9720edffe908f70a0a0fbb41c17ba7516c85bf Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Fri, 16 Jun 2017 11:17:17 -0700 Subject: [PATCH] Reduce column-width to 25em for Minerva skin Current Minerva skin is purposely restricted to 55.8em This means references will never be split into 2 columns as 30em*2=60em. Dropping it to 25em would mean the CSS applies here and no more than 2 columns would ever be used to display references. Bug: T160497 Change-Id: I6f9b85cd6cfdb055692b1f537d569c158900f7c9 --- extension.json | 3 +++ modules/ext.cite.styles.minerva.less | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 modules/ext.cite.styles.minerva.less diff --git a/extension.json b/extension.json index d50281adc..b682677a5 100644 --- a/extension.json +++ b/extension.json @@ -54,6 +54,9 @@ "media": "print" } }, + "skinStyles": { + "minerva": "ext.cite.styles.minerva.less" + }, "position": "bottom", "targets": [ "desktop", diff --git a/modules/ext.cite.styles.minerva.less b/modules/ext.cite.styles.minerva.less new file mode 100644 index 000000000..01d70ba64 --- /dev/null +++ b/modules/ext.cite.styles.minerva.less @@ -0,0 +1,7 @@ +@import "mediawiki.mixins.less"; + + .mw-references-columns { + /* Minerva skin width is cut to 1000px (62.5em). With margins/paddings included this + leaves 55.8em for content. This ensures that 2 columns will be used where possible */ + .column-width( 25em ); +}