Advertisement
Guest User

Untitled

a guest
Aug 13th, 2014
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. // Read the docs in the directive : app-canvas
  3. // Acts as a drawer on mobile
  4. // collapsible on tablet
  5. // full width on desktop
  6.  
  7. .app-canvas{
  8.  
  9.     position: absolute;
  10.     width: 100%;
  11.     height: 100%;
  12.     overflow: hidden;
  13.  
  14.     > .side-pane, > .content-pane{
  15.         position: absolute;
  16.         left: 0px;
  17.         height: 100%;
  18.         overflow-x: hidden;
  19.     }  
  20.  
  21.     > .side-pane{
  22.        
  23.         background: $appSideBarBackground;
  24.         width: $sideBarMobileWidth;
  25.         @include transition(width 140ms);
  26.    
  27.         @media(min-width: $screen-md){
  28.             width: $sideBarTabletWidth;
  29.         }
  30.  
  31.         @media(min-width: $screen-lg){
  32.             width: $sideBarDesktopWidth;
  33.         }
  34.     }
  35.  
  36.     > .content-pane{
  37.  
  38.         width: $sideBarMobileWidth;
  39.         @include transition(transform 140ms);
  40.  
  41.         @media(min-width: $screen-md){
  42.             left: $sideBarTabletWidth;
  43.             @include experimental(width, calc(100% - #{$sideBarTabletWidth}));
  44.         }
  45.  
  46.         @media(min-width: $screen-lg){
  47.             left: $sideBarDesktopWidth;
  48.             @include experimental(width, calc(100% - #{$sideBarDesktopWidth}));
  49.         }
  50.     }
  51.    
  52.     // Mobile & Portrait Tablet Behavior
  53.     @media(max-width: $screen-md){
  54.         > .side-pane.open ~ .content-pane{
  55.             @include translate( #{$sideBarTabletExpandedWidth - 20px});
  56.         }
  57.  
  58.     }
  59.  
  60.     // Landscape tablet behavior
  61.     @media(min-width: $screen-md) and (max-width: $screen-lg){
  62.  
  63.  
  64.         //> .side-pane:hover,
  65.         > .side-pane.open {
  66.             width: $sideBarTabletExpandedWidth;
  67.         }
  68.  
  69.         //> .side-pane:hover ~ .content-pane,
  70.         > .side-pane.open ~ .content-pane{
  71.             @include translate( #{$sideBarTabletExpandedWidth} );
  72.         }
  73.     }
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement