From: Bartosz DziewoƄski Date: Fri, 4 Oct 2013 21:08:13 +0000 (+0200) Subject: Add .mw-editsection-like class, behavior same as .mw-editsection X-Git-Tag: 1.31.0-rc.0~17932^2 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=cee510e9bb65f8a079279ff829fd8651932f99e7;p=lhc%2Fweb%2Fwiklou.git Add .mw-editsection-like class, behavior same as .mw-editsection The styling is neat and can be used for other purposes on-wiki (examples include the {{Documentation}} template on the English Wikipedia and the index of biographies at the Polish Wikipedia at [[Wikipedia:Indeks biografii]]). Since .mw-editsection is often used by scripts enhancing the links (including VisualEditor and many gadgets) using it for other things might cause unexpected behavior. Existing uses can now be easily swapped for .mw-editsection-like. Change-Id: Ic390c3047e5e6fd3a351d0ec1ca94ebef9367f6d --- diff --git a/skins/common/commonPrint.css b/skins/common/commonPrint.css index 58628772a5..c7804a00e6 100644 --- a/skins/common/commonPrint.css +++ b/skins/common/commonPrint.css @@ -112,6 +112,7 @@ div.top, div#column-one, #colophon, .mw-editsection, +.mw-editsection-like, .toctoggle, .tochidden, div#f-poweredbyico, diff --git a/skins/common/shared.css b/skins/common/shared.css index 0118d2012d..c01f95c957 100644 --- a/skins/common/shared.css +++ b/skins/common/shared.css @@ -1179,7 +1179,8 @@ table.floatleft { } /* Display editsection links smaller and next to headings */ -.mw-editsection { +.mw-editsection, +.mw-editsection-like { font-size: small; font-weight: normal; margin-left: 1em; diff --git a/skins/modern/print.css b/skins/modern/print.css index e97bbdb403..150d2d2099 100644 --- a/skins/modern/print.css +++ b/skins/modern/print.css @@ -4,6 +4,7 @@ #jump-to-nav, #footer, .mw-editsection, +.mw-editsection-like, .noprint { display: none; }