' 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. .sidemenu {
  2. display: flex;
  3. flex-flow: column;
  4. flex-direction: column;
  5. width: $side-menu-width;
  6. background-color: $side-menu-bg;
  7. z-index: 1;
  8. a:focus {
  9. text-decoration: none;
  10. }
  11. }
  12. .sidemenu__top {
  13. flex-grow: 1;
  14. }
  15. .sidemenu__bottom {
  16. padding-bottom: $spacer;
  17. }
  18. .sidemenu-item {
  19. position: relative;
  20. @include left-brand-border();
  21. &.active,
  22. &:hover {
  23. background-color: $side-menu-item-hover-bg;
  24. @include left-brand-border-gradient();
  25. .dropdown-menu {
  26. margin: 0;
  27. display: block;
  28. opacity: 0;
  29. top: 0px;
  30. // important to overlap it otherwise it can be hidden
  31. // again by the mouse getting outside the hover space
  32. left: $side-menu-width - 2px;
  33. @include animation('dropdown-anim 100ms ease-in-out 100ms forwards');
  34. z-index: 1;
  35. }
  36. }
  37. }
  38. .dropup.sidemenu-item:hover .dropdown-menu {
  39. top: auto !important;
  40. }
  41. .sidemenu-link {
  42. color: $link-color;
  43. line-height: 42px;
  44. padding: 0px 10px 0px 10px;
  45. display: block;
  46. position: relative;
  47. font-size: 16px;
  48. border: 1px solid transparent;
  49. img {
  50. border-radius: 50%;
  51. width: 28px;
  52. height: 28px;
  53. box-shadow: 0 0 14px 2px rgba(255,255,255, 0.05);
  54. }
  55. }
  56. @include keyframes(dropdown-anim) {
  57. 0% {
  58. opacity: 0;
  59. //transform: translate3d(-5%,0,0);
  60. }
  61. 100% {
  62. opacity: 1;
  63. //transform: translate3d(0,0,0);
  64. }
  65. }
  66. .icon-circle {
  67. width: 35px;
  68. height: 35px;
  69. display: inline-block;
  70. i {
  71. color: $link-color;
  72. opacity: .7;
  73. position: relative;
  74. left: 3px;
  75. font-size: 130%;
  76. }
  77. .fa {
  78. top: 2px;
  79. }
  80. .icon-gf {
  81. top: 5px;
  82. }
  83. img {
  84. left: 3px;
  85. position: relative;
  86. }
  87. }
  88. .side-menu-header {
  89. padding: 10px 10px 10px 20px;
  90. white-space: nowrap;
  91. background-color: $side-menu-item-hover-bg;
  92. font-size: 17px;
  93. }
  94. li.sidemenu-org-switcher {
  95. border-bottom: 1px solid $dropdownDividerBottom;
  96. }
  97. .sidemenu-org-switcher__org-name {
  98. font-size: $font-size-base;
  99. }
  100. .sidemenu-org-switcher__org-current {
  101. font-size: $font-size-xs;
  102. color: $text-color-weak;
  103. }
  104. .sidemenu-org-switcher__switch {
  105. font-size: $font-size-sm;
  106. padding-left: 1.5rem;
  107. display: flex;
  108. align-items: center;
  109. i.fa > {
  110. margin-right: 5px;
  111. top: 0;
  112. }
  113. }