_skeleton.scss 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017
  1. /*
  2. Name: Theme Base
  3. Written by: Okler Themes - (http://www.okler.net)
  4. Theme Version: @@version
  5. */
  6. html,
  7. body {
  8. background: $body-color;
  9. width: 100%;
  10. }
  11. html {
  12. font-size: $root-font-size + 0px;
  13. }
  14. body {
  15. color: #777;
  16. font-family: $font-primary;
  17. line-height: 22px;
  18. margin: 0;
  19. font-size: $body-font-size + 0px;
  20. overflow-x: hidden;
  21. overflow-y: scroll;
  22. }
  23. a {
  24. color: $color-primary;
  25. }
  26. a:hover, a:focus {
  27. color: lighten($color-primary, 5% );
  28. }
  29. a:active {
  30. color: darken($color-primary, 5% );
  31. }
  32. // LAYOUT STYLE - SCROLL
  33. // -----------------------------------------------------------------------------
  34. /* Layout Base - Main Wrapper */
  35. .body {
  36. min-height: 100vh;
  37. width: 100%;
  38. }
  39. // HEADER
  40. // -----------------------------------------------------------------------------
  41. /* Layout Base - Header */
  42. .header {
  43. height: $header-height;
  44. left: 0;
  45. position: absolute;
  46. right: 0;
  47. top: 0;
  48. }
  49. // INNER WRAPPER
  50. // -----------------------------------------------------------------------------
  51. /* Layout Base - Inner Wrapper */
  52. .inner-wrapper {
  53. display: table;
  54. min-height: 100vh;
  55. padding-top: $header-height;
  56. table-layout: fixed;
  57. overflow: hidden;
  58. width: 100%;
  59. }
  60. // MAIN CONTENT
  61. // -----------------------------------------------------------------------------
  62. /* Layout Base - Content Body */
  63. .content-body {
  64. display: table-cell;
  65. padding: $content-body-padding;
  66. position: relative;
  67. vertical-align: top;
  68. > .row + .row {
  69. padding-top: 10px;
  70. }
  71. }
  72. // PAGE HEADER
  73. // -----------------------------------------------------------------------------
  74. /* Layout Base - Page Header */
  75. .page-header {
  76. background: $page-header-background;
  77. border-bottom: none;
  78. border-left: $page-header-border-left-width solid $page-header-border-left-color;
  79. box-shadow: 1px ($page-header-border-bottom-width - 1) 0 1px $page-header-border-bottom-color;
  80. height: $page-header-height;
  81. margin: (-$content-body-padding) (-$content-body-padding) $content-body-padding (-$content-body-padding);
  82. padding: 0;
  83. }
  84. // SIDEBAR LEFT
  85. // -----------------------------------------------------------------------------
  86. /* Layout Base - Sidebar Left */
  87. .sidebar-left {
  88. background: $sidebar-background;
  89. box-shadow: -$sidebar-border-width 0 0 $sidebar-border-color inset;
  90. color: $color-default-inverse;
  91. display: table-cell;
  92. position: relative;
  93. vertical-align: top;
  94. width: $sidebar-left-full-width;
  95. z-index: $sidebar-left-z-index;
  96. }
  97. /* Layout Base - Sidebar Left Opened ( Larger than mobile ) */
  98. @media only screen and (min-width: 768px) {
  99. html.sidebar-left-collapsed {
  100. .sidebar-left {
  101. width: $sidebar-left-collapsed-width;
  102. }
  103. }
  104. }
  105. // SIDEBAR RIGHT
  106. // -----------------------------------------------------------------------------
  107. /* Layout Base - Sidebar Right */
  108. .sidebar-right {
  109. background: $sidebar-right-background;
  110. bottom: 0;
  111. margin-right: -$sidebar-right-width;
  112. min-height: 100vh;
  113. position: fixed;
  114. right: 0;
  115. top: 0;
  116. width: $sidebar-right-width;
  117. }
  118. /* Layout Base - Sidebar Right Opened ( Larger than mobile ) */
  119. @media only screen and (min-width: 768px) {
  120. html.sidebar-right-opened {
  121. .header {
  122. margin-left: -$sidebar-right-width;
  123. margin-right: $sidebar-right-width;
  124. }
  125. .inner-wrapper {
  126. margin-left: -$sidebar-right-width;
  127. }
  128. .sidebar-right {
  129. margin-right: 0;
  130. }
  131. }
  132. }
  133. // FLEXBOX SUPPORTED
  134. // -----------------------------------------------------------------------------
  135. /* Layout Base - Flexbox supported */
  136. @media only screen and (min-width: 768px) {
  137. html.flexbox,
  138. html.flexboxlegacy {
  139. .inner-wrapper {
  140. @include display(flex);
  141. }
  142. .sidebar-left,
  143. .content-body {
  144. display: block;
  145. @include flex-shrink(0);
  146. }
  147. .content-body {
  148. @include flex(2);
  149. }
  150. }
  151. }
  152. // LAYOUT STYLE - FIXED
  153. // -----------------------------------------------------------------------------
  154. /* Layout Fixed */
  155. @media only screen and (min-width: 768px) {
  156. /* Layout Fixed - Reseting Styles */
  157. html.fixed {
  158. .inner-wrapper,
  159. .sidebar-left,
  160. .content-body {
  161. display: block;
  162. }
  163. }
  164. /* Layout Fixed - Header */
  165. html.fixed {
  166. .header {
  167. position: fixed;
  168. z-index: $header-fixed-z-index;
  169. }
  170. }
  171. /* Layout Fixed - Inner Wrapper */
  172. html.fixed {
  173. .inner-wrapper {
  174. padding-top: $header-height + $page-header-height;
  175. }
  176. }
  177. /* Layout Fixed - Content Body */
  178. html.fixed {
  179. .content-body {
  180. margin-left: $sidebar-left-full-width;
  181. &.has-toolbar {
  182. padding-top: $content-body-padding + $inner-toolbar-height;
  183. }
  184. }
  185. }
  186. /* Layout Fixed - Page header */
  187. html.fixed {
  188. .page-header {
  189. left: $sidebar-left-full-width;
  190. margin: 0;
  191. position: fixed;
  192. right: 0;
  193. top: $header-height;
  194. }
  195. }
  196. /* Layout Fixed - Sidebar Left */
  197. html.fixed {
  198. .sidebar-left {
  199. bottom: 0;
  200. left: 0;
  201. padding-bottom: 50px;
  202. position: fixed;
  203. top: $header-height;
  204. .nano-content {
  205. padding-bottom: 50px;
  206. }
  207. }
  208. }
  209. /* Layout Fixed - Sidebar Left Collapsed */
  210. html.fixed.sidebar-left-collapsed {
  211. .page-header {
  212. left: $sidebar-left-collapsed-width;
  213. }
  214. .content-body {
  215. margin-left: $sidebar-left-collapsed-width;
  216. }
  217. }
  218. /* Layout Fixed - Sidebar Right Opened */
  219. html.fixed.sidebar-right-opened {
  220. .page-header {
  221. left: 0;
  222. margin-right: $sidebar-left-full-width;
  223. }
  224. .sidebar-left {
  225. left: -$sidebar-left-full-width;
  226. }
  227. }
  228. /* Layout Fixed - Sidebar Left Collapsed & Sidebar Right Opened */
  229. html.fixed.sidebar-left-collapsed.sidebar-right-opened {
  230. .page-header {
  231. left: -$sidebar-left-full-width;
  232. }
  233. }
  234. }
  235. // LAYOUT STYLE - BOXED
  236. // -----------------------------------------------------------------------------
  237. /* Layout Boxed - small than min-width */
  238. @media only screen and (max-width: 1199px) {
  239. html.boxed {
  240. .header {
  241. border-color: $color-primary;
  242. }
  243. }
  244. }
  245. /* Layout Boxed - larger or equal min width */
  246. @media only screen and (min-width: 1200px) {
  247. /* Layout Boxed - Body Tag */
  248. html.boxed {
  249. body {
  250. background: url(../images/patterns/denim.png) repeat;
  251. }
  252. }
  253. /* Layout Boxed - Main Wrapper */
  254. html.boxed {
  255. .body {
  256. position: relative;
  257. max-width: 1200px;
  258. margin: 0 auto;
  259. background-color: transparent;
  260. }
  261. }
  262. /* Layout Boxed - Header */
  263. html.boxed {
  264. .header {
  265. border-top: 3px solid $color-primary;
  266. height: $header-height + 3;
  267. position: absolute;
  268. top: 25px;
  269. }
  270. }
  271. /* Layout Boxed - Inner Wrapper */
  272. html.boxed {
  273. .inner-wrapper {
  274. padding-top: 88px;
  275. padding-bottom: 25px;
  276. }
  277. }
  278. /* Layout Boxed - Content Body */
  279. html.boxed {
  280. .content-body {
  281. background-color: $body-color;
  282. }
  283. }
  284. /* Layout Boxed - Border Radius */
  285. html.boxed {
  286. .header {
  287. border-radius: 5px 5px 0 0;
  288. }
  289. .sidebar-left {
  290. border-radius: 0 0 0 5px;
  291. }
  292. .content-body {
  293. border-radius: 0 0 5px 0;
  294. }
  295. .sidebar-right {
  296. border-radius: 0 5px 5px 0;
  297. }
  298. }
  299. /* Layout Boxed - Sidebar Right */
  300. html.boxed {
  301. .sidebar-right {
  302. border-top: 3px solid $color-primary;
  303. min-height: 0;
  304. }
  305. }
  306. /* Layout Boxed - Sidebar Right Opened */
  307. html.boxed.sidebar-right-opened {
  308. .body {
  309. overflow: hidden;
  310. }
  311. .header {
  312. border-radius: 5px 0 0 0;
  313. }
  314. .content-body {
  315. border-radius: 0 0 0 5px;
  316. }
  317. .sidebar-right {
  318. bottom: 25px;
  319. position: absolute;
  320. top: 25px;
  321. }
  322. }
  323. }
  324. // LAYOUT MOBILE
  325. // -----------------------------------------------------------------------------
  326. @media only screen and (max-width: 767px) {
  327. html,
  328. body {
  329. background: $body-color;
  330. }
  331. html.mobile-device {
  332. .sidebar-left,
  333. .sidebar-right {
  334. overflow-y: scroll;
  335. overflow-x: hidden;
  336. -webkit-overflow-scrolling: touch;
  337. }
  338. }
  339. body {
  340. min-height: 100vh;
  341. }
  342. .inner-wrapper,
  343. .sidebar-left,
  344. .content-body {
  345. display: block;
  346. }
  347. .body {
  348. min-height: 0;
  349. overflow: visible;
  350. }
  351. .header {
  352. background: none;
  353. border: none;
  354. height: auto;
  355. position: static;
  356. .logo-container {
  357. height: $header-height;
  358. left: 0;
  359. position: fixed;
  360. right: 0;
  361. top: 0;
  362. z-index: 99;
  363. }
  364. .header-right {
  365. background: #FFF;
  366. float: none !important;
  367. height: $header-height;
  368. margin-top: $header-height;
  369. width: 100%;
  370. }
  371. }
  372. .inner-wrapper {
  373. min-height: 0;
  374. padding-top: 0;
  375. //overflow-y: scroll;
  376. }
  377. .content-body {
  378. padding: 0 15px 15px;
  379. }
  380. .page-header {
  381. margin: 0 -15px 20px;
  382. }
  383. .sidebar-left {
  384. bottom: 0;
  385. left: -100%;
  386. min-height: 0;
  387. min-width: 100%;
  388. min-width: 100vw;
  389. padding-top: $header-height;
  390. padding-bottom: 50px;
  391. position: fixed;
  392. overflow: hidden;
  393. top: 0;
  394. z-index: 98 !important;
  395. }
  396. .sidebar-right {
  397. bottom: 0;
  398. left: auto;
  399. right: -100%;
  400. min-height: 0;
  401. margin-right: 0;
  402. min-width: 100%;
  403. min-width: 100vw;
  404. top: 0;
  405. z-index: 100;
  406. }
  407. html.csstransforms {
  408. .sidebar-left,
  409. .sidebar-right {
  410. /* performs better but native android browser
  411. has problems with translate and percentage
  412. @include transition-property(transform);
  413. */
  414. @include transition-property( margin );
  415. @include transition-duration( .25s );
  416. @include transition-timing-function( ease-out );
  417. @include transition-delay( 0 );
  418. }
  419. .sidebar-left {
  420. /* performs better but native android browser
  421. has problems with translate and percentage
  422. @include transform( translateX(0) );
  423. */
  424. margin-left: -25px;
  425. }
  426. .sidebar-right {
  427. /* performs better but native android browser
  428. has problems with translate and percentage
  429. @include transform( translateX(0) );
  430. */
  431. margin-right: -25px;
  432. }
  433. }
  434. /* If desktop is seeing mobile res, fix scrollbars */
  435. html.no-mobile-device {
  436. body {
  437. min-height: 0;
  438. }
  439. .body {
  440. min-height: 100vh;
  441. overflow: hidden;
  442. }
  443. .inner-wrapper {
  444. overflow-y: auto;
  445. }
  446. &.sidebar-left-opened,
  447. &.sidebar-right-opened {
  448. &,
  449. & body {
  450. overflow: hidden;
  451. }
  452. }
  453. }
  454. /* Layout Mobile - Sidebar Left Opened */
  455. html.sidebar-left-opened {
  456. &.no-csstransforms {
  457. .sidebar-left {
  458. left: 0;
  459. }
  460. }
  461. &.csstransforms {
  462. .sidebar-left {
  463. /* performs better but native android browser
  464. has problems with translate and percentage
  465. @include transform( translateX(100%) );
  466. */
  467. margin-left: 100%;
  468. }
  469. }
  470. }
  471. /* Layout Mobile - Sidebar Right Opened */
  472. html.sidebar-right-opened {
  473. &.no-csstransforms {
  474. .sidebar-right {
  475. right: 0;
  476. }
  477. }
  478. &.csstransforms {
  479. .sidebar-right {
  480. /* performs better but native android browser
  481. has problems with translate and percentage
  482. @include transform( translateX(-100%) );
  483. */
  484. margin-right: 100%;
  485. }
  486. }
  487. }
  488. /* Layout Mobile - Sidebar Left Collapsed & Sidebar Right Opened */
  489. html.sidebar-left-collapsed.sidebar-right-opened {
  490. .sidebar-left {
  491. margin-left: -$sidebar-left-full-width;
  492. }
  493. }
  494. }
  495. // INNER LAYOUT - WITH MENU
  496. // -----------------------------------------------------------------------------
  497. /* Content With Menu - Boxed Layout Fixing Spacement on Bottom */
  498. @media only screen and (min-width: 1200px) {
  499. html.boxed {
  500. .content-with-menu {
  501. margin-bottom: -($content-body-padding);
  502. }
  503. }
  504. }
  505. /* Content With Menu - Container */
  506. @media only screen and (min-width: 768px) {
  507. .content-with-menu-container {
  508. display: table;
  509. table-layout: fixed;
  510. width: 100%;
  511. }
  512. }
  513. /* Content With Menu - Menu Faux Column for Scroll and Boxed Layouts */
  514. @media only screen and (min-width: 768px) {
  515. html.scroll,
  516. html.boxed {
  517. .content-with-menu {
  518. &:before {
  519. bottom: -($page-header-height - 3);
  520. content: '';
  521. display: block;
  522. left: 0;
  523. position: absolute;
  524. top: ($page-header-height + 4);
  525. width: $inner-menu-width;
  526. }
  527. &:after {
  528. bottom: -($page-header-height - 4);
  529. content: '';
  530. display: block;
  531. left: -1px;
  532. position: absolute;
  533. top: ($page-header-height + 4);
  534. width: 1px;
  535. z-index: 3;
  536. }
  537. }
  538. }
  539. html.boxed {
  540. .content-with-menu {
  541. &:before {
  542. bottom: 0;
  543. }
  544. &:after {
  545. bottom: 2px;
  546. }
  547. }
  548. }
  549. }
  550. // CONTENT WITH MENU
  551. // -----------------------------------------------------------------------------
  552. .content-with-menu {
  553. margin: -20px -15px 0;
  554. }
  555. /* Content With Menu - Responsive */
  556. @media only screen and (max-width: 767px) {
  557. .content-with-menu {
  558. clear: both;
  559. }
  560. .inner-body {
  561. padding: 40px 15px 0;
  562. }
  563. }
  564. /* Content With Menu - Menu and Body */
  565. @media only screen and (min-width: 768px) {
  566. .content-with-menu {
  567. border-top: ($header-height + $page-header-height) solid transparent;
  568. margin: (-($header-height + $page-header-height + $content-body-padding)) (-$content-body-padding) (-($page-header-height + 3)) (-$content-body-padding);
  569. min-height: 100vh;
  570. }
  571. .inner-menu {
  572. display: table-cell;
  573. vertical-align: top;
  574. }
  575. .inner-body {
  576. display: table-cell;
  577. vertical-align: top;
  578. padding: $content-body-padding;
  579. }
  580. .inner-toolbar {
  581. height: $inner-toolbar-height;
  582. overflow: hidden;
  583. }
  584. .content-with-menu-has-toolbar {
  585. .inner-menu-toggle {
  586. border-radius: 0;
  587. }
  588. .inner-toolbar {
  589. padding-left: $inner-menu-toggle-width;
  590. }
  591. }
  592. }
  593. // FLEXBOX SUPPORTED
  594. // -----------------------------------------------------------------------------
  595. /* Content With Menu - Flexbox supported */
  596. @media only screen and (min-width: 768px) {
  597. html.flexbox,
  598. html.flexboxlegacy {
  599. .content-with-menu-container {
  600. @include display(flex);
  601. }
  602. .inner-menu,
  603. .inner-body {
  604. display: block;
  605. @include flex-shrink(0);
  606. }
  607. .inner-body {
  608. @include flex(2);
  609. }
  610. }
  611. }
  612. /* Content With Menu + Layout Fixed */
  613. @media only screen and (min-width: 768px) {
  614. html.fixed {
  615. .content-with-menu-container,
  616. .inner-menu,
  617. .inner-body {
  618. display: block;
  619. }
  620. .content-with-menu-container {
  621. position: relative;
  622. }
  623. .inner-menu-toggle {
  624. position: absolute;
  625. top: $header-height + $page-header-height + 4;
  626. border-radius: 0 0 $border-radius 0;
  627. width: $inner-menu-toggle-width;
  628. z-index: $inner-menu-toggle-z-index;
  629. }
  630. .inner-menu {
  631. bottom: 0;
  632. display: block;
  633. left: $sidebar-left-full-width;
  634. position: fixed;
  635. margin: 0;
  636. top: $header-height + $page-header-height + 4;
  637. width: $inner-menu-width;
  638. padding: 35px;
  639. z-index: $inner-menu-z-index;
  640. }
  641. .inner-menu-content {
  642. display: block;
  643. }
  644. .inner-body {
  645. margin-left: $inner-menu-width;
  646. border-top: ($header-height + $page-header-height + 3) solid transparent;
  647. margin-top: -110px;
  648. min-height: 100vh;
  649. position: relative;
  650. }
  651. .content-with-menu-has-toolbar .inner-body {
  652. border-top-width: ($header-height + $page-header-height + $inner-toolbar-height + 3);
  653. }
  654. }
  655. }
  656. /* Content With Menu + Layout Scroll & Boxed */
  657. @media only screen and (min-width: 768px) {
  658. html.scroll,
  659. html.boxed {
  660. .inner-menu,
  661. .inner-body {
  662. display: block;
  663. }
  664. .content-with-menu-container {
  665. position: relative;
  666. }
  667. .inner-menu-toggle {
  668. position: absolute;
  669. top: 0;
  670. border-radius: 0 0 $border-radius 0;
  671. width: $inner-menu-toggle-width;
  672. z-index: 3;
  673. }
  674. .inner-menu {
  675. display: block;
  676. position: relative;
  677. margin: 0;
  678. width: $inner-menu-width;
  679. padding: 35px;
  680. }
  681. .inner-menu-content {
  682. display: block;
  683. }
  684. .inner-body {
  685. margin-left: 0;
  686. min-height: 100vh;
  687. position: relative;
  688. }
  689. &.flexbox,
  690. &.flexboxlegacy {
  691. .content-with-menu-container {
  692. @include display(flex);
  693. }
  694. }
  695. }
  696. }
  697. /* Content With Menu + Layout Fixed + Sidebar Left Collapsed */
  698. @media only screen and (min-width: 768px) {
  699. html.fixed.sidebar-left-collapsed {
  700. .inner-menu,
  701. .inner-menu-toggle,
  702. .inner-toolbar {
  703. left: $sidebar-left-collapsed-width;
  704. }
  705. &.inner-menu-opened {
  706. .inner-menu-toggle,
  707. .inner-toolbar {
  708. left: $sidebar-left-collapsed-width + $inner-menu-width;
  709. }
  710. }
  711. }
  712. }
  713. /* Content With Menu + Layout Fixed + Sidebar Right Opened */
  714. @media only screen and (min-width: 768px) {
  715. html.fixed.sidebar-right-opened {
  716. .inner-menu,
  717. .inner-menu-toggle,
  718. .inner-toolbar {
  719. left: -($sidebar-right-width - $sidebar-left-full-width);
  720. }
  721. .inner-toolbar {
  722. margin-right: $sidebar-right-width;
  723. }
  724. &.inner-menu-opened {
  725. .inner-menu-toggle,
  726. .inner-toolbar {
  727. left: -($sidebar-right-width - $sidebar-left-full-width + $inner-menu-width);
  728. }
  729. }
  730. }
  731. }
  732. /* Content With Menu + Layout Fixed + Sidebar Left Collapsed + Sidebar Right Opened */
  733. @media only screen and (min-width: 768px) {
  734. html.fixed.sidebar-left-collapsed.sidebar-right-opened {
  735. .inner-menu,
  736. .inner-menu-toggle,
  737. .inner-toolbar {
  738. left: -($sidebar-right-width - $sidebar-left-collapsed-width);
  739. }
  740. &.inner-menu-opened {
  741. .inner-menu-toggle,
  742. .inner-toolbar {
  743. left: -($sidebar-right-width - $sidebar-left-collapsed-width + $inner-menu-width);
  744. }
  745. }
  746. }
  747. }
  748. /* Resolution gt 767 and lt 1366 - Hide Inner Menu */
  749. @media only screen and (min-width: 768px) and (max-width: 1365px) {
  750. html.fixed,
  751. html.scroll,
  752. html.boxed {
  753. .inner-menu {
  754. display: none;
  755. }
  756. .inner-menu-toggle {
  757. display: block;
  758. }
  759. .inner-body {
  760. margin-left: 0;
  761. }
  762. .content-with-menu-has-toolbar {
  763. .inner-toolbar {
  764. padding-left: $inner-menu-toggle-width;
  765. }
  766. }
  767. &.inner-menu-opened {
  768. .inner-menu {
  769. display: block;
  770. }
  771. .inner-menu-toggle {
  772. display: none;
  773. }
  774. .inner-body {
  775. margin-right: -300px;
  776. }
  777. .content-with-menu-has-toolbar {
  778. .inner-toolbar {
  779. padding-left: 0;
  780. }
  781. }
  782. }
  783. }
  784. html.fixed.inner-menu-opened {
  785. .inner-body {
  786. margin-left: 300px;
  787. }
  788. }
  789. html.scroll,
  790. html.boxed {
  791. .content-with-menu {
  792. &:before {
  793. display: none;
  794. }
  795. }
  796. &.inner-menu-opened {
  797. &:before {
  798. display: block;
  799. }
  800. }
  801. }
  802. }
  803. /* Resolution gt 1366 - Show Inner Menu */
  804. @media only screen and (min-width: 1366px) {
  805. html.fixed,
  806. html.scroll,
  807. html.boxed {
  808. .inner-menu {
  809. display: block;
  810. }
  811. .inner-menu-toggle,
  812. .inner-menu-toggle-inside {
  813. display: none;
  814. }
  815. .inner-body {
  816. margin-right: 0;
  817. }
  818. .content-with-menu-has-toolbar {
  819. .inner-toolbar {
  820. padding-left: 0;
  821. }
  822. }
  823. }
  824. html.fixed.inner-menu-opened {
  825. .inner-body {
  826. margin-left: 300px;
  827. }
  828. }
  829. html.fixed,
  830. html.fixed.inner-menu-opened {
  831. .content-with-menu .inner-toolbar {
  832. left: $sidebar-left-full-width + $inner-menu-width;
  833. }
  834. .inner-menu-toggle,
  835. .inner-menu {
  836. left: $sidebar-left-full-width;
  837. }
  838. }
  839. html.fixed.sidebar-right-opened {
  840. .content-with-menu .inner-toolbar {
  841. left: $sidebar-left-full-width + $inner-menu-width - $sidebar-right-width;
  842. }
  843. .inner-menu,
  844. .inner-menu-toggle {
  845. left: $sidebar-left-full-width - $sidebar-right-width;
  846. }
  847. }
  848. html.fixed.sidebar-left-collapsed,
  849. html.fixed.sidebar-left-collapsed.sidebar-right-opened.inner-menu-opened,
  850. html.fixed.sidebar-left-collapsed.inner-menu-opened {
  851. .content-with-menu .inner-toolbar {
  852. left: $sidebar-left-collapsed-width + $inner-menu-width;
  853. }
  854. .inner-menu-toggle,
  855. .inner-menu {
  856. left: $sidebar-left-collapsed-width;
  857. }
  858. }
  859. html.fixed.sidebar-left-collapsed.sidebar-right-opened {
  860. .content-with-menu .inner-toolbar {
  861. left: $sidebar-left-collapsed-width - $sidebar-right-width + $inner-menu-width;
  862. }
  863. .inner-menu,
  864. .inner-menu-toggle {
  865. left: $sidebar-left-collapsed-width - $sidebar-right-width;
  866. }
  867. }
  868. }
  869. /* Fix IE Scrollbar Overlaying content */
  870. @-ms-viewport {
  871. width: auto !important;
  872. }