_sidebar.scss 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445
  1. @import "globals";
  2. .sidebar {
  3. position: fixed;
  4. width: $sidebar-width;
  5. top: 0;
  6. left: 0;
  7. bottom: 0;
  8. z-index: 4;
  9. background-color: $sidebar-background-color;
  10. color: $sidebar-text-color;
  11. transition: background-color $transitions-duration;
  12. padding-bottom: 32px;
  13. @include for-mobile {
  14. min-width: 280px;
  15. max-width: 360px;
  16. width: 80%;
  17. padding-bottom: 0;
  18. transform: translate3d(-100%, 0, 0);
  19. transition: transform $transitions-duration;
  20. }
  21. &.sidebar-opened {
  22. @include for-mobile {
  23. transform: none;
  24. box-shadow: 0 0 30px 10px rgba(0, 0, 0, 0.2);
  25. }
  26. }
  27. &-header {
  28. display: none;
  29. background-color: $sidebar-background-color;
  30. color: $sidebar-text-color;
  31. height: $sidebar-header-height;
  32. line-height: $sidebar-header-height;
  33. position: fixed;
  34. top: 0;
  35. right: 0;
  36. left: 0;
  37. z-index: 3;
  38. transition: background-color $transitions-duration, transform $transitions-duration;
  39. @include for-mobile {
  40. display: block;
  41. body.scroll-to-bottom & {
  42. transform: translate3d(0, -100%, 0);
  43. }
  44. }
  45. &-menu {
  46. &, &:visited, &:hover {
  47. display: inline-block;
  48. font-size: 14px;
  49. text-transform: uppercase;
  50. color: $sidebar-link-color;
  51. line-height: $sidebar-header-height;
  52. padding: 0 16px;
  53. border-right: 1px solid $sidebar-contrast-background-color;
  54. }
  55. &-icon {
  56. font-size: 16px;
  57. vertical-align: middle;
  58. }
  59. }
  60. }
  61. &-close {
  62. display: none;
  63. float: right;
  64. padding: 4px;
  65. margin: 12px 18px 0 12px;
  66. background: $sidebar-contrast-background-color;
  67. border-radius: 5px;
  68. z-index: 1;
  69. @include for-mobile {
  70. display: inline-block;
  71. }
  72. &.popup {
  73. background-color: $sidebar-popup-search-input-background-color;
  74. }
  75. &-icon {
  76. color: $sidebar-action-color;
  77. font-size: 28px;
  78. font-weight: bold;
  79. vertical-align: middle;
  80. }
  81. &.popup &-icon {
  82. color: $sidebar-popup-search-input-text-color;
  83. }
  84. }
  85. &-wrapper {
  86. height: 100%;
  87. overflow-y: auto;
  88. -webkit-overflow-scrolling: touch;
  89. }
  90. &-section {
  91. padding: 20px 0;
  92. border-bottom: 1px solid $sidebar-contrast-background-color;
  93. transition: border-bottom-color 0.3s;
  94. @include for-mobile {
  95. padding: 10px 0;
  96. }
  97. &:last-child {
  98. border-bottom: 0;
  99. }
  100. }
  101. &-title {
  102. display: block;
  103. color: $sidebar-text-color;
  104. text-transform: uppercase;
  105. font-size: 11px;
  106. font-weight: bold;
  107. overflow: hidden;
  108. text-overflow: ellipsis;
  109. white-space: nowrap;
  110. padding: 0 14px 0 24px;
  111. margin-bottom: 10px;
  112. transition: color $transitions-duration;
  113. @include for-mobile {
  114. padding: 12px 18px 12px 30px;
  115. margin-bottom: 0;
  116. html.touchevents & {
  117. padding-left: 20px;
  118. }
  119. }
  120. &-link {
  121. &, &:visited, &:hover {
  122. color: $sidebar-text-color;
  123. font-weight: bold;
  124. transition: color $transitions-duration;
  125. }
  126. &:hover {
  127. color: $sidebar-hover-title-action-item-color;
  128. }
  129. }
  130. }
  131. &-link {
  132. &, &:visited, &:hover {
  133. display: block;
  134. color: $sidebar-link-color;
  135. overflow: hidden;
  136. text-overflow: ellipsis;
  137. white-space: nowrap;
  138. padding: 8px 12px 8px 24px;
  139. vertical-align: middle;
  140. transition: color $transitions-duration, background-color $transitions-duration;
  141. position: relative;
  142. @include for-mobile {
  143. padding: 12px 18px 12px 30px;
  144. html.touchevents & {
  145. padding-left: 20px;
  146. }
  147. }
  148. &.icon {
  149. font-size: 11px;
  150. text-transform: uppercase;
  151. }
  152. }
  153. &:hover, &.selected {
  154. color: $sidebar-hover-link-color;
  155. background-color: $sidebar-hover-background-color;
  156. }
  157. &-icon {
  158. font-size: 18px;
  159. vertical-align: middle;
  160. margin-right: 6px;
  161. color: $sidebar-icon-color;
  162. transition: color $transitions-duration;
  163. }
  164. &-label {
  165. vertical-align: middle;
  166. }
  167. }
  168. &-center-link {
  169. &, &:visited, &:hover {
  170. display: block;
  171. color: $sidebar-action-color;
  172. font-size: 11px;
  173. text-align: center;
  174. padding: 8px 0;
  175. text-transform: uppercase;
  176. transition: color $transitions-duration, background-color $transitions-duration;
  177. @include for-mobile {
  178. padding: 12px 20px;
  179. }
  180. }
  181. &:hover {
  182. color: $sidebar-hover-action-color;
  183. background-color: $sidebar-hover-background-color;
  184. }
  185. }
  186. &-left {
  187. position: absolute;
  188. left: 4px;
  189. @include for-mobile {
  190. left: 8px;
  191. }
  192. &.collapsible {
  193. display: none;
  194. }
  195. &-pin, &-unpin {
  196. &, &:visited, &:hover {
  197. position: absolute;
  198. top: 1px;
  199. font-size: 14px;
  200. color: $sidebar-action-color;
  201. transition: color $transitions-duration;
  202. html.touchevents & {
  203. display: none;
  204. }
  205. }
  206. &:hover {
  207. color: $sidebar-hover-action-color;
  208. }
  209. }
  210. .apps-list-pinned &-pin {
  211. display: none;
  212. }
  213. .apps-list &-unpin {
  214. display: none;
  215. }
  216. }
  217. &-link:hover &-left.collapsible {
  218. display: inline-block;
  219. }
  220. &-right {
  221. float: right;
  222. margin-left: 10px;
  223. &.collapsible {
  224. display: none;
  225. html.touchevents & {
  226. display: inline;
  227. }
  228. }
  229. &-plus {
  230. font-size: 14px;
  231. outline: 0;
  232. }
  233. &-arrow {
  234. color: $sidebar-arrow-color;
  235. font-size: 16px;
  236. font-weight: bold !important;
  237. transition: color $transitions-duration;
  238. }
  239. &-remove {
  240. &, &:visited, &:hover {
  241. position: relative;
  242. color: $sidebar-action-color;
  243. transition: color $transitions-duration;
  244. }
  245. &:hover {
  246. color: $sidebar-hover-action-color;
  247. }
  248. }
  249. }
  250. &-link:hover &-right.collapsible {
  251. display: inline-block;
  252. }
  253. &-link:hover &-right-arrow {
  254. color: $sidebar-hover-arrow-color;
  255. }
  256. .clone {
  257. display: none;
  258. }
  259. .apps-hide {
  260. &-label {
  261. display: none;
  262. }
  263. &.apps-visible .apps-hide-label.apps-visible {
  264. display: inline;
  265. }
  266. &.apps-hidden .apps-hide-label.apps-hidden {
  267. display: inline;
  268. }
  269. }
  270. &-copyright {
  271. background-color: $sidebar-contrast-background-color;
  272. color: $sidebar-contrast-text-color;
  273. height: 32px;
  274. line-height: 32px;
  275. position: absolute;
  276. bottom: 0;
  277. left: 0;
  278. right: 0;
  279. text-align: center;
  280. font-size: 11px;
  281. font-weight: bold;
  282. transition: background-color $transitions-duration, color $transitions-duration;
  283. @include for-mobile {
  284. display: none;
  285. }
  286. }
  287. &-popup {
  288. position: absolute;
  289. top: 0;
  290. bottom: 0;
  291. left: 0;
  292. width: $sidebar-width;
  293. color: $sidebar-popup-text-color;
  294. background-color: $sidebar-popup-background-color;
  295. overflow-y: auto;
  296. @include for-mobile {
  297. min-width: 280px;
  298. max-width: 360px;
  299. width: 80%;
  300. }
  301. &-container {
  302. display: none;
  303. background-color: transparentize($sidebar-popup-overlay-color, 0.5);
  304. position: fixed;
  305. top: 0;
  306. left: $sidebar-width;
  307. bottom: 0;
  308. right: 0;
  309. z-index: 5;
  310. @include for-mobile {
  311. left: 0;
  312. }
  313. }
  314. &-section {
  315. display: none;
  316. }
  317. &-title {
  318. font-size: 12px;
  319. font-weight: bold;
  320. text-transform: uppercase;
  321. padding: 20px;
  322. overflow: hidden;
  323. text-overflow: ellipsis;
  324. white-space: nowrap;
  325. @include for-mobile {
  326. padding: 24px 20px;
  327. margin-bottom: 0;
  328. font-size: 14px;
  329. }
  330. }
  331. &-search {
  332. background-color: $sidebar-popup-search-input-background-color;
  333. color: $sidebar-popup-search-input-text-color;
  334. width: 100%;
  335. height: 32px;
  336. text-indent: 20px;
  337. border: 0;
  338. font-size: 13px;
  339. outline: 0;
  340. padding: 0;
  341. margin: 0 0 12px 0;
  342. border-radius: 0;
  343. //noinspection CssInvalidPseudoSelector
  344. &::placeholder {
  345. color: $sidebar-popup-search-input-placeholder-color;
  346. }
  347. @include for-mobile {
  348. font-size: 14px;
  349. height: 40px;
  350. }
  351. }
  352. &-list {
  353. margin: 0;
  354. padding: 0;
  355. list-style: none;
  356. &-item {
  357. a, a:visited, a:hover {
  358. color: $sidebar-popup-link-text-color;
  359. padding: 8px 20px;
  360. display: block;
  361. overflow: hidden;
  362. text-overflow: ellipsis;
  363. white-space: nowrap;
  364. @include for-mobile {
  365. padding: 12px 20px;
  366. }
  367. }
  368. &.selected a {
  369. background-color: $sidebar-popup-hover-link-background-color;
  370. color: $sidebar-popup-hover-link-color;
  371. }
  372. }
  373. }
  374. }
  375. }