Jump to content

User:Mandarax/common.css

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* ======== WATCHLIST ======== */

/* Remove rollback from watchlist, recent changes, & user contribs */
.page-Special_Watchlist .mw-rollback-link,
.page-Special_RecentChanges .mw-rollback-link {display:none;}
/* body.mw-special-Contributions .mw-rollback-link {display:none;} */

/* Hide thank from wl,hist&rc */
.page-Special_Watchlist a.mw-thanks-thank-link,
.action-history a.mw-thanks-thank-link,
.page-Special_RecentChanges a.mw-thanks-thank-link {display:none;}
span:has(.mw-thanks-thank-link)::before, /* Hide "(" & ")" */
span:has(.mw-thanks-thank-link)::after {content: normal !important;}

span:has(.mw-rollback-link)::before, /* Hide "(" & ")" */
span:has(.mw-rollback-link)::after {content: normal !important;}

/* Make unviewed items bold */
.mw-special-Watchlist .mw-changeslist-line-watched .mw-title {font-weight: bold;}

/* ======== EDIT SUMMARY ======== */

/* Remove "minor edit" link, then display as plain text; similar for summary */
span#minoredit_helplink a {display:none;}
span#minoredit_helplink:before {content:'minor edit';}

#wpSummaryLabel label {display:none}
#wpSummaryLabel:before {content:'Edit summary:'}

/* ======== RESTORE EDIT LINKS TO THE RIGHT ======== */
span.mw-editsection {float:right;}

/* HIDING */
.postedit, /* Postedit info such as "Your edit was published" */
.updatedmarker {display: none;} /* green highlighted text in histories */

/* ======== ENHANCE LINKS TO ENHANCED ROLLBACK (currently done in js) ======== 
span.mw-rollback-link {background-color:#deed45;} */

/* ======== COLORS TO DISPLAY REDIRECTS ======== */
.mw-body-content a.mw-redirect {color:#308050}
.mw-body-content a.mw-redirect:visited {color:#a7d471}

a.new {color: #ba0000 !important;} /* redlink color (current default: dd3333 */
.selfreference {background-color:pink;}

/* ======== HIDING AND SQUEEZING ======== */
/* Hide log out, beta, sandbox, AntiVandal, and googletrans on top menu */
#p-personal li#pt-logout,
#p-personal li#pt-betafeatures,
#p-personal li#pt-sandbox,
#p-personal li#pt-AntiVandal,
#p-cactions li#ca-TransPopsId {display: none;}

/* Hide selected Twinkle tabs
#p-cactions li#tw-arv,
#p-cactions li#tw-csd,
#p-cactions li#tw-xfd,
#p-cactions li#tw-prod,
#p-cactions li#tw-warn,
#p-cactions li#friendly-welcome,
#p-cactions li#friendly-tag,
#p-cactions li#tw-rpp,
#p-cactions li#tw-lastdiff,
#p-cactions li#tw-deli,
#p-cactions li#tw-batch,
#p-cactions li#tw-pbatch,
#p-cactions li#tw-batch-undel {display:none;}
*/
#p-cactions li#friendly-shared,
#p-cactions li#friendly-talkback,
#p-cactions li#tw-unlink,

#p-cactions li#tw-since,
#p-cactions li#tw-sincemine,
#p-cactions li#tw-curdiff {display:none;}

/* Hide feed links in toolbox */
a.feedlink {background:none; padding-left:0px;}

/* Edit summary width */
input#wpSummary {width: 90%;}

/* Squeeze tabs closer together */
div#globalWrapper #p-cactions li {margin:0 0.1em 0 0;}
#p-cactions li {margin-right:-1px;}
#p-cactions li#ca-talk, #p-catactions li#ca-protect {margin-right:-1px;}

/* Hide clutter – CHECK THE HTML SOURCE, e.g., id="n-sitesupport" */
span#wpSummaryLabel,
div#editpage-copywarn,
div#editpage-copywarn2,
div#editpage-copywarn3,
div.mw-tos-summary,
span.editHelp,
div#p-coll-create_a_book,
div.mw-rc-label-legend,
/*div.mw-history-legend,*/
div.editpage-head-copywarn,
.cancelLink,
.mw-tag-other-edits,
/* #siteSub, /* From Wikipedia, the free encyclopedia */
#n-sitesupport, /* "Donate" from "navigation" portlet */
#n-introduction, /* "Learn to edit" from "contribute" portlet */
.mw-whatlinkshere-tools, /* the "(links | edit)" for each "what links here" entry */
#mw-watchlist-resetbutton, /* Watchlist: Mark all pages as visited */
.mw-changeslist-legend, /* watchlist legend */
/* .mw-revslider-container, /* revision slider (browse history) at top of diffs */
h3#siteSub
{
  display:none !important;
}

/* ======== DIFFS ======== */

td{
    border: 1px solid white;		/* border line around all unchanged ¶, line #s, -, + */
}
table.diff, td.diff-otitle, td.diff-ntitle {
	background-color: white;	/* bkg for whole diff area */
}

td.diff-otitle,
td.diff-ntitle {
	text-align: center;
}

td.diff-marker {
	text-align: right;
	font-weight: bold;
	font-size: 1.25em;
}

td.diff-lineno {
	font-weight: bold;
}

td.diff-addedline,
td.diff-deletedline,
td.diff-context {
	font-size: 88%;
	vertical-align: top;
	white-space: -moz-pre-wrap;
	white-space: pre-wrap;
}

td.diff-addedline,
td.diff-deletedline {
	border-style: solid;
	border-width: 1px 1px 1px 4px;
	border-radius: 0.33em;
}

td.diff-addedline {
	border-color: #C1E6C1;		/* border around added ¶ */
	background: #F6FFF6;		/* bkg of added ¶ */
}

td.diff-deletedline {
	border-color: #DEDE71;		/* border around deleted ¶ */
	background: #FFFFEF;		/* bkg of deleted ¶ */
}

td.diff-context {
	background: #F0EBF0;		/* bkg of unchanged ¶ */
	color: #333333;			/* text of unchanged ¶ */
	border-style: solid;
	border-width: 1px 1px 1px 4px;
	border-color: #E2E0DE;		/* border around unchanged ¶ */
	border-radius: 0.33em;
}

.diffchange {
	font-weight: bold;
	text-decoration: none;
}

table.diff {
	border: none;
	width: 98%;
	border-spacing: 4px;

	/* Ensure that columns are of equal width */
	table-layout: fixed;
}

td.diff-addedline .diffchange,
td.diff-deletedline .diffchange {
	border-radius: 0.33em;
	/* padding: 0.25em 0; */
}

td.diff-addedline .diffchange {
	background: #378118;		/* bkg of added changes */
	color: #FFFFFF;
}

td.diff-deletedline .diffchange {
	background: #9B830C;		/* bkg of deleted changes */
	color: #FFFFFF;
}

table.diff td {
	padding: 0.33em 0.66em;
}

table.diff col.diff-marker {
	width: 2%;
}

table.diff col.diff-content {
	width: 48%;
}

table.diff td div {
	/* Force-wrap very long lines */
	word-wrap: break-word;

	/* As fallback (FF<3.5, Opera <10.5), add scrollbars for very wide cells instead of text overflowing or widening */
	overflow: auto;
}