MediaWiki:Common.css

From TED Notepad
Revision as of 16:54, 14 November 2021 by Jsimlo (talk | contribs)

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
 /**************************************/
/* global things, wiki customizations */

#globalWrapper {
 position: relative;
}

#bodyContent a[href^="https://"] {
 background: transparent !important;
 padding: 0 !important;
}

#content {
 background-color: #fcfcfc;
 color: black;
}

A {
 white-space: nowrap;
}

A.new {
 color: red !important;
}

TABLE.toc {
 margin-top: 30px;
 margin-bottom: 30px;
}

BODY, li#pt-userpage, li#pt-anonuserpage, li#pt-login {
 background-image: none !important;
}

#bodyContent H1, #bodyContent H2, #bodyContent H3, #bodyContent H4, #bodyContent H5, #bodyContent H6 {
 padding-top: 2em;
}

#content H4 {
 font-size: 130%;
}

div#footer {
	border-color: silver !important;
}

div#userloginForm form,
div#userlogin form#userlogin2 {
	clear: none;
}

 /**********************/
/* special tnp tables */ 

DIV.tnp_manversion,
DIV.tnp_headline {
 text-align: right;
 font-size: 80%;
}

DIV.tnp_manversion B {
 font-size: 125%;
 color: red;
}

DIV.tnp_anchor {
 float: right;
 font-size: 80%;
}

TABLE.tnp_screenshot {
 background-color: #eeeeff;
 color: black;
 border: 1px solid;
 margin-left: 10px;
 margin-bottom: 10px;
}

TABLE.tnp_todo {
 background-color: #ffaaaa;
 color: black;
 border: 1px solid;
 padding-left: 3px;
 padding-right: 3px;
}

TABLE.tnp_hotkeys TH {
 vertical-align: top;
 background-color: #d0d0d0;
 color: black;
}

TABLE.tnp_hotkeys TD {
 vertical-align: top;
}

DIV.tnp_faq {
 background-color: #eeddff;
 color: black;
 border: 1px dashed;
 padding-top: 5px;
 padding-left: 10px;
 padding-right: 10px;
 padding-bottom: 5px;
}

TABLE.tnp_relediff TD {
 background-color: #e0e0e0;
}

TABLE.tnp_relediff TH {
 background-color: #d0d0d0;
}

TABLE.tnp_example {
 margin-bottom: 1em;
}

TABLE.tnp_example CAPTION {
 margin-top: 1em;
 text-align: left;
 white-space: nowrap;
}

TABLE.tnp_example TD {
 font-family: monospace;
}

TABLE.tnp_example TD {
 display: block;
 white-space: pre;
 line-height: normal;
 color: black;
 background-color: white;
 border: 1px solid;
 padding: 5px 20px 5px 20px;
}

TABLE.tnp_example TR.tnp_cmdline TD {
 color: silver;
}

TABLE.tnp_example TR.tnp_cmdline TD B {
 color: black;
}

TABLE.tnp_example TD SAMP {
 background-color: darkblue;
 color: white !important;
}


 /************************/
/* features/tools names */ 

CITE,
CITE A {
	color: purple !important;
	font-style: italics;
	white-space: nowrap;
}

CITE B,
CITE B A {
	font-style: normal !important;
	color: black !important;
}

 /***********/
/* hotkeys */ 

KBD {
	background-color: #eee;
	border: 1px solid #ccc;
	border-radius: 3px 3px 3px 3px;
	box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2), inset 1px 2px 2px #fff;
	display: inline-block;
	font-family: monospace;
	padding: 0 0.6em;
	margin: 0 4px;
	text-shadow: 0 1px 0 #fff;
	white-space: nowrap;
	color: #333;
}

 /***************/
/* definitions */ 

Q {
	color: maroon;
	font-style: italics !important;
}
Q A {
	white-space: nowrap;
	color: black !important;
	font-style: italics !important;
	text-decoration: none !important;
}
Q A:hover {
	color: maroon !important;
	font-style: italics !important;
	text-decoration: underline !important;
}

 /**********/
/* values */ 

VAR,
VAR A {
	color: green !important;
	font-style: italics;
	font-family: monospace;
	white-space: nowrap;
	display: inline-block;
}

/* whitespaces can not be 'nowrap' here!!! it is not enough! */

VAR {
	margin: -1px 0;
	padding: 0 1px;
}
VAR:hover {
	outline: 1px dashed green;
	background-color: #eee;
}

SPAN.system,
SPAN.system A {
	color: green !important;
	font-style: italics;
	white-space: nowrap;
}

 /***********/
/* regexps */ 

VAR.regexp {
	outline: 0;
	background-color: transparent;
	font-weight: bold;
	font-style: normal;
	color: maroon !important;
	border: 0;
	border-radius: 3px 3px 3px 3px;
	box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2), inset 1px 2px 2px #fff;
	padding: 1px 3px;
	margin: 0 4px;
}

 /********************************/
/* special/unimportant comments */ 

SMALL VAR {
	color: gray !important;
	font-style: italics;
	white-space: normal !important;
}

 /**************************/
/* inserts and todo lists */ 

INS {
	text-decoration: none;
	background-color: yellow !important;
}
DEL {
	color: gray;
	text-decoration: line-through;
}

 /*********************************/
/* obsolete, should not be used! */ 

CODE {
	white-space: nowrap;
}

SPAN.deprecated {
	color: white;
	background-color: red;
}


 /*******/
/* ads */ 

DIV#tednpadAdsRight {
	position: absolute;
	right: -5px;
	border: 1px solid black;
}

DIV#bodyContent {
	padding-right: 170px;
}

NAV#p-ads.emptyPortlet {
	display: block;
}