Difference between revisions of "MediaWiki:Vector.css"
Jump to navigation
Jump to search
(get logo over https) |
James Hare (talk | contribs) (Using wgVectorResponsive setting so mobile-specific code no longer needed; darker background in general) |
||
Line 1: | Line 1: | ||
− | /* CSS placed here will affect users of the Vector skin */ |
||
− | |||
− | /* For mobile devices */ |
||
− | |||
− | @media screen and (max-width:749px) { |
||
− | |||
− | /* |
||
− | The styles below essentially place the navigation menu below the content, |
||
− | instead of to the side of it. They also hide the logo, as there's no space |
||
− | left for it. |
||
− | */ |
||
− | |||
− | #mw-head { |
||
− | position:static !important; |
||
− | margin-top:0.5em; |
||
− | } |
||
− | |||
− | /* Move the panel to the bottom and display it as in-line lists; hide the logo and tabs */ |
||
− | div#mw-panel { |
||
− | display: table; |
||
− | position: static; |
||
− | table-layout: fixed; |
||
− | width: 100%; |
||
− | overflow: hidden; |
||
− | font-size: 150%; |
||
− | } |
||
− | div#mw-panel .portal { |
||
− | display: block; |
||
− | width:100%; |
||
− | } |
||
− | #mw-panel ul li { |
||
− | list-style:none; |
||
− | } |
||
− | #p-logo { |
||
− | display: none; |
||
− | } |
||
− | #left-navigation { |
||
− | display:none; |
||
− | } |
||
− | #p-cactions { |
||
− | display:none; |
||
− | } |
||
− | #p-views { |
||
− | display:none; |
||
− | } |
||
− | |||
− | /* Rearrange various page elements to fill the now-available space */ |
||
− | #p-personal ul { |
||
− | padding-left: 0; |
||
− | } |
||
− | div#footer { |
||
− | margin-left: 0; |
||
− | padding-top: 0; |
||
− | } |
||
− | #p-personal { |
||
− | display:table; |
||
− | position:relative; |
||
− | width:100%; |
||
− | top:inherit; |
||
− | left:inherit; |
||
− | right:inherit; |
||
− | } |
||
− | #right-navigation { |
||
− | max-width:500px; |
||
− | position:absolute; |
||
− | top:inherit; |
||
− | margin-top:-1px; |
||
− | float:none; |
||
− | } |
||
− | #right-navigation:before { |
||
− | content:url("https://wikimediadc.org/w/images/6/60/Mobile_logo.svg"); |
||
− | } |
||
− | #p-search { |
||
− | margin-left: 73px; |
||
− | margin-top: -1.5em; |
||
− | } |
||
− | div#content { |
||
− | /* Hide the 1px blue border on the left side */ |
||
− | border-left: 0; |
||
− | margin-left: 0; |
||
− | } |
||
− | } |
||
− | |||
/* Adjusted Vector Appearance */ |
/* Adjusted Vector Appearance */ |
||
body { |
body { |
||
− | background-color: # |
+ | background-color: #eaecf0; |
} |
} |
||
#mw-page-base { |
#mw-page-base { |
||
− | background-color: # |
+ | background-color: #eaecf0; |
background-image: none; |
background-image: none; |
||
} |
} |
Revision as of 04:43, 15 July 2017
/* Adjusted Vector Appearance */
body {
background-color: #eaecf0;
}
#mw-page-base {
background-color: #eaecf0;
background-image: none;
}
div#content {
border: 1px solid #fff;
}
div.vectorTabs ul li {
background-image: none;
background-color: #fff;
}
#p-views, #p-views *, #p-namespaces, #p-namespaces * {
background-image: none;
}
div.vectorTabs ul li.selected {
font-weight:bold;
}
div.vectorTabs ul li span a:hover {
text-decoration: none;
}
#catlinks {
border:none;
padding:10px;
}
.vectorTabs ul li {
background-color: #fcfcfc !important;
}
#toc {
border:none;
padding:14px;
}