MediaWiki:Common.css

From DreamFactory
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: Clear the cache in Tools → Preferences
/*
 * Any rules which should not be flipped automatically in right-to-left situations should be
 * prepended with @noflip in a comment block.
 *
 * This stylesheet employs a few CSS trick to accomplish compatibility with a wide range of web
 * browsers. The most common trick is to use some styles in IE6 only. This is accomplished by using
 * a rule that makes things work in IE6, and then following it with a rule that begins with
 * "html > body" or use a child selector ">", which is ignored by IE6 because it does not support
 * the child selector. You can spot this by looking for the "OVERRIDDEN BY COMPLIANT BROWSERS" and
 * "IGNORED BY IE6" comments.
 */
@import "mediawiki.mixins";
 
 
/* Overrides */
li#ca-talk, li#ca-unwatch, li#ca-history, li#ca-viewsource, li#ca-view, li#ca-nstab-main {
    display: none !important;
}
 
a, a:visited, a.external, .mw-body a.external, .mw-body a.external:visited {
    color: @link-color;
}
 
a.new {
    font-weight: bold;
}
 
h1, h2, h3, h4, h5, h6 {
    border-bottom: none;
    font-family: @content-heading-font-family;
}
 
h2, h3, h4 {
    border-bottom: 1px solid #efefef;
}
 
h3 {
    font-style: italic;
    font-weight: normal;
}
 
h4 {
    text-transform: uppercase;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.1em;
}
 
b {
    font-weight: 600;
    color: #333;
}
 
table {
    margin: 1em 0;
    border-collapse: collapse;
    border-top: 1px solid #e1e1e1;
}
 
table tr:nth-child(odd) {
   background-color: #f7f7f7;
}
 
table th, table td {
    border: 0;
    border-bottom: 1px solid #e1e1e1 !important;
    vertical-align: top;
    padding: 10px;
    word-wrap: break-word;
}
 
/* Landscape phone to portrait tablet */
@media (max-width: 480px) {
    #mw-content-text table {
        table-layout: fixed;
        width: 100%;
    }
    #mw-content-text th, #mw-content-text td {
        word-wrap: break-word;
    }
}
 
table th {
    color: #333;
}
 
table th pre, table td pre {
    margin-bottom: 0;
}
 
table.ddl-table > * > tr > td {
	font-family: "Source Code Pro", Courier, monospace;
}
 
#mw-content-text ul {
    list-style-type: square !important;
    list-style-image: none !important;
}
 
 
/* Framework */
html {
	font-size: @html-font-size;
}
html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: @content-font-family;
}
body {
	background-color: @menu-background-color;
}
 
/* Content */
.mw-body {
	margin-left: 300px;
	padding: @content-padding;
    padding-top: 0 !important;
    margin-top: 5em;
	border-left: 1px solid @content-border-color;
	color: @content-font-color;
	direction: ltr;
 
	.mw-editsection,
	.mw-editsection-like {
		font-family: @content-font-family;
	}
 
	p {
		line-height: inherit;
		margin: 0.5em 0 1em 0;
	}
 
	h1,
	h2 {
		font-family: @content-heading-font-family;
		line-height: @heading-line-height;
		margin-bottom: 0.25em;
		padding: 0;
	}
 
	h1 {
		font-size: @content-heading-font-size;
	}
	.mw-body-content {
		h1 {
			margin-top: 1em;
		}
	}
 
	h2 {
		margin-top: 1.5em;
        font-size: 30px;
	}
 
	h3,
	h4,
	h5,
	h6 {
		line-height: @content-line-height;
		margin-top: 0.3em;
		margin-bottom: 0;
		padding-bottom: 0;
	}
 
	h3 {
		font-size: 24px;
	}
 
	h3,
	h4 {
		//font-weight: bold;
	}
 
	h4,
	h5,
	h6 {
		//font-size: 100%; /* (reset) */
	}
 
	#toc h2,
	.toc h2 {
		font-size: 100%; /* (reset) */
		font-family: @content-font-family;
	}
 
	.firstHeading {
		/* Change the default from mediawiki.skinning CSS to let indicators float into heading area */
		//overflow: visible;
        font-size: 2.2rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
        line-height: 1.1;
    }
 
	.mw-indicators {
		float: right;
		line-height: @content-line-height;
		font-size: @content-font-size;
		/* Ensure that this is displayed on top of .mw-body-content and clickable */
		position: relative;
		z-index: 1;
	}
 
	.mw-indicator {
		display: inline-block;
		zoom: 1;
		*display: inline;
	}
}
 
/* Hide empty portlets */
div.emptyPortlet {
	display: none;
}
 
ul {
	list-style-type: disc;
	.list-style-image-svg('images/bullet-icon.svg', 'images/bullet-icon.png');
}
 
pre,
.mw-code {
	line-height: 1.3em;
}
 
/* Site Notice (includes notices from CentralNotice extension) */
#siteNotice {
	font-size: 0.8em;
}
 
.redirectText {
	font-size: 140%;
}
 
.mw-body-content {
	position: relative;
	line-height: @content-line-height;
	font-size: @content-font-size;
	z-index: 0;
}
 
#bodyContent {
    margin-right: 0;
}
 
.mw-content-ltr ol, .mw-content-rtl .mw-content-ltr ol,
pre, .mw-code {
	margin-bottom: 10px;
}
 
 
 
h5 {
	font-size: 16px;
}
 
/* CODE OVERRIDES */
 
code {
    border-radius: 2px;
    padding: 1px 2px;
}
 
pre, code {
    color: #444;
    background-color: #fafafa;
    border: 1px solid #e1e1e1;
    font-size: 16px;
    line-height: 1.6;
    font-family: 'Inconsolata', Menlo, Monaco, Consolas, "Courier New", monospace;
}
 
pre {
    word-wrap: normal;
    white-space: pre;
    overflow-x: auto;
}
 
p + pre, p + .mw-highlight > pre {
    margin-top: -15px;
}
 
pre > code { border: 0; }
 
#mw-content-text {
    position: relative;
    //max-width: 900px;
    /*padding-top:10px;*/
}
 
#mw-content-text img {
    max-width: 100%;
}
 
#mw-panel {
    margin: 0 20px 0 0;
    border: 0;
    h3 {
        font-family: @content-font-family;
    }
}
 
#toc, .toc {
    background-color: #fafafa;
    border: 0 none;
    float: right;
    margin: 1em 0 1em 2em;
    width: 250px;
    padding: 0.5em 0 0 2em;
    border: 1px solid #eeeeee;
    font-size: 0.8rem;
    a {
        text-decoration: none;
    }
    .tocnumber {
        display: none;
    }
    .toctext {
        line-height: 1.4;
        display: inline-block;
    }
    .toclevel-2 {
        display: none;
    }
    .toclevel-1 > a > .toctext, > ul > li > a {
        font-weight: 700;
    }
    a b, a strong {
        color: @link-color;
        font-weight: 400;
    }
}
 
 
/* RESPONSIVE SIDEBAR TEST */
 
@media (max-width: 767px) {
    #toc, .toc {
        width: 170px;
    }
    .mw-body {
        margin-left: 0;
    }
    div#mw-head {
        height: 45px !important;
        padding-top: 10px;
    }
    #right-navigation {
        float: none !important;
        margin: 0 !important;
    }
    #p-views, #p-cactions, #p-personal {
        display: none;
    }
    #p-search {
        &:before {
            content: url('images/dreamfactory-sm.png');
        }
        #simpleSearch {
            display: none;
        }
    }
    #content {
        margin-top: 1em;
    }
    div#footer {
        margin-left: 0 !important;
    }
}
 
/* FLOAT OVERRIDING TEST */
 
/*
#mw-navigation {
    float: left;
    width: 100px;
}
 
#content {
    width: 1050px;
    float: right;
    margin-left: 0;
}
 
div#mw-panel {
    position: static !important;
}*/