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

From Wikimedia District of Columbia
Jump to navigation Jump to search
(Working)
(Some code cleanup and comments)
Line 41: Line 41:
 
}
 
}
 
#p-personal {
 
#p-personal {
position:relative !important;
+
position:relative;
 
width:100%;
 
width:100%;
 
padding-bottom:2.5em;
 
padding-bottom:2.5em;
Line 57: Line 57:
 
}
 
}
 
#p-views {
 
#p-views {
margin-left:0.5em;
+
padding-left:0.5em;
 
}
 
}
 
div#content {
 
div#content {
Line 63: Line 63:
 
border-left: 0;
 
border-left: 0;
 
margin-left: 0;
 
margin-left: 0;
margin-top: 3em;
+
margin-top: 3em; /* Allows room for top features */
}
 
#left-navigation {
 
/* Make sure the 1px blue border on the left side is not visible */
 
margin-left: -1px;
 
}
 
#simpleSearch {
 
width:auto;
 
 
}
 
}
 
}
 
}

Revision as of 20:50, 9 June 2013

/* For mobile devices */

@media only screen and (max-device-width:480px) {
  
  /*
    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.
  */
  
  /* 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:after {
    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 {
    position:relative;
    width:100%;
    padding-bottom:2.5em;
    top:inherit;
    left:inherit;
    right:inherit;
  }
  #left-navigation,
  #right-navigation {
    position:relative;
    display:inline;
    top:inherit;
    margin-top:0.5em;
    float:none;
  }
  #p-views {
    padding-left:0.5em;
  }
  div#content {
    /* Hide the 1px blue border on the left side */
    border-left: 0;
    margin-left: 0;
    margin-top: 3em; /* Allows room for top features */
  }
}