Difference between revisions of "MediaWiki:Common.css"

From ScientificComputing
Jump to: navigation, search
 
Line 144: Line 144:
 
     display: none;
 
     display: none;
 
}
 
}
 +
 +
/* css classes for alignment of columns in wiki tables */
 +
 +
table.col-1-center td:nth-child(1) { text-align: center; }
 +
table.col-2-center td:nth-child(2) { text-align: center; }
 +
table.col-3-center td:nth-child(3) { text-align: center; }
 +
table.col-4-center td:nth-child(4) { text-align: center; }
 +
table.col-5-center td:nth-child(5) { text-align: center; }
 +
table.col-6-center td:nth-child(6) { text-align: center; }
 +
table.col-7-center td:nth-child(7) { text-align: center; }
 +
table.col-8-center td:nth-child(8) { text-align: center; }
 +
table.col-9-center td:nth-child(9) { text-align: center; }
 +
 +
table.col-1-right td:nth-child(1) { text-align: right; }
 +
table.col-2-right td:nth-child(2) { text-align: right; }
 +
table.col-3-right td:nth-child(3) { text-align: right; }
 +
table.col-4-right td:nth-child(4) { text-align: right; }
 +
table.col-5-right td:nth-child(5) { text-align: right; }
 +
table.col-6-right td:nth-child(6) { text-align: right; }
 +
table.col-7-right td:nth-child(7) { text-align: right; }
 +
table.col-8-right td:nth-child(8) { text-align: right; }
 +
table.col-9-right td:nth-child(9) { text-align: right; }

Latest revision as of 08:32, 22 October 2021

/* CSS placed here will be applied to all skins */

/* nowrap class, used for {{nowrap}} template */
.nowrap{
    white-space: nowrap;
}

/* remove title from main page */
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading {
 display: none;
}

/* classes used for formatting of application tables */
.atc1{
display:inline-block;
width:8em;
}

.atc2{
display:inline-block;
width:16em;
}

/* color classes for system status */
.base_status{
font-size:10pt;
font-weight:500;
padding: 1px;
padding-left: 3px;
padding-right: 3px;
color: white;
}

.green_status{
background-color: #008040;
}

.orange_status{
background-color: orange;
}

.red_status{
background-color: red;
}

/* Position the system status in the top middle of the wiki */
#ss_position{
position: absolute;
width: 100%;
text-align: right;
top: 85px;
}

/* Position the ETH logo in the top left of the wiki */
#logo{
position: absolute;
top: 10px;
left: 177px;
width: 135px;
height: 27px;
background: url("https://scicomp.ethz.ch/w/images/b/b0/EthLogo.svg");
background-size: 135px 27px;
background-repeat: no-repeat;
}

/* Some classes for new quick guide tutorial */
.button{
width: 80%;
border-radius: 10px;
padding-top: 6px;
padding-bottom: 6px;
margin: 5px;
text-align:center;
}

.scale-img img {
max-width:100%;
height:auto;
}

/* Standard Navigationsleisten, aka box hiding thingy
   from .de.  Documentation at [[Wikipedia:NavFrame]]. */
div.NavFrame {
	margin: 0;
	padding: 4px;
	border: 1px solid #a2a9b1;
	text-align: center;
	border-collapse: collapse;
	font-size: 95%;
}
div.NavFrame + div.NavFrame {
	border-top-style: none;
	border-top-style: hidden;
}
div.NavPic {
	background-color: #fff;
	margin: 0;
	padding: 2px;
	/* @noflip */
	float: left;
}
div.NavFrame div.NavHead {
	line-height: 1.6em;
	font-weight: bold;
	background-color: #ccf;
	position: relative;
}
div.NavFrame p,
div.NavFrame div.NavContent,
div.NavFrame div.NavContent p {
	font-size: 100%;
}
div.NavEnd {
	margin: 0;
	padding: 0;
	line-height: 1px;
	clear: both;
}
a.NavToggle {
	position: absolute;
	top: 0;
	/* @noflip */
	right: 3px;
	font-weight: normal;
	font-size: 90%;
}

.client-js .NavFrame.collapsed > .NavContent {
	display: none;
}

/* Allow limiting of which header levels are shown in a TOC;
   <div class="toclimit-3">, for instance, will limit to
   showing ==headings== and ===headings=== but no further
   (as long as there are no =headings= on the page, which
   there shouldn't be according to the MoS).
 */
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
    display: none;
}

/* css classes for alignment of columns in wiki tables */

table.col-1-center td:nth-child(1) { text-align: center; }
table.col-2-center td:nth-child(2) { text-align: center; }
table.col-3-center td:nth-child(3) { text-align: center; }
table.col-4-center td:nth-child(4) { text-align: center; }
table.col-5-center td:nth-child(5) { text-align: center; }
table.col-6-center td:nth-child(6) { text-align: center; }
table.col-7-center td:nth-child(7) { text-align: center; }
table.col-8-center td:nth-child(8) { text-align: center; }
table.col-9-center td:nth-child(9) { text-align: center; }

table.col-1-right td:nth-child(1) { text-align: right; }
table.col-2-right td:nth-child(2) { text-align: right; }
table.col-3-right td:nth-child(3) { text-align: right; }
table.col-4-right td:nth-child(4) { text-align: right; }
table.col-5-right td:nth-child(5) { text-align: right; }
table.col-6-right td:nth-child(6) { text-align: right; }
table.col-7-right td:nth-child(7) { text-align: right; }
table.col-8-right td:nth-child(8) { text-align: right; }
table.col-9-right td:nth-child(9) { text-align: right; }