side-menu.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  1. @sidebar-min: 50px;
  2. .navbar-side {
  3. background: @sideBar;
  4. width: @navSideWidth;
  5. position: fixed;
  6. border-width: 0 1px 0 0;
  7. z-index: 1027;
  8. box-shadow: 13px 19px 45px -24px rgba(0,0,0,0.72);
  9. .slimScrollBar { background: @white!important; background-color: @white!important; }
  10. .logo {
  11. display: flex;
  12. align-items: center;
  13. padding: 30px 15px;
  14. font-size: 1.3em;
  15. text-decoration: none;
  16. color: @baseHeadingcolor;
  17. font-weight: 900;
  18. white-space: nowrap;
  19. img {
  20. height: 40px;
  21. max-height: 40px;
  22. }
  23. }
  24. .navbar-nav {
  25. margin: 0;
  26. display: block;
  27. }
  28. .side-nav {
  29. border-radius: 0; border: none;
  30. float:none;
  31. li {
  32. border-bottom: 0 none; // for menu border
  33. float: none;
  34. > a {
  35. color: @navSidebarLink;
  36. background-color: @navSidebarLinkBg;
  37. outline: none;
  38. padding: 15px;
  39. text-shadow: none !important;
  40. display:block;
  41. text-decoration:none!important;
  42. transition: all 0.3s ease-in-out;
  43. .mtext {
  44. margin-left: 4px;
  45. }
  46. .fa, .fas, far, .fal, .fab, .fad, .glyphicon {
  47. font-size: @baseFontSize + 3;
  48. }
  49. .fa, .fas, far, .fal, .fab, .fad {
  50. min-width: 20px;
  51. }
  52. .glyphicon {
  53. min-width: 21px;
  54. }
  55. &.active {
  56. border-color: @themeColor;
  57. color: @navSidebarActive;
  58. .fa, .fas, far, .fal, .fab, .fad, .glyphicon {
  59. color: @navSidebarActive;
  60. }
  61. &:after {
  62. display: block;
  63. content: "";
  64. position: absolute!important;
  65. right: 0;
  66. top: 4px;
  67. border-color: transparent @themeColor transparent transparent;
  68. border-width: 16px 10px;
  69. border-style: solid;
  70. }
  71. &:hover, &:focus {
  72. border-color: @themeColor;
  73. }
  74. }
  75. &:hover, &:focus, &:active {
  76. .mtext {
  77. color: darken(@navSidebarLink, 20%);
  78. }
  79. }
  80. }
  81. &.panel {
  82. border-width: 0; margin: 0; border-radius: 0; box-shadow:none!important;
  83. ul li {
  84. border-top: none;
  85. border-bottom: none;
  86. position: relative;
  87. width: 100%;
  88. &:before {
  89. content: "";
  90. display: block;
  91. position: absolute;
  92. z-index: 1;
  93. left: 18px;
  94. top: 0;
  95. bottom: 0;
  96. border: 1px dotted;
  97. border-width: 0 0 0 1px;
  98. border-color: @navSidebarBorder;
  99. }
  100. a {
  101. color: @navSidebarDropdownLink;
  102. background-color: transparent;
  103. padding: 7px 0 9px 37px;
  104. font-size: @font-size-sm;
  105. &.active {
  106. color: @navSidebarActive;
  107. }
  108. &:before {
  109. content: "";
  110. display: block;
  111. width: 7px;
  112. position: absolute;
  113. z-index: 1;
  114. left: 20px;
  115. top: 17px;
  116. border: 1px dotted;
  117. border-width: 1px 0 0;
  118. border-color: @navSidebarBorder;
  119. }
  120. }
  121. a:hover, a:focus, a:active {
  122. color: @navbarDarklink-hover;
  123. }
  124. }
  125. &.open {
  126. a {
  127. background-color: @navSidebarDropdownBg;
  128. .mtext {
  129. color: @navbarDarklink-hover;
  130. }
  131. }
  132. .fa, .fas, far, .fal, .fab, .fad, .glyphicon {
  133. color: @navbarDarklink-hover;
  134. }
  135. li {
  136. .fa, .fas, far, .fal, .fab, .fad, .glyphicon {
  137. color: @navbarDarklink-hover;
  138. }
  139. }
  140. }
  141. }
  142. // Meag Menu Start
  143. &.dropdown-megamenu {
  144. .dropdown-mega {
  145. [class*="col-"] {
  146. width: 100%;
  147. max-width: 100%; min-width: 100%;
  148. flex:1 1 100%;
  149. &.col-html {
  150. margin: 20px 0;
  151. color: @navSidebarDropdownLink;
  152. h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  153. margin-top: 0;
  154. color: @navSidebarDropdownLink;
  155. }
  156. a {
  157. padding: 0;
  158. display: block;
  159. }
  160. .menu-name {
  161. display: none;
  162. }
  163. .img-responsive {
  164. display: block;
  165. max-width: 100%;
  166. height: auto;
  167. }
  168. }
  169. }
  170. }
  171. &.panel {
  172. ul {
  173. li {
  174. &:before {
  175. display: none;
  176. }
  177. a {
  178. padding: 7px 0 9px 0;
  179. background-color: transparent!important;
  180. &:before {
  181. display: none;
  182. }
  183. }
  184. ul {
  185. li {
  186. position: relative;
  187. &:before {
  188. content: "";
  189. display: block;
  190. position: absolute;
  191. z-index: 1;
  192. left: 18px;
  193. top: 0;
  194. bottom: 0;
  195. border: 1px dotted;
  196. border-width: 0 0 0 1px;
  197. border-color: @navSidebarBorder;
  198. }
  199. a {
  200. padding: 7px 0 9px 37px;
  201. &:before {
  202. content: "";
  203. display: block;
  204. width: 7px;
  205. position: absolute;
  206. z-index: 1;
  207. left: 20px;
  208. top: 17px;
  209. border: 1px dotted;
  210. border-width: 1px 0 0;
  211. border-color: @navSidebarBorder;
  212. }
  213. }
  214. }
  215. }
  216. &.menu-divider {
  217. height: 1px;
  218. margin: 9px 0;
  219. overflow: hidden;
  220. background-color: @navSidebarBorder;
  221. width: 100%;
  222. a {
  223. visibility: hidden;
  224. }
  225. }
  226. }
  227. }
  228. }
  229. }
  230. &.mega-menu {
  231. &:before {
  232. display: none!important;
  233. }
  234. .menu-small-box {
  235. color: @navSidebarDropdownLink;
  236. .item-with-icons {
  237. border-bottom-style: dotted;
  238. }
  239. .menu-name {
  240. color: @navSidebarDropdownLink;
  241. span {
  242. display: block;
  243. }
  244. }
  245. }
  246. }
  247. .menu-name {
  248. span {
  249. display: inline-block;
  250. }
  251. }
  252. // Mega Menu End
  253. }
  254. .arrow {
  255. float: right;
  256. text-align: center;
  257. margin-top: 3px;
  258. }
  259. .fa.arrow:before {
  260. content: "\f104";
  261. }
  262. .open > a > .fa.arrow:before {
  263. content: "\f107";
  264. }
  265. .badge, .label {
  266. position: absolute;
  267. top: 11px;
  268. right: 15px;
  269. }
  270. a.accordion-toggle {
  271. .badge, .label {
  272. right: 30px;
  273. }
  274. }
  275. .nav {
  276. background: @navSidebarDropdownBg; /* open menu group background */
  277. >li>a {
  278. padding: 10px 7.5px;
  279. }
  280. .nav-divider {
  281. display: none;
  282. }
  283. }
  284. }
  285. .media {
  286. padding: 1px 0 2px;
  287. .sidebar-shortcuts {
  288. display: block;
  289. padding: 10px;
  290. list-style: none;
  291. margin-bottom: 0;
  292. li {
  293. display: inline-block;
  294. position: relative;
  295. .btn {
  296. padding: 5px 10px;
  297. line-height: 1.5;
  298. }
  299. .badge {
  300. position:absolute;
  301. top: -7px;
  302. right: -1px;
  303. padding: 3px 5px;
  304. font-size: 10px;
  305. border: 0 none;
  306. color: @white;
  307. }
  308. }
  309. a {
  310. .fa, .fas, .far, .fal, .fab, .fad {
  311. font-size: @baseFontSize + 1;
  312. }
  313. }
  314. }
  315. }
  316. .user-profile {
  317. display: flex;
  318. align-items: center;
  319. justify-content: center;
  320. flex-flow: column;
  321. padding: 15px 0;
  322. border-bottom: 1px solid @navSidebarBorder;
  323. img {
  324. width: 60px; height: 60px;
  325. border: 3px solid @navSidebarBorder;
  326. border-radius: 4px;
  327. margin-bottom: 4px;
  328. }
  329. }
  330. .media-search {
  331. padding: 4px 10px;
  332. .input-menu {
  333. border: 1px solid @navSidebarBorder;
  334. font-size: @baseFontSize - 1;
  335. color: @gray-light;
  336. width: 100%;
  337. background-color: lighten(@sideBar, 4%)!important;
  338. padding: 7.5px; margin: 4px 0;
  339. padding-left: 33px!important;
  340. border-radius: 4px;
  341. &:focus {
  342. box-shadow:none;
  343. outline:0 none;
  344. transition-duration: 0.1s;
  345. }
  346. }
  347. .input-icon {
  348. position: relative;
  349. [class*="fa-"], [class^="fa-"], [class*=" glyphicon-"], [class^="glyphicon-"] {
  350. display: block;
  351. position: absolute;
  352. margin: 14px 2px 4px 10px;
  353. width: 16px;
  354. min-width: 16px;
  355. height: 16px;
  356. font-size: 16px;
  357. color: @navSidebarIconColor;
  358. }
  359. }
  360. }
  361. .media, .media-search, .sidebar-labels {
  362. border-bottom: 1px solid @navSidebarBorder;
  363. }
  364. &.no-sidebar {
  365. display: none;
  366. &:hover, &:focus {
  367. display: none;
  368. }
  369. }
  370. &.primary {
  371. background-color: @themeColor;
  372. }
  373. &.primary, &.dark {
  374. .logo {
  375. color: @DarknavSidebarLink;
  376. }
  377. .side-nav {
  378. li {
  379. > a {
  380. color: @DarknavSidebarLink;
  381. background-color: @themeColor;
  382. .fa, .glyphicon {
  383. color: @DarknavSidebarIconColor;
  384. }
  385. &.active {
  386. border-color: @themeColor;
  387. color: @DarknavSidebarActive;
  388. .fa, .fas, far, .fal, .fab, .fad, .glyphicon {
  389. color: @DarknavSidebarActive;
  390. }
  391. &:after {
  392. border-color: transparent @themeColor transparent transparent;
  393. }
  394. &:hover, &:focus {
  395. border-color: @themeColor;
  396. }
  397. }
  398. &:hover, &:focus, &:active {
  399. .mtext {
  400. color: @DarknavSidebarLinkHover;
  401. }
  402. }
  403. }
  404. &.panel {
  405. ul li {
  406. &:before {
  407. border-color: @DarknavSidebarBorder;
  408. }
  409. a {
  410. color: @DarknavSidebarDropdownLink;
  411. background-color: transparent;
  412. &.active {
  413. color: @DarknavSidebarActive;
  414. }
  415. &:before {
  416. border-color: @DarknavSidebarBorder;
  417. }
  418. }
  419. a:hover, a:focus, a:active {
  420. color: @DarknavSidebarLinkHover;
  421. }
  422. }
  423. &.open {
  424. a {
  425. background-color: @DarknavSidebarDropdownBg;
  426. .mtext {
  427. color: @DarknavSidebarLinkHover;
  428. }
  429. }
  430. .fa, .fas, far, .fal, .fab, .fad, .glyphicon {
  431. color: @DarknavSidebarLinkHover;
  432. }
  433. li {
  434. .fa, .fas, far, .fal, .fab, .fad, .glyphicon {
  435. color: @DarknavSidebarIconColor;
  436. }
  437. }
  438. }
  439. }
  440. }
  441. .nav {
  442. background: @DarknavSidebarDropdownBg; /* open menu group background */
  443. }
  444. }
  445. .user-profile {
  446. border-bottom: 0 none;
  447. .action-buttons a {
  448. color: @DarknavSidebarLink;
  449. }
  450. img {
  451. border: 3px solid @DarknavSidebarBorder;
  452. }
  453. }
  454. .media-search {
  455. .input-menu {
  456. border: 1px solid @DarknavSidebarBorder;
  457. color: @DarknavSidebarLink;
  458. background-color: @themeColor!important;
  459. }
  460. .input-icon {
  461. [class*="fa-"], [class^="fa-"], [class*=" glyphicon-"], [class^="glyphicon-"] {
  462. color: @DarknavSidebarIconColor;
  463. }
  464. }
  465. }
  466. .media, .media-search, .sidebar-labels {
  467. border-bottom: 0 none;
  468. }
  469. .logo-light {
  470. display: none;
  471. }
  472. .logo-dark {
  473. display: block;
  474. }
  475. .sidebar-shortcuts {
  476. .lang-btn {
  477. .btn-default {
  478. color: @DarknavSidebarLink;
  479. }
  480. }
  481. }
  482. }
  483. &.dark {
  484. background-color: @gray-darker;
  485. .side-nav {
  486. li {
  487. > a {
  488. background-color: @gray-darker;
  489. }
  490. &.panel {
  491. &.open {
  492. a {
  493. background-color: @DarknavSidebarDropdownBg;
  494. }
  495. }
  496. }
  497. }
  498. .nav {
  499. //background: @gray-darker!important; /* open menu group background */
  500. }
  501. }
  502. .media-search {
  503. .input-menu {
  504. background-color: @gray-darker!important;
  505. }
  506. }
  507. }
  508. }
  509. @media (min-width:992px) {
  510. .navbar-side {
  511. border-radius: 0;
  512. bottom:0; top:0!important;
  513. -webkit-transform: translateZ(0);
  514. z-index: 1037;
  515. min-height: 100vh;
  516. }
  517. }
  518. @media (max-width: 991px) {
  519. .navbar-side {
  520. margin: 0;
  521. transform: translateX(-(@navSideWidth + 10));
  522. -webkit-transition: -webkit-transform 0.2s linear 0s, max-height 0s linear 0.2s;
  523. -moz-transition: -moz-transform 0.2s linear 0s, max-height 0s linear 0.2s;
  524. -o-transition: -o-transform 0.2s linear 0s, max-height 0s linear 0.2s;
  525. transition: transform 0.2s linear 0s, max-height 0s linear 0.2s;
  526. &.display {
  527. transform:none!important;
  528. }
  529. &.sidebar-light {
  530. box-shadow: 2px 1px 2px 0 rgba(0,0,0,0.15);
  531. }
  532. }
  533. }