Cleanup after I6a6c12a9. To be merged after appropriate caches are purged.
Change-Id: I4950496e584735a3ceeb0e1c4123dfe6597f2ae1
$rules[] = "#toc { display: none; }\n";
}
if ( !$options['editsection'] ) {
- $rules[] = ".mw-editsection, .editsection { display: none; }\n";
+ $rules[] = ".mw-editsection { display: none; }\n";
}
if ( $options['editfont'] !== 'default' ) {
// Double-check that $options['editfont'] consists of safe characters only
*/
jQuery( function ( $ ) {
// Select all h1-h6 elements that contain editsection links
- // Don't use the ":has:(.editsection a)" selector because it performs very bad.
+ // Don't use the ":has:(.mw-editsection a)" selector because it performs very bad.
// http://jsperf.com/jq-1-7-2-vs-jq-1-8-1-performance-of-mw-has/2
$( document ).on( 'contextmenu', 'h1, h2, h3, h4, h5, h6', function ( e ) {
- var $edit = $( this ).find( '.mw-editsection a, .editsection a' );
+ var $edit = $( this ).find( '.mw-editsection a' );
if ( !$edit.length ) {
return;
}
line-height: 21pt;
}
-h1 .editsection {
- font-size: 55.6%;
-}
-
h1#firstHeading {
padding-bottom: 0;
margin-bottom: 0;
h1 {
font-size: 188%;
}
-h1 .editsection {
- font-size: 53%;
-}
h2 {
font-size: 150%;
}
-h2 .editsection {
- font-size: 67%;
-}
h3,
h4,
h5,
h3 {
font-size: 132%;
}
-h3 .editsection {
- font-size: 76%;
- font-weight: normal;
-}
h4 {
font-size: 116%;
}
-h4 .editsection {
- font-size: 86%;
- font-weight: normal; }
h5 {
font-size: 105%;
}
-h5 .editsection {
- font-weight: normal;
-}
h6 {
font-size: 100%;
}
-h6 .editsection {
- font-size: 125%;
- font-weight: normal;
-}
/* Some space under the headers in the content area */
h1,
div#column-one,
#colophon,
.mw-editsection,
-.editsection,
.toctoggle,
.tochidden,
div#f-poweredbyico,
/* Now the custom parts */
-/* Make edit sections (which are inside h# tags) normal-sized */
-.editsection {
- font-weight: normal;
-}
-h1 .editsection { font-size: 50%; }
-h2 .editsection { font-size: 66.7%; }
-h3 .editsection { font-size: 85.5%; }
-h5 .editsection { font-size: 120%; }
-h6 .editsection { font-size: 133%; }
-
#footer { clear: both }
/* images */
/* @noflip */
cursor: pointer;
}
-/* Edit section links */
-/* Correct directionality when page dir is different from site/user dir */
-/* @noflip */
-.mw-content-ltr .editsection,
-.mw-content-rtl .mw-content-ltr .editsection {
- float: right;
- margin-left: 5px;
-}
-/* @noflip */
-.mw-content-rtl .editsection,
-.mw-content-ltr .mw-content-rtl .editsection {
- float: left;
- margin-right: 5px;
-}
-
/**
* File description page
*/
z-index: 99;
}
-.mw-editsection, .editsection, .toctoggle {
+.mw-editsection,
+.toctoggle {
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
#footer,
#siteNotice,
.mw-editsection,
-.editsection,
.toctoggle {
display: none;
}
color: #a55858;
}
-span.editsection {
- font-size: small;
-}
-
h1, h2 {
border-bottom: solid 1px #003366;
}
#jump-to-nav,
#footer,
.mw-editsection,
-span.editsection,
.noprint {
display: none;
}
font-size: 0.8em;
}
-.editsection {
- float: right;
-}
-
ul {
list-style-type: disc;
/* @embed */