Add .mw-editsection-like class, behavior same as .mw-editsection
authorBartosz Dziewoński <matma.rex@gmail.com>
Fri, 4 Oct 2013 21:08:13 +0000 (23:08 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Fri, 4 Oct 2013 21:10:24 +0000 (23:10 +0200)
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
skins/common/shared.css
skins/modern/print.css

index 5862877..c7804a0 100644 (file)
@@ -112,6 +112,7 @@ div.top,
 div#column-one,
 #colophon,
 .mw-editsection,
+.mw-editsection-like,
 .toctoggle,
 .tochidden,
 div#f-poweredbyico,
index 0118d20..c01f95c 100644 (file)
@@ -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;
index e97bbdb..150d2d2 100644 (file)
@@ -4,6 +4,7 @@
 #jump-to-nav,
 #footer,
 .mw-editsection,
+.mw-editsection-like,
 .noprint {
        display: none;
 }