No Description

_sidebar-and-main-panel.scss 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884
  1. .wrapper{
  2. position: relative;
  3. top: 0;
  4. height: 100vh;
  5. &.wrapper-full-page{
  6. min-height: 100vh;
  7. height: auto;
  8. }
  9. }
  10. .sidebar-wrapper ul li div.collapse ul li div.collapse ul li a,
  11. .sidebar-wrapper ul li div.collapse ul li div.collapsing ul li a,
  12. .sidebar-wrapper ul li div.collapsing ul li div.collapse ul li a{
  13. margin-left: 25px;
  14. }
  15. .sidebar,
  16. .off-canvas-sidebar{
  17. @include linear-gradient($primary-states, $primary);
  18. height: calc(100vh - 90px);
  19. width: 230px;
  20. position: fixed;
  21. top: 0;
  22. left: 0;
  23. z-index: 1;
  24. background-size: cover;
  25. background-position: center center;
  26. display: block;
  27. box-shadow: 0px 0px 45px 0px rgba(0,0,0,0.6);
  28. margin-top: 80px;
  29. margin-left: 20px;
  30. border-radius: 5px;
  31. .sidebar-wrapper{
  32. width: $full-width;
  33. min-height: 100%;
  34. max-height: calc(100vh - 705px);
  35. z-index: 4;
  36. position: relative;
  37. overflow: auto;
  38. .dropdown .dropdown-backdrop{
  39. display: none !important;
  40. }
  41. .navbar-form{
  42. border: none;
  43. }
  44. > .nav,
  45. .user .info{
  46. [data-toggle="collapse"] ~ div > ul > li > a{
  47. span{
  48. display: inline-block;
  49. // @extend .animation-transition-general;
  50. }
  51. .sidebar-normal{
  52. margin: 0;
  53. position: relative;
  54. transform: translateX(0px);
  55. opacity: 1;
  56. white-space: nowrap;
  57. display: block;
  58. line-height: 23px;
  59. z-index: 1;
  60. color: $opacity-8;
  61. }
  62. .sidebar-mini-icon{
  63. text-transform: uppercase;
  64. width: 34px;
  65. margin-right: 10px;
  66. margin-left: 0px;
  67. font-size: 12px;
  68. text-align: center;
  69. line-height: 25px;
  70. position: relative;
  71. float: left;
  72. z-index: 1;
  73. display: inherit;
  74. line-height: 24px;
  75. color: $opacity-8;
  76. }
  77. i{
  78. font-size: 17px;
  79. line-height: 20px;
  80. width: 26px;
  81. }
  82. }
  83. }
  84. [data-toggle="collapse"] ~ div > ul > li:hover > a{
  85. .sidebar-mini-icon, .sidebar-normal{
  86. color: $white;
  87. }
  88. }
  89. .nav [data-toggle="collapse"] ~ div > ul > li > a .sidebar-mini-icon{
  90. opacity: 0;
  91. }
  92. }
  93. .navbar-minimize{
  94. position: absolute;
  95. right: 20px;
  96. top: 2px;
  97. opacity: 1;
  98. // @extend .animation-transition-general;
  99. }
  100. .logo-tim{
  101. border-radius: 50%;
  102. border: 1px solid #333;
  103. display: block;
  104. height: 61px;
  105. width: 61px;
  106. float: left;
  107. overflow: hidden;
  108. img{
  109. width: 60px;
  110. height: 60px;
  111. }
  112. }
  113. .nav{
  114. margin-top: 20px;
  115. display: block;
  116. .caret{
  117. top: 14px;
  118. position: absolute;
  119. right: 10px;
  120. }
  121. li{
  122. > a + div .nav{
  123. margin-top: 5px;
  124. li > a{
  125. margin-top: 0px;
  126. padding: 8px 8px;
  127. }
  128. }
  129. > a{
  130. margin: 10px 15px 0;
  131. border-radius: $btn-round-radius;
  132. color: $white;
  133. display: block;
  134. text-decoration: none;
  135. position: relative;
  136. text-transform: uppercase;
  137. cursor: pointer;
  138. font-size: $font-size-xs;
  139. padding: 10px 8px;
  140. line-height: $line-height-lg;
  141. }
  142. &:first-child > a{
  143. margin: 0 15px;
  144. }
  145. &:hover:not(.active) > a,
  146. &:focus:not(.active) > a{
  147. p,i{
  148. color: $white;
  149. }
  150. }
  151. &:hover:not(.active) > a i,
  152. &:focus:not(.active) > a i{
  153. color: $white;
  154. }
  155. &.active > a:not([data-toggle="collapse"]){
  156. background: transparent;
  157. i,p{
  158. color: white;
  159. }
  160. &:before{
  161. content: " ";
  162. position: absolute;
  163. height: 6px;
  164. width: 6px;
  165. top: 22px;
  166. left: -4px;
  167. background: $white;
  168. border-radius: 50%;
  169. }
  170. }
  171. &.active > a[data-toggle="collapse"]{
  172. background: transparent;
  173. box-shadow: none;
  174. color: $white;
  175. i{
  176. color: $white;
  177. }
  178. & + div .nav .active a{
  179. box-shadow: none;
  180. .sidebar-mini-icon, .sidebar-normal{
  181. color: $white;
  182. font-weight: $font-weight-normal;
  183. }
  184. &:before{
  185. content: " ";
  186. position: absolute;
  187. height: 6px;
  188. width: 6px;
  189. top: 17px;
  190. left: -4px;
  191. background: $white;
  192. border-radius: 50%;
  193. }
  194. }
  195. &:before{
  196. content: " ";
  197. position: absolute;
  198. height: 6px;
  199. width: 6px;
  200. top: 22px;
  201. left: -4px;
  202. background: rgba($white,0.6);
  203. border-radius: 50%;
  204. }
  205. }
  206. }
  207. p{
  208. margin: 0;
  209. line-height: 30px;
  210. position: relative;
  211. display: block;
  212. height: auto;
  213. white-space: nowrap;
  214. @extend .animation-transition-general;
  215. }
  216. i{
  217. font-size: 20px;
  218. float: left;
  219. margin-right: 12px;
  220. line-height: 30px;
  221. width: 34px;
  222. text-align: center;
  223. color: $opacity-8;
  224. position: relative;
  225. }
  226. }
  227. .logo{
  228. position: relative;
  229. padding: $padding-base-vertical $padding-base-horizontal;
  230. z-index: 4;
  231. a.logo-mini,
  232. a.logo-normal{
  233. @extend .animation-transition-general;
  234. }
  235. a.logo-mini{
  236. opacity: 1;
  237. float: left;
  238. width: 34px;
  239. text-align: center;
  240. margin-left: 10px;
  241. margin-right: 12px;
  242. }
  243. a.logo-normal{
  244. display: block;
  245. opacity: 1;
  246. @include transform-translate-x(0px);
  247. }
  248. &:after{
  249. content: '';
  250. position: absolute;
  251. bottom: 0;
  252. right: 15px;
  253. height: 1px;
  254. width: calc(100% - 30px);
  255. background: $opacity-5;
  256. }
  257. p{
  258. float: left;
  259. font-size: 20px;
  260. margin: 10px 10px;
  261. color: $white;
  262. line-height: 20px;
  263. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  264. }
  265. .simple-text{
  266. text-transform: uppercase;
  267. padding: $padding-base-vertical 0;
  268. display: block;
  269. white-space: nowrap;
  270. // font-size: $font-size-base;
  271. color: $white;
  272. text-decoration: none;
  273. font-weight: $font-weight-normal;
  274. line-height: 30px;
  275. overflow: hidden;
  276. }
  277. }
  278. .logo-tim{
  279. border-radius: 50%;
  280. border: 1px solid #333;
  281. display: block;
  282. height: 61px;
  283. width: 61px;
  284. float: left;
  285. overflow: hidden;
  286. img{
  287. width: 60px;
  288. height: 60px;
  289. }
  290. }
  291. &[data="blue"]{
  292. @include linear-gradient($info-states, $info);
  293. }
  294. &[data="green"]{
  295. @include linear-gradient($success-states, $success);
  296. }
  297. .user{
  298. padding-bottom: 20px;
  299. margin:20px auto 0;
  300. position: relative;
  301. &:after{
  302. content: '';
  303. position: absolute;
  304. bottom: 0;
  305. right: 15px;
  306. height: 1px;
  307. width: calc(100% - 30px);
  308. background: $opacity-5;
  309. }
  310. .photo{
  311. width: 34px;
  312. height: 34px;
  313. overflow: hidden;
  314. float: left;
  315. z-index: 5;
  316. margin-right: 10px;
  317. border-radius: 50%;
  318. margin-left: 23px;
  319. box-shadow: $box-shadow-raised;
  320. @extend .animation-transition-general;
  321. img{
  322. width: $full-width;
  323. }
  324. }
  325. a{
  326. color: $white;
  327. text-decoration: none;
  328. padding: $padding-base-vertical 15px;
  329. white-space: nowrap;
  330. @extend .animation-transition-general;
  331. }
  332. .info{
  333. > a{
  334. display: block;
  335. line-height: 18px;
  336. > span{
  337. @extend .animation-transition-general;
  338. display: block;
  339. position: relative;
  340. opacity: 1;
  341. }
  342. }
  343. .caret{
  344. position: absolute;
  345. top: 8px;
  346. right: 18px;
  347. }
  348. }
  349. }
  350. transition: 0.5s cubic-bezier(0.685, 0.0473, 0.346, 1);
  351. }
  352. .visible-on-sidebar-regular{
  353. display: inline-block !important;
  354. }
  355. .visible-on-sidebar-mini{
  356. display: none !important;
  357. }
  358. .off-canvas-sidebar{
  359. .nav {
  360. > li > a,
  361. > li > a:hover{
  362. color: $white;
  363. }
  364. > li > a:focus{
  365. background: rgba(200, 200, 200, 0.2);
  366. }
  367. }
  368. }
  369. .main-panel {
  370. position: relative;
  371. float: right;
  372. width: $full-width;
  373. min-height: 100vh;
  374. border-top: 2px solid $primary;
  375. background: linear-gradient($background-black, $background-states-black);
  376. @include transitions (0.50s, cubic-bezier(0.685, 0.0473, 0.346, 1));
  377. &[data="blue"]{
  378. border-top: 2px solid $info;
  379. }
  380. &[data="green"]{
  381. border-top: 2px solid $success;
  382. }
  383. &[data="primary"]{
  384. border-top: 2px solid $primary;
  385. }
  386. > .content {
  387. padding: 78px 30px 30px 280px;
  388. min-height: calc(100vh - 70px);
  389. }
  390. > .navbar {
  391. margin-bottom: 0;
  392. }
  393. .header {
  394. margin-bottom: 50px;
  395. }
  396. }
  397. .perfect-scrollbar-on{
  398. .sidebar,
  399. .main-panel{
  400. height: 100%;
  401. max-height: 100%;
  402. }
  403. }
  404. @media (min-width: 991px) {
  405. .sidebar,
  406. .main-panel,
  407. .sidebar-wrapper{
  408. -webkit-transition-property: top,bottom,width;
  409. transition-property: top,bottom, width;
  410. -webkit-transition-duration: .2s,.2s, .35s;
  411. transition-duration: .2s,.2s, .35s;
  412. -webkit-transition-timing-function: linear,linear,ease;
  413. transition-timing-function: linear,linear,ease;
  414. -webkit-overflow-scrolling: touch;
  415. }
  416. .sidebar-mini{
  417. .visible-on-sidebar-regular{
  418. display: none !important;
  419. }
  420. .visible-on-sidebar-mini{
  421. display: inline-block !important;
  422. }
  423. .sidebar{
  424. width: 80px;
  425. .sidebar-wrapper{
  426. width: 100% !important;
  427. }
  428. }
  429. .sidebar{
  430. display: block;
  431. z-index: 1030;
  432. box-shadow: $sidebar-box-shadow;
  433. .logo{
  434. a.logo-normal{
  435. opacity: 0;
  436. @include transform-translate-x(-25px);
  437. }
  438. }
  439. .sidebar-wrapper{
  440. > .nav [data-toggle="collapse"] ~ div > ul > li > a .sidebar-normal,
  441. .user .info [data-toggle="collapse"] ~ div > ul > li > a .sidebar-normal,
  442. .user .info > a > span,
  443. > .nav li > a p{
  444. @include transform-translate-x(-25px);
  445. opacity: 0;
  446. }
  447. }
  448. .nav [data-toggle="collapse"] ~ div > ul > li > a .sidebar-mini-icon{
  449. opacity: 1;
  450. }
  451. }
  452. .sidebar:hover {
  453. width: 260px;
  454. .logo {
  455. a.logo-normal {
  456. opacity: 1;
  457. @include transform-translate-x(0);
  458. }
  459. }
  460. .navbar-minimize{
  461. opacity: 1;
  462. }
  463. .sidebar-wrapper{
  464. width: 260px;
  465. > .nav li > a p,
  466. > .nav [data-toggle="collapse"] ~ div > ul > li > a .sidebar-normal,
  467. .user .info [data-toggle="collapse"] ~ div > ul > li > a .sidebar-normal,
  468. .user .info > a > span{
  469. @include transform-translate-x(0px);
  470. opacity: 1;
  471. }
  472. }
  473. .nav [data-toggle="collapse"] ~ div > ul > li > a .sidebar-mini-icon{
  474. opacity: 0;
  475. }
  476. }
  477. .main-panel{
  478. > .content{
  479. padding-left: 130px;
  480. }
  481. }
  482. footer{
  483. padding-left: 130px;
  484. }
  485. }
  486. .navbar-minimize{
  487. button {
  488. margin-left: 10px;
  489. i{
  490. color: $white;
  491. font-size: 20px;
  492. }
  493. }
  494. }
  495. }
  496. .panel-header {
  497. height: 260px;
  498. padding-top: 80px;
  499. padding-bottom: 45px;
  500. background: #141E30; /* fallback for old browsers */
  501. background: -webkit-gradient(linear, left top, right top, from(#0c2646), color-stop(60%, #204065), to(#2a5788));
  502. background: linear-gradient(to right, #0c2646 0%, #204065 60%, #2a5788 100%);
  503. position: relative;
  504. overflow: hidden;
  505. .header{
  506. .title{
  507. color: $white;
  508. }
  509. .category{
  510. max-width: 600px;
  511. color: $opacity-5;
  512. margin: 0 auto;
  513. font-size: 13px;
  514. a{
  515. color: $white;
  516. }
  517. }
  518. }
  519. }
  520. .panel-header-sm{
  521. height: 135px;
  522. }
  523. .panel-header-lg{
  524. height: 380px
  525. }
  526. @media screen and (max-width: 991px){
  527. .sidebar{
  528. position: fixed;
  529. display: block;
  530. top: 0;
  531. height: 100%;
  532. width: 260px;
  533. right: auto;
  534. left: 0;
  535. margin: 0;
  536. border-radius: 0;
  537. z-index: 1032;
  538. visibility: visible;
  539. overflow-y: visible;
  540. padding: 0;
  541. @include transition(0.5s cubic-bezier(0.685, 0.0473, 0.346, 1));
  542. @include transform-translate-x(-260px);
  543. }
  544. .wrapper{
  545. @include transition (0.50s, cubic-bezier(0.685, 0.0473, 0.346, 1));
  546. }
  547. .main-panel {
  548. width: 100%;
  549. .content {
  550. padding-left: 30px;
  551. }
  552. }
  553. .nav-open{
  554. .main-panel{
  555. right: 0;
  556. @include transform-translate-x(260px);
  557. }
  558. .sidebar{
  559. @include transition(0.5s cubic-bezier(0.685, 0.0473, 0.346, 1));
  560. @include transform-translate-x(0px);
  561. &:before{
  562. content: unset;
  563. }
  564. }
  565. body{
  566. position: relative;
  567. overflow-x: hidden;
  568. }
  569. .menu-on-right{
  570. .main-panel{
  571. @include transform-translate-x(-260px);
  572. }
  573. .navbar-collapse,
  574. .sidebar{
  575. @include transform-translate-x(0px);
  576. }
  577. #bodyClick{
  578. right: 260px;
  579. left: auto;
  580. }
  581. }
  582. }
  583. .menu-on-right{
  584. .sidebar{
  585. left: auto;
  586. right: 0;
  587. @include transform-translate-x(260px);
  588. }
  589. }
  590. #bodyClick{
  591. height: 100%;
  592. width: 100%;
  593. position: fixed;
  594. opacity: 1;
  595. top: 0;
  596. right: 0;
  597. left: 260px;
  598. content: "";
  599. z-index: 9999;
  600. overflow-x: hidden;
  601. background-color: transparent;
  602. @include transition (0.50s, cubic-bezier(0.685, 0.0473, 0.346, 1));
  603. }
  604. }
  605. @media screen and (max-width: 768px){
  606. .main-panel .content {
  607. padding-left: 15px;
  608. padding-right: 15px;
  609. }
  610. }
  611. // Color swatches
  612. .color-swatch {
  613. margin: 1rem 0;
  614. border-radius: .25rem;
  615. background-color: #F4F5F7;
  616. width: 100% !important;
  617. height: auto !important;
  618. margin-bottom: 20px;
  619. }
  620. .color-swatch:after {
  621. content: " ";
  622. display: table;
  623. clear: both;
  624. }
  625. .color-swatch-header {
  626. position: relative;
  627. height: 0;
  628. padding-bottom: 50%;
  629. border-radius: .25rem .25rem 0 0;
  630. border: 1px solid transparent;
  631. }
  632. .color-swatch-header.is-light {
  633. border-color: #C1C7D0;
  634. }
  635. .color-swatch-header .pass-fail {
  636. position: absolute;
  637. width: 100%;
  638. bottom: 0;
  639. }
  640. .color-swatch-header .pass-fail-item-wrap {
  641. position: relative;
  642. float: left;
  643. left: 50%;
  644. -webkit-transform: translateX(-50%);
  645. -ms-transform: translateX(-50%);
  646. transform: translateX(-50%);
  647. }
  648. .color-swatch-header .pass-fail-item-group {
  649. display: inline-block;
  650. padding: 0 5px;
  651. }
  652. .color-swatch-header .pass-fail-item {
  653. float: left;
  654. display: inline-block;
  655. text-align: center;
  656. padding: 2px;
  657. }
  658. .color-swatch-header .pass-fail-item.white .example {
  659. color: #fff;
  660. }
  661. .color-swatch-header .pass-fail-item.small .example {
  662. font-size: 10px;
  663. }
  664. .color-swatch-header .pass-fail-item .lozenge {
  665. font-size: 11px;
  666. text-transform: uppercase;
  667. font-weight: 600;
  668. background: #000;
  669. color: #fff;
  670. padding: 2px 4px;
  671. line-height: 10px;
  672. border-radius: 4px;
  673. letter-spacing: 0.05em;
  674. }
  675. .color-swatch-body {
  676. position: relative;
  677. left: 50%;
  678. float: left;
  679. padding: 10px 0;
  680. -webkit-transform: translateX(-50%);
  681. -ms-transform: translateX(-50%);
  682. transform: translateX(-50%);
  683. }
  684. .color-swatch-body .prop-item-wrap {
  685. float: left;
  686. padding: 0 15px;
  687. min-width: 65px;
  688. }
  689. .color-swatch-body .prop-item {
  690. padding: 15px 0;
  691. }
  692. .color-swatch-body .prop-item .label {
  693. font-size: 11px;
  694. color: #62748C;
  695. text-transform: uppercase;
  696. line-height: 16px;
  697. }
  698. .color-swatch-body .prop-item .value {
  699. font-size: 14px;
  700. }
  701. .table-colors .swatch{
  702. display: inline-block;
  703. float: left;
  704. width: 40px;
  705. height: 40px;
  706. margin-right: 20px;
  707. border: 1px solid transparent;
  708. border-radius: 4px;
  709. }
  710. .table-colors td:nth-child(1),
  711. .table-colors:first-child td:nth-child(1) {
  712. line-height: 40px;
  713. }
  714. .table-colors .lozenge {
  715. font-size: 10px;
  716. font-weight: 600;
  717. line-height: 10px;
  718. display: inline-block;
  719. float: left;
  720. margin: 5px 10px 0 0;
  721. padding: 2px 4px;
  722. letter-spacing: .05em;
  723. text-transform: uppercase;
  724. color: #042a53;
  725. border-radius: 4px;
  726. background: #97a0af;
  727. }
  728. .bd-example .row>.col span,
  729. .bd-example .row>[class^=col-] span{
  730. font-size: $font-size-sm;
  731. display: block;
  732. margin: 1rem 0;
  733. padding: .75rem;
  734. color: #393f49;
  735. background-color: $white;
  736. border-radius: $border-radius-sm;
  737. }
  738. .bd-docs .navbar .navbar-brand{
  739. position: relative;
  740. }