Difference between revisions of "User:James Hare/vector.css"

From Wikimedia District of Columbia
Jump to navigation Jump to search
(Adjusting max width for the media query)
(Moving to sitewide skin)
 
(72 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* For mobile devices */
 
 
@media only 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 horizontally; hide the logo */
 
div#mw-panel {
 
display: table;
 
position: static;
 
table-layout: fixed;
 
width: 100%;
 
}
 
div#mw-panel .portal {
 
display: block;
 
width:100%;
 
vertical-align: top;
 
}
 
#mw-panel ul li {
 
list-style:none;
 
display:inline;
 
}
 
#mw-panel ul li:before {
 
content: " ◦ ";
 
}
 
#p-logo {
 
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;
 
}
 
#left-navigation,
 
#right-navigation {
 
position:absolute;
 
display:inline;
 
top:inherit;
 
margin-top:-1px;
 
float:none;
 
}
 
#left-navigation {
 
margin-left:-1px;
 
}
 
#p-views {
 
margin-left:-1px;
 
padding-left:0.5em;
 
}
 
#p-search {
 
width:100%;
 
}
 
#p-namespaces {
 
display:none;
 
}
 
#p-cactions {
 
float:right;
 
}
 
#p-cactions ul {
 
right:0;
 
}
 
div#content {
 
/* Hide the 1px blue border on the left side */
 
border-left: 0;
 
margin-left: 0;
 
}
 
}
 

Latest revision as of 17:59, 14 March 2015