bdbrown

Hueman Toggle S1 Sidebar Same As S2

Feb 17th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.82 KB | None | 0 0
  1. /* ------------------------------------------------------------------------- *
  2.  *  Toggle Sidebar s1 at same time as s2
  3. /* ------------------------------------------------------------------------- */
  4. @media only screen and (min-width: 480px) and (max-width: 1200px) {
  5.    
  6.     /* s1 general */
  7.     .s1 { width: 50px; }
  8.     .s1 .sidebar-content { display: none; float: left; width: 100%; }
  9.     .s1 .sidebar-toggle { display: block; }
  10.    
  11.     /* s1 expand/collapse */
  12.     .s1-expand .s1 { background: #f0f0f0; position: absolute; top: 0; bottom: 0; width: 340px; margin: 0!important; z-index: 9; overflow: auto;
  13.     -moz-transition: width .2s ease; -webkit-transition: width .2s ease; transition: width .2s ease; } 
  14.     .s1-expand .s1 .sidebar-content,
  15.     .s1-expand .s1 .post-nav { display: block; min-width: 340px; }
  16.     .s1-collapse .s1 .sidebar-content,
  17.     .s1-collapse .s1 .sidebar .post-nav { display: none; }
  18.    
  19.     /* s1 toggle icon */
  20.     .col-2cl.s1-expand .s1 .icon-sidebar-toggle:before,
  21.     .col-3cl.s1-expand .s1 .icon-sidebar-toggle:before { content: "\f101"; }
  22.     .col-2cr.s1-expand .s1 .icon-sidebar-toggle:before,
  23.     .col-3cm.s1-expand .s1 .icon-sidebar-toggle:before,
  24.     .col-3cr.s1-expand .s1 .icon-sidebar-toggle:before { content: "\f100"; }
  25.  
  26.     /* 2 column, content right */
  27.     .col-2cr .main-inner { background-position: -290px 0!important; padding-left: 50px; }
  28.     .col-2cr .s1 { margin-left: -50px; }
  29.     .col-2cr.s1-expand .s1 { left: 0; }
  30.    
  31.     /* 2 column, content left */
  32.     .col-2cl .main-inner { background-image: url(img/sidebar/s-right-collapse.png); padding-right: 50px; }
  33.     .col-2cl .s1 { margin-right: -50px; }
  34.     .col-2cl.s1-expand .s1 { right: 0; }
  35.     .col-2cl.s1-expand .sidebar-toggle { float: right; }
  36.    
  37.     /* 3 column, content middle */
  38.     .col-3cm .main-inner { background-position: -290px 0!important; padding-left: 50px; }  
  39.     .col-3cm .s1 { margin-left: -50px; }   
  40.     .col-3cm .s2 { margin-right: -50px; }
  41.     .col-3cm.s1-expand .s1 { left: 0; }
  42.     .col-3cm.s2-expand .s2 { right: 0; }
  43.    
  44.     /* 3 column, content left */
  45.     .col-3cl .main { background-image: none; }
  46.     .col-3cl .main-inner { background: url(img/sidebar/s-right-dual-full-collapse.png) repeat-y right; padding-right: 100px; }
  47.     .col-3cl .s1 { margin-right: -100px; }
  48.     .col-3cl .s2 { margin-right: -50px; }
  49.     .col-3cl.s1-expand .s1 { right: 0; }   
  50.     .col-3cl.s2-expand .s2 { right: 50px; }
  51.    
  52.     /* 3 column, content right */
  53.     .col-3cr .main { background-image: none; }
  54.     .col-3cr .main-inner { background: url(img/sidebar/s-left-dual-full-collapse.png) repeat-y left; padding-left: 100px; }
  55.     .col-3cr .s1 { margin-left: -100px; }
  56.     .col-3cr .s2 { margin-left: -50px; }
  57.     .col-3cr.s1-expand .s1 { left: 0; }
  58.     .col-3cr.s2-expand .s2 { left: 50px; }
  59.    
  60.     /* ipad, iphone fix */
  61.     .safari .s1 { min-width: 50px; max-width: 50px; width: auto; }
  62.     .safari.s1-expand .s1 { min-width: 340px; max-width: 340px; width: auto; }
  63. }
Advertisement
Add Comment
Please, Sign In to add comment