Difference between revisions of "MediaWiki:Common.css"

From CCTV Information
Jump to: navigation, search
 
Line 4: Line 4:
 
#ca-viewsource { display: none !important; }
 
#ca-viewsource { display: none !important; }
 
#ca-history { display: none !important; }
 
#ca-history { display: none !important; }
 +
 +
/* Change the external link icon to an Adobe icon for all PDF files
 +
  in browsers that support these CSS selectors, like Mozilla and Opera */
 +
div#content a[href$=".pdf"].external,
 +
div#content a[href*=".pdf?"].external,
 +
div#content a[href*=".pdf#"].external,
 +
div#content a[href$=".PDF"].external,
 +
div#content a[href*=".PDF?"].external,
 +
div#content a[href*=".PDF#"].external,
 +
div#mw_content a[href$=".pdf"].external,
 +
div#mw_content a[href*=".pdf?"].external,
 +
div#mw_content a[href*=".pdf#"].external,
 +
div#mw_content a[href$=".PDF"].external,
 +
div#mw_content a[href*=".PDF?"].external,
 +
div#mw_content a[href*=".PDF#"].external {
 +
    background: url("//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif") no-repeat right;
 +
    /* @noflip */
 +
    padding-right: 18px;
 +
}

Latest revision as of 23:18, 15 November 2015

/* CSS placed here will be applied to all skins */
#ca-nstab-main { display: none !important; }
#ca-nstab-project { display: none !important; }
#ca-viewsource { display: none !important; }
#ca-history { display: none !important; }

/* Change the external link icon to an Adobe icon for all PDF files
   in browsers that support these CSS selectors, like Mozilla and Opera */
div#content a[href$=".pdf"].external,
div#content a[href*=".pdf?"].external,
div#content a[href*=".pdf#"].external,
div#content a[href$=".PDF"].external,
div#content a[href*=".PDF?"].external,
div#content a[href*=".PDF#"].external,
div#mw_content a[href$=".pdf"].external,
div#mw_content a[href*=".pdf?"].external,
div#mw_content a[href*=".pdf#"].external,
div#mw_content a[href$=".PDF"].external,
div#mw_content a[href*=".PDF?"].external,
div#mw_content a[href*=".PDF#"].external {
    background: url("//upload.wikimedia.org/wikipedia/commons/2/23/Icons-mini-file_acrobat.gif") no-repeat right;
    /* @noflip */
    padding-right: 18px;
}