You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
1.7 KiB

  1. .has-collapsable-nav {
  2. background-color: mc('blue-grey', '50');
  3. display: flex;
  4. justify-content: flex-start;
  5. align-items: stretch;
  6. }
  7. .collapsable-nav {
  8. width: 300px;
  9. background-color: mc('blue-grey', '900');
  10. color: #FFF;
  11. min-height: 80vh;
  12. transition: all .6s ease;
  13. border-left: 1px solid darken(mc('blue-grey', '900'), 5%);
  14. &:last-child {
  15. border-bottom-right-radius: 5px;
  16. }
  17. &.has-children {
  18. width: 50px;
  19. background-color: mc($primary, '500');
  20. border-left: 1px solid mc($primary, '700');
  21. &:nth-child(2) {
  22. border-left: 1px solid darken(mc('blue-grey', '900'), 5%);
  23. }
  24. li {
  25. border-top: none;
  26. display: none;
  27. }
  28. }
  29. li {
  30. display: flex;
  31. border-top: 1px solid darken(mc('blue-grey', '900'), 5%);
  32. &.is-title {
  33. background-color: mc('blue-grey', '800');
  34. padding: 8px 15px;
  35. color: mc('blue-grey', '300');
  36. font-size: 13px;
  37. letter-spacing: 1px;
  38. text-transform: uppercase;
  39. box-shadow: 0 0 5px rgba(0,0,0,0.3);
  40. margin-right:1px;
  41. }
  42. &.is-active {
  43. display: flex;
  44. height: 50px;
  45. width: 300px;
  46. min-width: 80vh;
  47. @include prefix(transform, rotate(90deg) translate(0, -50px));
  48. transform-origin: 0 0;
  49. a {
  50. height: 50px;
  51. }
  52. }
  53. }
  54. a {
  55. display: flex;
  56. height: 40px;
  57. width: 100%;
  58. align-items: center;
  59. padding: 0 15px;
  60. color: #FFF;
  61. cursor: pointer;
  62. transition: all .4s ease;
  63. background-color: rgba(0,0,0,0);
  64. i {
  65. font-size: 14px;
  66. margin-right: 10px;
  67. }
  68. &:hover {
  69. background-color: rgba(0,0,0,.1);
  70. text-decoration: none;
  71. }
  72. }
  73. }