left-menu.less 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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-position {
  138. position: relative;
  139. .left-menu-setting {
  140. margin-top: 0 !important;
  141. }
  142. .left-menu-setting-icon {
  143. position: absolute;
  144. right: 65%;
  145. top: 25%;
  146. }
  147. }
  148. .left-menu-setting {
  149. padding: 0 9px;
  150. display: flex;
  151. flex-wrap: wrap;
  152. align-items: baseline;
  153. justify-content: flex-end;
  154. border-bottom: solid 1px rgba(0, 0, 0, 0.07);
  155. margin-bottom: 0;
  156. &:first-child {
  157. margin-top: -9px;
  158. }
  159. &:last-child {
  160. border-bottom: 0;
  161. }
  162. &:hover,
  163. &:focus-within {
  164. background-color: @link-color;
  165. label {
  166. color: @white;
  167. }
  168. }
  169. select.form-control {
  170. height: 23px;
  171. padding: 1px @padding-xs;
  172. font-size: inherit;
  173. &:hover {
  174. background-color: @ol-blue-gray-1;
  175. }
  176. }
  177. }
  178. }
  179. #left-menu-mask {
  180. .full-size;
  181. opacity: 0.4;
  182. background-color: #999;
  183. z-index: 99;
  184. transition: opacity 0.5s;
  185. }
  186. // Make the Bootstrap Modal behavior as a left sidebar
  187. #left-menu-modal {
  188. opacity: 1;
  189. overflow-y: hidden;
  190. padding-left: 0 !important; // bootstrap modal may randomly give padding-left when zooming in / out in chrome
  191. .modal-dialog {
  192. height: 100%;
  193. margin: 0;
  194. width: @left-menu-width;
  195. }
  196. .modal-content {
  197. position: initial;
  198. }
  199. &.modal.fade .modal-dialog {
  200. left: -@left-menu-width;
  201. transition: left ease-in-out @left-menu-animation-duration;
  202. -webkit-transition: left ease-in-out @left-menu-animation-duration;
  203. transform: translate(0, 0);
  204. }
  205. &.modal.in .modal-dialog {
  206. left: 0;
  207. transform: translate(0, 0);
  208. }
  209. }
  210. // Don't disable backdrop that allows closing the Modal when clicking outside of it,
  211. // But match its background color with the original mask background color.
  212. .left-menu-modal-backdrop {
  213. background-color: transparent;
  214. }