Tweak styles and filters

Former-commit-id: 51200745bdb523fef4a3da561cec5ce2baa6f0c4 [formerly 29d49cd301afdf3513e5eb18ac092167fd2b96b9]
Former-commit-id: fee227e7e79395f208c7af5bfdca2aa767502b97
This commit is contained in:
Jaifroid 2019-08-17 11:57:19 +01:00
parent 4d382b1a53
commit 2ed1aca9bf
2 changed files with 27 additions and 44 deletions

View File

@ -173,10 +173,6 @@ h3, h4, h5, h6 {
word-break: break-word
}
.content h2, .content h3, .content h4, .content h5, .content h6 {
padding: 0.5em 0
}
blockquote {
border-left: 3px solid #c8ccd1;
font-family: 'Linux Libertine','Georgia','Times',serif;
@ -954,6 +950,7 @@ a.issues_button {
border-bottom: solid 1px #eaecf0;
font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
}
.mw-body h3 {
border-bottom: 0px solid #eaecf0;
font-weight: bold;
@ -963,15 +960,15 @@ a.issues_button {
border-bottom: 0px solid #eaecf0;
}
h1[tabindex="0"].collapsible-heading>.indicator {
h1[tabindex="0"].collapsible-heading > .indicator {
display: none;
/* hide the "v" icone for the main title */
}
.section-heading>h1,
.section-heading>h2,
.section-heading>h3,
.section-heading>h4 {
.section-heading > h1,
.section-heading > h2,
.section-heading > h3,
.section-heading > h4 {
display: inline;
border: none;
}
@ -1977,17 +1974,6 @@ a.mw-ui-button {
background-size: 66.67% auto
}
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, ins, em, img, small, strike, strong, sub, sup, tt, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, input, textarea, button, select, audio, video {
margin: 0;
padding: 0;
border: 0;
font: inherit;
font-size: 100%;
line-height: 1.6;
vertical-align: baseline;
background: none
}
table, caption, tbody, tfoot, thead, tr, th, td {
font-size: 100%
}
@ -2199,9 +2185,9 @@ input.search::-webkit-search-decoration, input.search::-webkit-search-cancel-but
clear: both
}*/
.content h2 .edit-page {
font-size: 0.66666667em
}
.content h2 .edit-page {
font-size: 0.66666667em
}
.content h3 .edit-page {
font-size: 0.83333333em
@ -2219,12 +2205,8 @@ input.search::-webkit-search-decoration, input.search::-webkit-search-cancel-but
.content .section-heading {
/* width: 100%; */
border-bottom: solid 1px #eaecf0;
margin-bottom: 0.5em
}
summary.section-heading > h2 {
border-bottom: none;
margin-bottom: 0;
margin-bottom: 0.5em;
margin-top: 0.5em;
}
.content .section-heading .indicator {
@ -2849,10 +2831,6 @@ h4 {
word-break: break-word
}
.content h2, .content h3, .content h4, .content h5, .content h6 {
padding: 0.5em 0
}
blockquote {
font-family: 'Linux Libertine','Georgia','Times',serif;
font-size: 1.1em;
@ -5395,7 +5373,9 @@ nav ul {
}
/*GK Added styles for other languages*/
h3 .mw-headline {padding-top:1em;}
h3 .mw-headline {
padding-top: 1em;
}
.qbDiv, .qbRightDiv {
box-sizing: border-box;
@ -5432,17 +5412,24 @@ h3 .mw-headline {padding-top:1em;}
margin-right: auto;
}
.qbImage div.tright, .qbImage .thumb.tright {
float: none;
margin: 0;
padding: 0;
}
.qbImage div.tright, .qbImage .thumb.tright {
float: none;
margin: 0;
padding: 0;
}
.content figure .thumbinner, .content .thumbinner {
margin: 0 1.4em 0 0;
max-width: 100% !important;
}
.content h2, .content h3, .content h4, .content h5, .content h6 {
padding: 0.5em 0;
margin-bottom: 0.5em;
font-family: "Linux Libertine","Georgia","Times",serif;
}
@media all and (min-width:640px) {
.thumb.tright {
float: right;
@ -5500,8 +5487,4 @@ h3 .mw-headline {padding-top:1em;}
margin-left: auto;
margin-right: auto;
}
}

View File

@ -131,7 +131,7 @@ define(['util'], function(util) {
var innerDocument = document.getElementById('articleContent').contentDocument;
//Add any missing classes
innerDocument.body.innerHTML = innerDocument.body.innerHTML.replace(/(class\s*=\s*["'][^"']*vcard\b[^>]+>\s*<span)>/ig, '$1 class="map-pin">');
innerDocument.body.innerHTML = innerDocument.body.innerHTML.replace(/(<h2\b[^<]+external_links(?:[^<]|<(?!\/div>|\/details>))+<ul\s*(?!class="externalLinks"))/i, '$1 class="externalLinks" ');
innerDocument.body.innerHTML = innerDocument.body.innerHTML.replace(/(<(?:h2|span)\b[^<]+external_links(?:[^<]|<(?!\/div>|\/details>))+?<ul\s*(?!class="externalLinks"))/i, '$1 class="externalLinks" ');
innerDocument.body.innerHTML = innerDocument.body.innerHTML.replace(/(<h2\b[^<]+see_also(?:[^<]|<(?!\/div>|\/details>))+<ul\s*(?!class="seeAlso"))/i, '$1 class="seeAlso" ');
innerDocument.body.innerHTML = innerDocument.body.innerHTML.replace(/(<div\s+)([^>]+>\s+This article is issued from)/i, '$1class="copyLeft" $2');
// Remove openInTab div (we can't do this using DOM methods because it aborts code spawned from onclick event)