app.less 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. @import (less) "./common.less";
  2. @import (less) "~heyui/themes/common.less";
  3. @import (less) "./overwrite.less";
  4. @import (less) "./fonts/style.less";
  5. body {
  6. background: #f3f6f8;
  7. color: rgb(47, 47, 47);
  8. font-weight: 400;
  9. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  10. }
  11. p {
  12. margin: 8px 0;
  13. }
  14. pre {
  15. white-space: pre-wrap;
  16. }
  17. @frame-box-shadow: rgba(0, 21, 41, .08);
  18. #app {
  19. .app-frame {
  20. min-height: 100vh;
  21. }
  22. .h-layout-sider {
  23. z-index: 2;
  24. box-shadow: 0 1px 1px @frame-box-shadow;
  25. }
  26. .h-layout-header {
  27. overflow: hidden;
  28. box-shadow: 0 1px 1px 0 @frame-box-shadow;
  29. }
  30. .h-layout-sider-collapsed {
  31. .app-logo {
  32. padding-left: 5px;
  33. }
  34. .h-layout-header-fixed {
  35. .sys-tabs-vue {
  36. left: @layout-sider-collapse-width;
  37. }
  38. }
  39. }
  40. .h-layout-header-fixed {
  41. .sys-tabs-vue {
  42. position: fixed;
  43. top: @layout-header-height;
  44. right: 0;
  45. z-index: 2;
  46. left: @layout-sider-width;
  47. }
  48. .sys-tabs-vue + .h-layout-content {
  49. margin-top: 45px;
  50. }
  51. }
  52. .h-layout-sider-fixed .h-layout-header-fixed {
  53. .h-layout-content {
  54. overflow: auto;
  55. height: calc(~"100vh - @{layout-header-height}");
  56. }
  57. .sys-tabs-vue + .h-layout-content {
  58. height: calc(~"100vh - @{layout-header-height} - @{sys-tabs-height}");
  59. }
  60. }
  61. .h-layout-sider-theme-dark .app-logo a {
  62. color: #FFF;
  63. }
  64. }
  65. @media (max-width: 900px) {
  66. #app {
  67. .app-header-info {
  68. .h-autocomplete, .app-header-icon-item {
  69. display: none;
  70. }
  71. }
  72. .h-layout {
  73. padding-left: 0;
  74. .app-menu-mask {
  75. position: fixed;
  76. left: @layout-sider-width;
  77. right: 0;
  78. top: 0;
  79. bottom: 0;
  80. background: rgba(0, 0, 0, 0.2);
  81. z-index: 1;
  82. }
  83. &.h-layout-sider-collapsed {
  84. > .h-layout-sider {
  85. transform: translateX(-@layout-sider-collapse-width);
  86. overflow: hidden;
  87. }
  88. .app-menu-mask {
  89. display: none;
  90. }
  91. }
  92. }
  93. .h-layout-content {
  94. -webkit-overflow-scrolling: touch;
  95. }
  96. .h-layout-header-fixed .h-layout-header {
  97. left: 0 !important;
  98. }
  99. .sys-tabs-vue {
  100. left: 0 !important;
  101. }
  102. }
  103. }
  104. .frame-page,
  105. .frame-flex-page {
  106. margin: 20px;
  107. .clearfix;
  108. &.frame-flex-page {
  109. display: flex;
  110. padding: 10px 0;
  111. }
  112. .frame-left {
  113. width: 224px;
  114. border-right: @border;
  115. margin-right: -1px;
  116. }
  117. .frame-main {
  118. flex: 1;
  119. border-left: @border;
  120. padding: 8px 40px;
  121. .subframe-title {
  122. font-size: 20px;
  123. color: rgba(0, 0, 0, 85);
  124. line-height: 28px;
  125. font-weight: 500;
  126. margin-bottom: 12px;
  127. }
  128. }
  129. }
  130. .actions {
  131. text-align: center;
  132. span, a {
  133. color: @primary-color;
  134. cursor: pointer;
  135. margin-right: 10px;
  136. &:hover {
  137. text-decoration: underline;
  138. color: darken(@primary-color, 20%);
  139. }
  140. &:last-child {
  141. margin-right: 0;
  142. }
  143. }
  144. }
  145. .cus-table {
  146. width: 100%;
  147. border-collapse: collapse;
  148. td {
  149. padding: 0 8px;
  150. border: 1px solid #e2e2e2;
  151. font-size: 12px;
  152. height: 32px;
  153. &.tip {
  154. background-color: #FFEEEF;
  155. }
  156. }
  157. tbody tr:nth-child(even) {
  158. background-color: #f8fbf8;
  159. }
  160. tbody tr:hover {
  161. background-color: #F0F6FF;
  162. }
  163. .header {
  164. td {
  165. background-color: #F5F5F5;
  166. text-align: center;
  167. font-weight: bold;
  168. height: 35px;
  169. }
  170. }
  171. }
  172. .small-td td {
  173. height: 32px !important;
  174. }
  175. /*在谷歌下移除input[number]的上下箭头*/
  176. input[type='number']::-webkit-outer-spin-button,
  177. input[type='number']::-webkit-inner-spin-button {
  178. -webkit-appearance: none !important;
  179. margin: 0;
  180. }
  181. /*在firefox下移除input[number]的上下箭头*/
  182. input[type="number"] {
  183. -moz-appearance: textfield;
  184. }