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.

122 lines
2.2 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. &:nth-child(2) {
  52. display: none;
  53. }
  54. }
  55. }
  56. }
  57. a {
  58. display: flex;
  59. flex: 1 1 auto;
  60. min-height: 40px;
  61. width: 100%;
  62. align-items: center;
  63. padding: 0 15px;
  64. color: #FFF;
  65. cursor: pointer;
  66. transition: all .4s ease;
  67. background-color: rgba(0,0,0,0);
  68. &.is-pagelink {
  69. flex: 0 1 70px;
  70. justify-content: center;
  71. }
  72. &:hover {
  73. background-color: rgba(0,0,0,.1);
  74. text-decoration: none;
  75. }
  76. i {
  77. font-size: 14px;
  78. &:first-of-type {
  79. margin-right: 10px;
  80. }
  81. }
  82. span {
  83. display: block;
  84. padding: 5px 0;
  85. }
  86. }
  87. }
  88. /* THEME OVERRIDE - START */
  89. @each $color, $colorvalue in $material-colors {
  90. .is-primary-#{$color} .collapsable-nav {
  91. &.has-children {
  92. background-color: mc($color, '500');
  93. border-left-color: mc($color, '700');
  94. }
  95. }
  96. }
  97. /* THEME OVERRIDE - END */