left-menu.less 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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: -280px;
  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: @gray-light;
  25. border-bottom: 1px solid @gray-lighter;
  26. }
  27. > h4:first-child {
  28. margin-top: 0;
  29. }
  30. ul.nav {
  31. a {
  32. cursor: pointer;
  33. &:hover,
  34. &:active,
  35. &:focus {
  36. background-color: @link-color;
  37. color: white;
  38. i {
  39. color: white;
  40. }
  41. }
  42. i {
  43. color: @gray;
  44. }
  45. padding: (@line-height-computed / 4);
  46. font-weight: 700;
  47. }
  48. .link-disabled {
  49. color: @gray-light;
  50. }
  51. }
  52. > ul.nav:last-child {
  53. margin-bottom: @line-height-computed / 2;
  54. }
  55. ul.nav-downloads {
  56. li {
  57. display: inline-block;
  58. text-align: center;
  59. width: 100px;
  60. a {
  61. color: @gray-dark;
  62. }
  63. i {
  64. margin: (@line-height-computed / 4) 0;
  65. }
  66. }
  67. }
  68. form.settings {
  69. label {
  70. font-weight: normal;
  71. color: @gray-dark;
  72. flex: 1 0 50%;
  73. margin-bottom: 0;
  74. margin-top: 9px;
  75. padding-right: 5px;
  76. white-space: nowrap;
  77. }
  78. button,
  79. select {
  80. width: 50%;
  81. margin: 9px 0;
  82. }
  83. .form-controls {
  84. clear: both;
  85. padding: 0 9px;
  86. display: flex;
  87. flex-wrap: wrap;
  88. align-items: baseline;
  89. justify-content: flex-end;
  90. border-bottom: solid 1px rgba(0, 0, 0, 0.07);
  91. &:first-child {
  92. margin-top: -9px;
  93. }
  94. &:last-child {
  95. border-bottom: 0;
  96. }
  97. &:hover {
  98. background-color: @link-color;
  99. // select.form-control {
  100. // color: white;
  101. // }
  102. label,
  103. i.fa {
  104. color: white;
  105. }
  106. }
  107. &:after {
  108. content: '';
  109. display: table;
  110. clear: both;
  111. }
  112. }
  113. }
  114. }
  115. #left-menu-mask {
  116. .full-size;
  117. opacity: 0.4;
  118. background-color: #999;
  119. z-index: 99;
  120. }