_content_with_menu.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. // CONTENT WITH MENU
  2. // -----------------------------------------------------------------------------
  3. /* Content With Menu - Menu Faux Column for Scroll and Boxed Layouts Colors */
  4. @media only screen and (min-width: 768px) {
  5. html.scroll,
  6. html.boxed {
  7. .content-with-menu {
  8. &:before {
  9. background: $sidebar-background;
  10. }
  11. &:after {
  12. background: #000;
  13. box-shadow: 0px 0 4px 2px rgba(0, 0, 0, 0.5);
  14. }
  15. }
  16. }
  17. }
  18. // REMOVE NANO STYLE FOR BOXED AND SCROLL
  19. // -----------------------------------------------------------------------------
  20. /* Unstyle nano for non fixed layouts */
  21. html.scroll,
  22. html.boxed {
  23. .inner-menu,
  24. &.no-overflowscrolling.custom-scroll .inner-menu {
  25. .nano {
  26. position: static;
  27. height: auto;
  28. overflow: visible;
  29. width: auto;
  30. > .nano-content {
  31. position: static;
  32. overflow: visible;
  33. }
  34. }
  35. }
  36. }
  37. @media only screen and (max-width: 767px) {
  38. html.fixed {
  39. .inner-menu {
  40. .nano {
  41. position: static;
  42. height: auto;
  43. overflow: visible;
  44. width: auto;
  45. .nano-content {
  46. margin-right: 0;
  47. position: static;
  48. overflow: visible;
  49. }
  50. }
  51. }
  52. }
  53. }
  54. // FIX PADDING WHEN USING NANO
  55. // -----------------------------------------------------------------------------
  56. /* Fix padding when fixed */
  57. @media only screen and (min-width: 768px) {
  58. html.fixed {
  59. .inner-menu {
  60. padding: 0;
  61. .nano-content {
  62. padding: 35px;
  63. &:after {
  64. display: block;
  65. content: '';
  66. height: 35px;
  67. }
  68. }
  69. }
  70. }
  71. }
  72. // MENU INNER STYLE
  73. // -----------------------------------------------------------------------------
  74. /* Content With Menu - Inner Menu Style */
  75. .inner-menu {
  76. background: $sidebar-background;
  77. border-right: 1px solid darken($dark-color-4, 5%);
  78. color: #abb4be;
  79. padding: 0;
  80. margin: 0;
  81. .title {
  82. color: #465162;
  83. font-weight: 600;
  84. margin: 10px 0;
  85. padding: 0;
  86. text-transform: uppercase;
  87. }
  88. hr.separator {
  89. background-image: -webkit-linear-gradient(left, transparent, rgba(0, 0, 0, 0.4), transparent);
  90. background-image: -moz-linear-gradient(left, transparent, rgba(0, 0, 0, 0.4), transparent);
  91. background-image: -ms-linear-gradient(left, transparent, rgba(0, 0, 0, 0.4), transparent);
  92. background-image: -o-linear-gradient(left, transparent, rgba(0, 0, 0, 0.4), transparent);
  93. margin: 20px -35px 20px;
  94. }
  95. a,
  96. a:hover {
  97. color: #abb4be;
  98. }
  99. a.menu-item {
  100. color: #abb4be;
  101. display: block;
  102. margin: 0 -35px 0 -35px;
  103. padding: 10px 50px 10px 50px;
  104. text-decoration: none;
  105. &:hover {
  106. background: #21262d;
  107. color: #abb4be;
  108. text-decoration: none;
  109. }
  110. &.active {
  111. background: #282d36;
  112. }
  113. .label {
  114. font-weight: normal;
  115. font-size: 10px;
  116. font-size: 1rem;
  117. padding: .3em .7em .4em;
  118. margin: .2em -1em 0 0;
  119. }
  120. }
  121. }
  122. /* Content With Menu - Toggle */
  123. .inner-menu-toggle,
  124. .inner-menu .inner-menu-toggle-inside {
  125. background: #000;
  126. color: #999;
  127. left: 0;
  128. line-height: 52px;
  129. position: relative;
  130. overflow: hidden;
  131. text-align: left;
  132. text-decoration: none;
  133. &:after {
  134. box-shadow: 0 0px 3px 0 rgba(255, 255, 255, 0.7);
  135. bottom: -1px;
  136. content: '';
  137. display: block;
  138. height: 1px;
  139. left: 0;
  140. position: absolute;
  141. right: 0;
  142. }
  143. a {
  144. display: block;
  145. padding-left: 20px;
  146. text-decoration: none;
  147. i {
  148. vertical-align: middle;
  149. }
  150. }
  151. .inner-menu-collapse {
  152. display: none;
  153. }
  154. }
  155. .inner-menu-toggle a i {
  156. margin-left: 5px;
  157. }
  158. .inner-menu-toggle-inside {
  159. margin: -35px -35px 15px -35px;
  160. .inner-menu-collapse i {
  161. margin-right: 5px;
  162. }
  163. .inner-menu-expand i {
  164. margin-left: 5px;
  165. }
  166. }
  167. /* Content With Menu - Toggle - Outside */
  168. .inner-menu-toggle {
  169. display: none;
  170. }
  171. /* Content With Menu - Inner Menu Content */
  172. .inner-menu-content {
  173. display: none;
  174. }
  175. // TOGGLE OPENED
  176. // -----------------------------------------------------------------------------
  177. html.inner-menu-opened {
  178. .inner-menu .inner-menu-toggle-inside .inner-menu-collapse {
  179. display: block;
  180. }
  181. .inner-menu-expand {
  182. display: none;
  183. }
  184. .inner-menu-content {
  185. display: block;
  186. }
  187. }
  188. /* Content With Menu - Responsive */
  189. @media only screen and (max-width: 767px) {
  190. .inner-menu {
  191. .hidden-xs-inline {
  192. display: none;
  193. }
  194. .inner-menu-content {
  195. padding: 20px;
  196. }
  197. }
  198. .inner-menu-toggle-inside {
  199. margin: 0;
  200. }
  201. }
  202. /* Content With Menu - Toolbar + Layout Fixed */
  203. @media only screen and (min-width: 768px) {
  204. html.fixed {
  205. &.inner-menu-opened {
  206. left: $sidebar-left-full-width + $inner-menu-width;
  207. }
  208. .inner-menu-toggle {
  209. position: fixed;
  210. left: $sidebar-left-full-width;
  211. }
  212. }
  213. }
  214. // DARK SKIN
  215. // -----------------------------------------------------------------------------
  216. html.dark {
  217. .inner-menu-toggle:after,
  218. .inner-menu .inner-menu-toggle-inside:after {
  219. box-shadow: none;
  220. }
  221. }