_sidebar-and-main-panel.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552
  1. .wrapper {
  2. position: relative;
  3. top: 0;
  4. height: 100vh;
  5. }
  6. .sidebar {
  7. position: fixed;
  8. top: 0;
  9. bottom: 0;
  10. left: 0;
  11. z-index: 2;
  12. width: 260px;
  13. background: $white-color;
  14. @include shadow-big();
  15. .caret {
  16. display: inline-block;
  17. width: 0;
  18. height: 0;
  19. margin-left: 2px;
  20. vertical-align: middle;
  21. border-top: 4px dashed;
  22. border-top: 4px solid\9;
  23. border-right: 4px solid transparent;
  24. border-left: 4px solid transparent;
  25. }
  26. &[data-background-color="black"] {
  27. background-color: #191919;
  28. }
  29. .logo-img {
  30. width: 245px;
  31. display: block;
  32. height: 50px;
  33. margin-left: 5px;
  34. margin-right: 15px;
  35. background: url(/assets/img/denmark-logo.png) no-repeat;
  36. background-size: 240px;
  37. /*
  38. img {
  39. width: 215px;
  40. top: 10px;
  41. position: absolute;
  42. left: 15px;
  43. }*/
  44. }
  45. .sidebar-wrapper {
  46. position: relative;
  47. height: calc(100vh - 75px);
  48. overflow: auto;
  49. width: 260px;
  50. z-index: 4;
  51. padding-bottom: 30px;
  52. .dropdown .dropdown-backdrop {
  53. display: none !important;
  54. }
  55. .navbar-form {
  56. border: none;
  57. box-shadow: none;
  58. .input-group {
  59. font-size: 1.7em;
  60. height: 36px;
  61. width: 78%;
  62. padding-left: 17px;
  63. }
  64. }
  65. > .nav,
  66. .user .user-info {
  67. [data-toggle="collapse"] ~ div > ul > li > a {
  68. span {
  69. display: inline-block;
  70. @extend .animation-transition-general;
  71. }
  72. .sidebar-normal {
  73. margin: 0;
  74. position: relative;
  75. transform: translateX(0px);
  76. opacity: 1;
  77. white-space: nowrap;
  78. display: block;
  79. }
  80. .sidebar-mini {
  81. text-transform: uppercase;
  82. width: 30px;
  83. margin-right: 15px;
  84. text-align: center;
  85. letter-spacing: 1px;
  86. position: relative;
  87. float: left;
  88. display: inherit;
  89. }
  90. i {
  91. font-size: 17px;
  92. line-height: 20px;
  93. width: 26px;
  94. }
  95. }
  96. }
  97. }
  98. .logo-tim {
  99. border-radius: 50%;
  100. border: 1px solid #333;
  101. display: block;
  102. height: 61px;
  103. width: 61px;
  104. float: left;
  105. overflow: hidden;
  106. img {
  107. width: 60px;
  108. height: 60px;
  109. }
  110. }
  111. .nav {
  112. margin-top: 20px;
  113. display: block;
  114. .caret {
  115. margin-top: 13px;
  116. position: absolute;
  117. right: 6px;
  118. }
  119. li {
  120. > a,
  121. span {
  122. &:hover,
  123. &:focus {
  124. background-color: transparent;
  125. outline: none;
  126. }
  127. }
  128. &:first-child > a {
  129. margin: 0 15px;
  130. }
  131. &:hover > a,
  132. & .dropdown-menu a:hover,
  133. & .dropdown-menu a:focus,
  134. &.active > [data-toggle="collapse"] {
  135. background-color: rgba(200, 200, 200, 0.2);
  136. color: $black-color;
  137. box-shadow: none;
  138. }
  139. &.active > [data-toggle="collapse"] {
  140. i {
  141. color: #a9afbb;
  142. }
  143. }
  144. &.active > a,
  145. &.active > a i {
  146. color: $white-color;
  147. }
  148. &.separator {
  149. margin: 15px 0;
  150. &:after {
  151. width: calc(100% - 30px);
  152. content: "";
  153. position: absolute;
  154. height: 1px;
  155. left: 15px;
  156. background-color: rgba(180, 180, 180, 0.3);
  157. }
  158. & + li {
  159. margin-top: 31px;
  160. }
  161. }
  162. }
  163. p {
  164. margin: 0;
  165. line-height: 30px;
  166. font-size: 14px;
  167. position: relative;
  168. display: block;
  169. height: auto;
  170. white-space: nowrap;
  171. }
  172. i {
  173. font-size: 24px;
  174. float: left;
  175. margin-right: 15px;
  176. line-height: 30px;
  177. width: 30px;
  178. text-align: center;
  179. color: #a9afbb;
  180. }
  181. }
  182. .nav li a,
  183. .nav li .dropdown-menu a {
  184. margin: 10px 15px 0;
  185. border-radius: $border-radius-base;
  186. color: $black-color;
  187. padding-left: 10px;
  188. padding-right: 10px;
  189. text-transform: capitalize;
  190. font-size: $font-paragraph - 1;
  191. padding: 10px 12px;
  192. }
  193. .sidebar-background {
  194. position: absolute;
  195. z-index: 1;
  196. height: 100%;
  197. width: 100%;
  198. display: block;
  199. top: 0;
  200. left: 0;
  201. background-size: cover;
  202. background-position: center center;
  203. &:after {
  204. position: absolute;
  205. z-index: 3;
  206. width: 100%;
  207. height: 100%;
  208. content: "";
  209. display: block;
  210. background: #ffffff;
  211. opacity: 0.93;
  212. }
  213. }
  214. .logo {
  215. padding: 15px 0px;
  216. margin: 0;
  217. display: block;
  218. position: relative;
  219. z-index: 4;
  220. &:after {
  221. content: "";
  222. position: absolute;
  223. bottom: 0;
  224. right: 15px;
  225. height: 1px;
  226. width: calc(100% - 30px);
  227. background-color: rgba(180, 180, 180, 0.3);
  228. }
  229. p {
  230. float: left;
  231. font-size: 20px;
  232. margin: 10px 10px;
  233. color: $white-color;
  234. line-height: 20px;
  235. }
  236. .simple-text {
  237. text-transform: uppercase;
  238. padding: $padding-small-vertical $padding-zero;
  239. display: inline-block;
  240. font-size: 18px;
  241. color: $black-color;
  242. white-space: nowrap;
  243. font-weight: $font-weight-default;
  244. line-height: 30px;
  245. overflow: hidden;
  246. text-align: center;
  247. display: block;
  248. }
  249. }
  250. .logo-tim {
  251. border-radius: 50%;
  252. border: 1px solid #333;
  253. display: block;
  254. height: 61px;
  255. width: 61px;
  256. float: left;
  257. overflow: hidden;
  258. img {
  259. width: 60px;
  260. height: 60px;
  261. }
  262. }
  263. &[data-background-color="black"] {
  264. @include sidebar-background-color($gray-base, $white-color);
  265. .nav li .dropdown-menu .dropdown-item {
  266. color: $white-color;
  267. }
  268. }
  269. &[data-color="purple"] {
  270. @include set-background-color-button($brand-primary);
  271. }
  272. &[data-color="azure"] {
  273. @include set-background-color-button($brand-info);
  274. }
  275. &[data-color="green"] {
  276. @include set-background-color-button($brand-success);
  277. }
  278. &[data-color="orange"] {
  279. @include set-background-color-button($brand-warning);
  280. }
  281. &[data-color="danger"] {
  282. @include set-background-color-button($brand-danger);
  283. }
  284. &[data-color="rose"] {
  285. @include set-background-color-button($brand-rose);
  286. }
  287. &[data-color="black"] {
  288. @include set-background-color-button($black);
  289. }
  290. &[data-color="gray"] {
  291. @include set-background-color-button($gray-custom);
  292. }
  293. &[data-color="yellow"] {
  294. @include set-background-color-button($yellow-custom);
  295. }
  296. &[data-color="blue"] {
  297. @include set-background-color-button($blue-custom);
  298. }
  299. &[data-color="white"] {
  300. @include set-background-color-button($white-color);
  301. @include sidebar-active-color($black-color);
  302. }
  303. &[data-background-color="gray"] {
  304. @include sidebar-background-color($gray-custom, $white-color);
  305. .user,
  306. .logo,
  307. .nav li.separator {
  308. &:after {
  309. background-color: rgba(255, 255, 255, 0.3);
  310. }
  311. }
  312. .nav {
  313. li:hover:not(.active) > a,
  314. li.active > [data-toggle="collapse"] {
  315. background-color: rgba(255, 255, 255, 0.1);
  316. }
  317. }
  318. }
  319. &[data-image]:after,
  320. &.has-image:after {
  321. opacity: 0.77;
  322. }
  323. &[data-background-color="red"] {
  324. @include sidebar-background-color($brand-danger, $white-color);
  325. .user,
  326. .logo,
  327. .nav li.separator {
  328. &:after {
  329. background-color: rgba(255, 255, 255, 0.3);
  330. }
  331. }
  332. .nav {
  333. li:hover:not(.active) > a,
  334. li.active > [data-toggle="collapse"] {
  335. background-color: rgba(255, 255, 255, 0.1);
  336. }
  337. }
  338. }
  339. &[data-image]:after,
  340. &.has-image:after {
  341. opacity: 0.77;
  342. }
  343. }
  344. .off-canvas-sidebar .navbar-collapse {
  345. .nav {
  346. > li > a,
  347. > li > a:hover {
  348. color: $white-color;
  349. margin: 0 15px;
  350. }
  351. > li > a:focus,
  352. > li > a:hover {
  353. background: rgba(200, 200, 200, 0.2);
  354. }
  355. }
  356. }
  357. .main-panel {
  358. position: relative;
  359. float: right;
  360. width: $sidebar-width;
  361. @include transition(0.33s, cubic-bezier(0.685, 0.0473, 0.346, 1));
  362. .main-content {
  363. margin-top: 30px;
  364. padding: 20px 10px;
  365. min-height: calc(100vh - 123px);
  366. }
  367. .footer {
  368. border-top: 1px solid #e7e7e7;
  369. }
  370. .navbar {
  371. margin-bottom: 0;
  372. }
  373. .header {
  374. margin-bottom: 30px;
  375. .title {
  376. margin-top: 10px;
  377. margin-bottom: 10px;
  378. }
  379. }
  380. }
  381. .sidebar,
  382. .main-panel,
  383. .sidebar-wrapper {
  384. -webkit-transition-property: top, bottom, width;
  385. transition-property: top, bottom, width;
  386. -webkit-transition-duration: 0.2s, 0.2s, 0.35s;
  387. transition-duration: 0.2s, 0.2s, 0.35s;
  388. -webkit-transition-timing-function: linear, linear, ease;
  389. transition-timing-function: linear, linear, ease;
  390. -webkit-overflow-scrolling: touch;
  391. }
  392. .visible-on-sidebar-regular {
  393. display: inline-block !important;
  394. }
  395. .visible-on-sidebar-mini {
  396. display: none !important;
  397. }
  398. @media (min-width: 991px) {
  399. .sidebar-mini {
  400. .visible-on-sidebar-regular {
  401. display: none !important;
  402. }
  403. .visible-on-sidebar-mini {
  404. display: inline-block !important;
  405. }
  406. .sidebar,
  407. .sidebar .sidebar-wrapper {
  408. width: 80px;
  409. }
  410. .main-panel {
  411. width: $sidebar-mini-width;
  412. }
  413. .sidebar {
  414. display: block;
  415. font-weight: 200;
  416. z-index: 9999;
  417. .logo-img {
  418. width: 80px;
  419. display: block;
  420. overflow: hidden;
  421. background: url(/assets/img/denmark-small-logo.png) no-repeat;
  422. background-size: 80px;
  423. background-position-y: 0px;
  424. }
  425. .logo {
  426. a.logo-normal {
  427. opacity: 0;
  428. @include transform-translate-x(-25px);
  429. }
  430. }
  431. .sidebar-wrapper {
  432. > .nav [data-toggle="collapse"] ~ div > ul > li > a .sidebar-normal,
  433. .user
  434. .user-info
  435. [data-toggle="collapse"]
  436. ~ div
  437. > ul
  438. > li
  439. > a
  440. .sidebar-normal,
  441. .user .user-info > a > span,
  442. > .nav li > a p {
  443. @include transform-translate-x(-25px);
  444. opacity: 0;
  445. }
  446. }
  447. }
  448. .sidebar:hover {
  449. width: 260px;
  450. .logo {
  451. a.logo-normal {
  452. opacity: 1;
  453. @include transform-translate-x(0px);
  454. }
  455. }
  456. .sidebar-wrapper {
  457. width: 260px;
  458. > .nav li > a p,
  459. > .nav [data-toggle="collapse"] ~ div > ul > li > a .sidebar-normal,
  460. .user
  461. .user-info
  462. [data-toggle="collapse"]
  463. ~ div
  464. > ul
  465. > li
  466. > a
  467. .sidebar-normal,
  468. .user .user-info > a > span {
  469. @include transform-translate-x(0px);
  470. opacity: 1;
  471. }
  472. }
  473. }
  474. }
  475. .sidebar {
  476. .nav .nav-item {
  477. &.active-pro {
  478. position: absolute;
  479. width: 100%;
  480. bottom: 13px;
  481. }
  482. }
  483. }
  484. }