left-menu.less 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. #left-menu {
  2. position: absolute;
  3. width: @left-menu-width;
  4. padding: (@line-height-computed / 2);
  5. top: 0;
  6. bottom: 0;
  7. background-color: #f4f4f4;
  8. z-index: 100;
  9. overflow-y: auto;
  10. overflow-x: hidden;
  11. -webkit-transition: left ease-in-out @left-menu-animation-duration;
  12. transition: left ease-in-out @left-menu-animation-duration;
  13. font-size: 14px;
  14. left: -@left-menu-width;
  15. &.shown {
  16. left: 0;
  17. }
  18. h4 {
  19. font-family: @font-family-sans-serif;
  20. font-weight: 400;
  21. font-size: 1rem;
  22. margin: (@line-height-computed / 2) 0;
  23. padding-bottom: (@line-height-computed / 4);
  24. color: @neutral-70;
  25. border-bottom: 1px solid @gray-lighter;
  26. }
  27. > h4:first-child {
  28. margin-top: 0;
  29. }
  30. ul.nav {
  31. .left-menu-button {
  32. cursor: pointer;
  33. padding: (@line-height-computed / 4);
  34. font-weight: 700;
  35. color: @link-color;
  36. display: flex;
  37. align-items: center;
  38. width: 100%;
  39. background-color: inherit;
  40. border: none;
  41. i {
  42. margin-right: @margin-sm;
  43. color: @gray;
  44. }
  45. &:hover,
  46. &:active {
  47. background-color: @link-color;
  48. color: white;
  49. i {
  50. color: white;
  51. }
  52. }
  53. }
  54. a {
  55. cursor: pointer;
  56. &:hover,
  57. &:active,
  58. &:focus {
  59. background-color: @link-color;
  60. color: white;
  61. i {
  62. color: white;
  63. }
  64. }
  65. i {
  66. color: @gray;
  67. }
  68. padding: (@line-height-computed / 4);
  69. font-weight: 700;
  70. }
  71. .link-disabled {
  72. color: @gray-light;
  73. }
  74. }
  75. > ul.nav:last-child {
  76. margin-bottom: @line-height-computed / 2;
  77. }
  78. ul.nav-downloads {
  79. li {
  80. display: inline-block;
  81. text-align: center;
  82. width: 100px;
  83. a {
  84. color: @gray-dark;
  85. }
  86. i {
  87. margin: (@line-height-computed / 4) 0;
  88. }
  89. }
  90. }
  91. form.settings {
  92. label {
  93. font-weight: normal;
  94. color: @gray-dark;
  95. flex: 1 0 50%;
  96. margin-bottom: 0;
  97. margin-top: 9px;
  98. padding-right: 5px;
  99. white-space: nowrap;
  100. }
  101. button,
  102. select {
  103. width: 50%;
  104. margin: 9px 0;
  105. }
  106. .form-controls {
  107. clear: both;
  108. padding: 0 9px;
  109. display: flex;
  110. flex-wrap: wrap;
  111. align-items: baseline;
  112. justify-content: flex-end;
  113. border-bottom: solid 1px rgba(0, 0, 0, 0.07);
  114. &:first-child {
  115. margin-top: -9px;
  116. }
  117. &:last-child {
  118. border-bottom: 0;
  119. }
  120. &:hover {
  121. background-color: @link-color;
  122. // select.form-control {
  123. // color: white;
  124. // }
  125. label,
  126. i.fa {
  127. color: white;
  128. }
  129. }
  130. &:after {
  131. content: '';
  132. display: table;
  133. clear: both;
  134. }
  135. }
  136. }
  137. .left-menu-setting {
  138. padding: 0 9px;
  139. display: flex;
  140. flex-wrap: wrap;
  141. align-items: baseline;
  142. justify-content: flex-end;
  143. border-bottom: solid 1px rgba(0, 0, 0, 0.07);
  144. margin-bottom: 0;
  145. &:first-child {
  146. margin-top: -9px;
  147. }
  148. &:last-child {
  149. border-bottom: 0;
  150. }
  151. &:hover,
  152. &:focus-within {
  153. background-color: @link-color;
  154. label {
  155. color: @white;
  156. }
  157. }
  158. select.form-control {
  159. height: 23px;
  160. padding: 1px @padding-xs;
  161. font-size: inherit;
  162. &:hover {
  163. background-color: @ol-blue-gray-1;
  164. }
  165. }
  166. }
  167. }
  168. #left-menu-mask {
  169. .full-size;
  170. opacity: 0.4;
  171. background-color: #999;
  172. z-index: 99;
  173. transition: opacity 0.5s;
  174. }
  175. // Make the Bootstrap Modal behavior as a left sidebar
  176. #left-menu-modal {
  177. opacity: 1;
  178. overflow-y: hidden;
  179. padding-left: 0 !important; // bootstrap modal may randomly give padding-left when zooming in / out in chrome
  180. .modal-dialog {
  181. height: 100%;
  182. margin: 0;
  183. width: @left-menu-width;
  184. }
  185. .modal-content {
  186. position: initial;
  187. }
  188. &.modal.fade .modal-dialog {
  189. left: -@left-menu-width;
  190. transition: left ease-in-out @left-menu-animation-duration;
  191. -webkit-transition: left ease-in-out @left-menu-animation-duration;
  192. transform: translate(0, 0);
  193. }
  194. &.modal.in .modal-dialog {
  195. left: 0;
  196. transform: translate(0, 0);
  197. }
  198. }
  199. // Don't disable backdrop that allows closing the Modal when clicking outside of it,
  200. // But match its background color with the original mask background color.
  201. .left-menu-modal-backdrop {
  202. background-color: transparent;
  203. }