MediaWiki:Common.css

From OpenVZ Virtuozzo Containers Wiki
Revision as of 11:05, 1 March 2008 by Kir (talk | contribs) (try to make sortable wikitable odd/even rows different)
Jump to: navigation, search

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: 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.
/* <pre><nowiki> */

/* Some stuff is taken from wikimedia/common.css */

.hiddenStructure {display: none}

.if {display: none}


/* wikitable/prettytable class for skinning normal tables */

table.wikitable,
table.prettytable {
  margin: 1em 1em 1em 0;
  background: #f9f9f9;
  border: 1px #7dae96 solid;
  border-collapse: collapse;
  text-align: left;
}

table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
  border: 1px #aaaaaa solid;
  padding: 0.2em;
}

table.wikitable th,
table.prettytable th {
  background: #f2f2f2;
  text-align: center;
}

table.wikitable tr .odd,
table.prettytable tr .odd {
    /*every second line should be shaded */
    background-color: transparent;
}

table.wikitable caption,
table.prettytable caption {
  margin-left: inherit;
  margin-right: inherit;
}

.allpagesredirect {
  font-style: italic;
}

/* Infobox template style */

.infobox {
   border: 1px solid #7dae96;
   background-color: #f7f9fa;
   color: black;
   margin-bottom: 0.5em;
   margin-left: 1em;
   padding: 0px;
   float: right;
   clear: right;
}
.infobox td,
.infobox th {
   vertical-align: top;
   padding: 0px;
   padding-left: 0.5em;
   padding-right: 0.5em;
   margin: 0px;
}
.infobox th {
   background-color: #d6e5de;
   padding: 0.5em;
}
.infobox caption {
   font-size: larger;
   margin-left: inherit;
}
.infobox.bordered {
   border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
   border: 1px solid #7dae96;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
   border: 0;
}

.infobox.sisterproject {
   width: 20em;
   font-size: 90%;
}

.notice {
    text-align: justify;
    margin: 1em;
    padding: 0.2em;
}

/* Content in columns with CSS instead of tables [[Template:Columns]] */
div.columns-2 div.column {
    float: left;
    width: 50%;
    min-width: 300px;
}

div.columns-3 div.column {
    float: left;
    width: 33.3%;
    min-width: 200px;
}

div.columns-4 div.column {
    float: left;
    width: 25%;
    min-width: 150px;
}

div.columns-5 div.column {
    float: left;
    width: 20%;
    min-width: 120px;
}

/* This stuff is for making the site look more OpenVZ-like (i.e. greenish/plonish).
   Taken from MediaWiki:Openvz.css, done by Kir
*/

a, #bodyContent a.external {
    text-decoration: none;
    color: #436976;
    background-color: transparent;
}

.portlet h5 {
    background: url(http://openvz.org/tab-bg-sel.gif) repeat-x 0% 100%;
}

.pBody {
    border: 1px solid #7dae96;
    border-left: none;
}

h1, h2 {
    border-bottom: 1px solid #7dae96;
}

pre {
    font-size: 90%;
    padding: 1em;
    border: 1px dashed #7dae96;
    color: Black;
    white-space: pre;
    overflow: auto;
}

tt,pre,code {
    font-family: "Andale Mono", "Vera Sans Mono", Courier, monospace;
    background-color: #f7f9fa;
    text-align: left;
}

#p-personal li {
    background: transparent url(http://static.openvz.org/linkOpaque.gif) center left no-repeat;
    padding-left: 8px;
    color: #436976;
}

#p-personal li a {
    text-decoration: none;
    color: #436976;
}

#content {
	border: 1px solid #7dae96;
        border-right: none;
//     	opacity: .8; /* For Mozilla and Opera */
//	filter: alpha(opacity=80); /* For MSIE, might not work */
}

li#pt-userpage,
li#pt-anonuserpage,
li#pt-login {
	background: transparent url(http://static.openvz.org/user.gif) center left no-repeat !important;
	padding-left: 20px;
	text-transform: none;
}

/* Plone-like input fields */
textarea {
    font: 110% "Andale Mono", "Vera Sans Mono", Courier, monospace;
    border: 1px solid #7dae96;
    color: Black;
    background-color: white;
    width: 100%;
}

input {
    font-family: Tahoma, Arial, sans-serif;
    visibility: visible;
    border: 1px solid #7dae96;
    color: Black;
    background-color: white;
    vertical-align: middle;
}

#searchInput {
    margin-bottom: 0.5em;
    width: 9.25em;
}

select {
    border: 1px solid #7dae96;
    color: Black;
    background-color: White;
    vertical-align: top;
}

input:focus, 
textarea:focus {
    border-color: #ffa500;
    border-width: 1px;
}

button, input[type=button], input[type=reset], input[type=submit] {
    background: transparent url(http://static.openvz.org/linkTransparent.gif) 9px 1px no-repeat;
    cursor: pointer;
    font-size: 85%;
    margin-bottom: 1em;
    padding: 1px 1px 1px 15px;
    text-transform: lowercase;
}

input.searchButton {
    font-size: 100%;
    margin-bottom: 1px ! important;
    background: White url(http://static.openvz.org/search_icon.gif) 2px 1px no-repeat;
    cursor: pointer;
    padding: 1px 1px 1px 15px;
    text-transform: lowercase;
}

input.searchButton#searchGoButton {
    background: transparent url(http://static.openvz.org/linkTransparent.gif) 9px 1px no-repeat;
    padding: 1px 1px 1px 15px;
}

input.historysubmit {
    padding: 0 1px 1px 15px !important;
}

input[type=radio], input[type=checkbox] {
    border: none;
}

#p-sites a {
    display: block;
}

/* For tag cloud, taken from http://orangedino.org/index.php?name=News&file=article&sid=1 */
.tagcloud {
    width: 98%;
    text-align: center;
    background-color: #FDFDFD;
    border: 1px solid #EEEEEE;
    padding: 15px 10px 15px 10px;
}

.tagcloud a {
    color: #0052CB;
    margin-left: 10px;
    margin-right: 10px;
    font-weight: bold;
    white-space:nowrap;
}

#toc,
.toc {
    background: #f9f9f9 url('http://static.openvz.org/bg/openvz-logo-bg-trans.png') no-repeat bottom right;
}
/* </nowiki></pre> */