User:Archimedes5000/vector.css: Difference between revisions

From Deceive Inc. Wiki
Jump to navigation Jump to search
(Created page with "→‎Mobile styles: @media (max-width:700px) { #left-navigation { margin:40px 0 0 0; } #right-navigation { margin:40px 0 0 0; } .vector-menu-content-list { padding-left:0 !important; } #footer { padding: 0 12px 0 12px; margin-left:0; } #mw-head-base { margin-left:0; } #p-search { display:none; →‎can be moved with js to where it was in REL1_35 and displayed there: } #mw-panel { display:n...")
 
mNo edit summary
Line 1: Line 1:
/*Mobile styles*/
/*Mobile styles*/
@media (max-width:700px) {
@media (max-width:700px) {
  /*remove spacing from head an navigation*/
  #mw-head-base {
      margin-left:0;
  }
   #left-navigation {
   #left-navigation {
       margin:40px 0 0 0;
       margin:43px 0 0 0;
   }
   }
   #right-navigation {
   #right-navigation {
       margin:40px 0 0 0;
       margin:43px 0 0 0;
   }
   }
   .vector-menu-content-list {
   .vector-menu-content-list {
       padding-left:0 !important;
       padding-left:0 !important;
   }
   }
  /*remove spacing from body*/
  #content.mw-body {
      margin:0 !important;
  }
  /*remove spacing from footer (optional)*/
   #footer {
   #footer {
       padding: 0 12px 0 12px;
       padding: 0 12px 0 12px;
       margin-left:0;
       margin-left:0;
   }
   }
   #mw-head-base {
  /*remove menu panel*/
       margin-left:0;
   #mw-panel {
      display:none;
  }
  /*mirror the dropdown to prevent it from overflowing the viewport when it's the first element from the right*/
  #p-cactions>div.vector-menu-content {
       right:-1px;
      left:-27.5833px;
  }
  /*styles for search bar moved with js*/
  div.vector-menu-content>#p-search{
      display:inline-block;
      max-width:calc(100% - 210px);
      min-width:175px;
  }
  #simpleSearch {
      width:100%;
   }
   }
  /*backup styles in case js fails*/
   #p-search {
   #p-search {
      display:none; /*can be moved with js to where it was in REL1_35 and displayed there*/
  }
  #mw-panel {
       display:none;
       display:none;
  }
  #content.mw-body {
      margin:0 !important;
   }
   }
}
}

Revision as of 10:59, 23 March 2024

/*Mobile styles*/
@media (max-width:700px) {
   /*remove spacing from head an navigation*/
   #mw-head-base {
      margin-left:0;
   }
   #left-navigation {
      margin:43px 0 0 0;
   }
   #right-navigation {
      margin:43px 0 0 0;
   }
   .vector-menu-content-list {
      padding-left:0 !important;
   }
   /*remove spacing from body*/
   #content.mw-body {
      margin:0 !important;
   }
   /*remove spacing from footer (optional)*/
   #footer {
      padding: 0 12px 0 12px;
      margin-left:0;
   }
   /*remove menu panel*/
   #mw-panel {
      display:none;
   }
   /*mirror the dropdown to prevent it from overflowing the viewport when it's the first element from the right*/
   #p-cactions>div.vector-menu-content {
      right:-1px;
      left:-27.5833px;
   }
   /*styles for search bar moved with js*/
   div.vector-menu-content>#p-search{
      display:inline-block;
      max-width:calc(100% - 210px);
      min-width:175px;
   }
   #simpleSearch {
      width:100%;
   }
   /*backup styles in case js fails*/
   #p-search {
      display:none;
   }
}