From cee510e9bb65f8a079279ff829fd8651932f99e7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bartosz=20Dziewo=C5=84ski?= Date: Fri, 4 Oct 2013 23:08:13 +0200 Subject: [PATCH] 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 --- skins/common/commonPrint.css | 1 + skins/common/shared.css | 3 ++- skins/modern/print.css | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.20.1