_sidebar.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. @import "globals";
  2. .sidebar {
  3. background-color: $sidebar-background-color;
  4. &-menu {
  5. @extend .clear-list;
  6. margin-bottom: 32px !important;
  7. &-wrapper {
  8. overflow: hidden;
  9. height: 100%;
  10. position: relative;
  11. }
  12. &-item {
  13. padding: 20px 24px;
  14. border-bottom: 1px solid $sidebar-border-color;
  15. &:last-child {
  16. border-bottom: 0;
  17. }
  18. &.no-horizontal-padding {
  19. padding-left: 0;
  20. padding-right: 0;
  21. }
  22. &-icon {
  23. font-size: 18px;
  24. vertical-align: middle;
  25. margin-right: 6px;
  26. color: $sidebar-icon-color;
  27. }
  28. &-link {
  29. &, &:visited, &:hover {
  30. color: $sidebar-link-color;
  31. font-weight: bold;
  32. overflow: hidden;
  33. text-overflow: ellipsis;
  34. white-space: nowrap;
  35. @include transition-all(0.3s);
  36. }
  37. &:hover {
  38. color: $sidebar-hover-link-color;
  39. }
  40. }
  41. &-title {
  42. color: $sidebar-text-color;
  43. text-transform: uppercase;
  44. font-size: 11px;
  45. font-weight: bold;
  46. overflow: hidden;
  47. text-overflow: ellipsis;
  48. white-space: nowrap;
  49. padding: 0 24px;
  50. &-icon {
  51. float: right;
  52. font-size: 14px;
  53. font-weight: bold !important;
  54. margin-right: 14px;
  55. &, &:visited, &:hover {
  56. color: $sidebar-contrast-color;
  57. @include transition-all(0.3s);
  58. }
  59. &:hover {
  60. color: $sidebar-contrast2-color;
  61. }
  62. }
  63. }
  64. &-action {
  65. &, &:visited, &:hover {
  66. display: block;
  67. color: $sidebar-contrast-color;
  68. font-size: 11px;
  69. text-align: center;
  70. margin-top: 10px;
  71. padding: 8px 0;
  72. text-transform: uppercase;
  73. @include transition-all(0.3s);
  74. }
  75. &:hover {
  76. color: $sidebar-contrast2-color;
  77. background-color: $sidebar-hover-background-color;
  78. }
  79. }
  80. &-list {
  81. @extend .clear-list;
  82. .sidebar-menu-item-title + &:not(:empty) {
  83. margin-top: 10px !important;
  84. }
  85. &-item {
  86. &.empty {
  87. display: none;
  88. }
  89. &-icon {
  90. font-size: 18px;
  91. vertical-align: middle;
  92. margin-right: 6px;
  93. color: $sidebar-icon-color;
  94. }
  95. &.compact &-icon {
  96. font-size: 16px;
  97. }
  98. &-link {
  99. &, &:visited, &:hover {
  100. display: block;
  101. color: $sidebar-link-color;
  102. overflow: hidden;
  103. text-overflow: ellipsis;
  104. white-space: nowrap;
  105. padding: 8px 12px 8px 24px;
  106. vertical-align: middle;
  107. position: relative;
  108. @include transition-all(0.3s);
  109. }
  110. &:hover, &.hovered {
  111. color: $sidebar-hover-link-color;
  112. background-color: $sidebar-hover-background-color;
  113. }
  114. &-remove {
  115. &, &:visited, &:hover {
  116. position: relative;
  117. float: right;
  118. display: none;
  119. color: $sidebar-contrast-color;
  120. @include transition-all(0.3s);
  121. }
  122. &:hover {
  123. color: $sidebar-contrast2-color;
  124. }
  125. }
  126. &-pin, &-unpin {
  127. &, &:visited, &:hover {
  128. position: absolute;
  129. display: none;
  130. left: 4px;
  131. font-size: 14px;
  132. color: $sidebar-contrast-color;
  133. @include transition-all(0.3s);
  134. }
  135. &:hover {
  136. color: $sidebar-contrast2-color;
  137. }
  138. }
  139. &:hover &-remove {
  140. display: inline-block;
  141. }
  142. }
  143. &:not(.pinned):hover &-link-pin {
  144. display: inline-block;
  145. }
  146. &.pinned:hover &-link-unpin {
  147. display: inline-block;
  148. }
  149. &-arrow {
  150. float: right;
  151. color: $sidebar-contrast2-color;
  152. font-size: 16px;
  153. font-weight: bold !important;
  154. margin-left: 4px;
  155. }
  156. }
  157. &.compact &-item-link {
  158. &, &:visited, &:hover {
  159. font-size: 11px;
  160. padding: 6px 12px 6px 24px;
  161. text-transform: uppercase;
  162. }
  163. &.padding-icon {
  164. padding-left: 49px;
  165. }
  166. }
  167. }
  168. }
  169. }
  170. &-popup {
  171. position: absolute;
  172. top: 0;
  173. bottom: 0;
  174. width: $sidebar-width;
  175. color: $sidebar-popup-text-color;
  176. background-color: $sidebar-popup-background-color;
  177. overflow-y: auto;
  178. &-container {
  179. display: none;
  180. background-color: transparentize($sidebar-popup-overlay-color, 0.5);
  181. position: fixed;
  182. top: 0;
  183. left: $sidebar-width;
  184. bottom: 0;
  185. right: 0;
  186. z-index: 3;
  187. }
  188. &-item {
  189. display: none;
  190. }
  191. &-title {
  192. font-size: 12px;
  193. font-weight: bold;
  194. text-transform: uppercase;
  195. padding: 20px;
  196. overflow: hidden;
  197. text-overflow: ellipsis;
  198. white-space: nowrap;
  199. }
  200. &-search {
  201. @extend .base_input;
  202. @include placeholder {
  203. color: $sidebar-popup-search-input-placeholder-color;
  204. }
  205. background-color: $sidebar-popup-search-input-background-color;
  206. color: $sidebar-popup-search-input-text-color;
  207. border-radius: 0 !important;
  208. width: 100%;
  209. height: 32px;
  210. padding: 0 !important;
  211. text-indent: 20px;
  212. margin-bottom: 12px !important;
  213. }
  214. &-list {
  215. @extend .clear-list;
  216. &-item {
  217. a, a:visited, a:hover {
  218. color: $sidebar-popup-link-text-color;
  219. padding: 8px 20px;
  220. display: block;
  221. }
  222. &.selected a {
  223. background-color: $sidebar-popup-hover-link-background-color;
  224. color: $sidebar-popup-hover-link-color;
  225. }
  226. }
  227. }
  228. }
  229. &-copyright {
  230. background-color: $sidebar-border-color;
  231. height: 32px;
  232. line-height: 32px;
  233. position: absolute;
  234. bottom: 0;
  235. left: 0;
  236. right: 0;
  237. text-align: center;
  238. font-size: 11px;
  239. font-weight: bold;
  240. }
  241. }