mock平台

common.scss 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. @charset "utf-8";
  2. html {
  3. font-size:100px;
  4. }
  5. html, body {
  6. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
  7. "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
  8. SimSun, sans-serif;
  9. margin: 0;
  10. padding: 0;
  11. }
  12. html {
  13. // background-color: #32363a;
  14. }
  15. ::selection {
  16. background-color: #2395f1;
  17. }
  18. /* 设置滚动条的样式 */
  19. ::-webkit-scrollbar {
  20. width: 6px;
  21. }
  22. /* 外层轨道 */
  23. ::-webkit-scrollbar-track {
  24. -webkit-box-shadow: inset006pxrgba(255,0,0,0.3);
  25. // background-color:
  26. background: rgba(255, 255, 255, 0.1);
  27. }
  28. /* 滚动条滑块 */
  29. ::-webkit-scrollbar-thumb {
  30. border-radius: 4px;
  31. background: rgba(0,0,0,0.2);
  32. -webkit-box-shadow: inset006pxrgba(0,0,0,0.5);
  33. }
  34. ::-webkit-scrollbar-thumb:window-inactive {
  35. background: rgba(0,0,0,0.2);
  36. }
  37. div, article, p, table, tr, td, th, ul, ol, li, h1, h2, h3, form, dl, dt, dd {
  38. margin: 0;
  39. padding: 0;
  40. box-sizing: border-box;
  41. }
  42. ul {
  43. list-style-type: none;
  44. }
  45. a {
  46. text-decoration: none;
  47. &:active, &:hover, &:visited, &:focus{
  48. text-decoration: none
  49. }
  50. }
  51. a:hover {
  52. color: #636363;
  53. }
  54. em {
  55. font-style: normal;
  56. }
  57. [data-reactroot], .g-main, .router-main {
  58. height: 100%;
  59. }
  60. // 页面最外层元素 样式
  61. .router-main {
  62. padding-bottom: .24rem;
  63. min-height: 100%;
  64. height: auto !important;
  65. height: 100%;
  66. margin-bottom: -2.4rem;
  67. background-color: #eceef1;
  68. &::after {
  69. content: '';
  70. display: block;
  71. height: 2.4rem;
  72. }
  73. }
  74. .m-tab {
  75. .ant-tabs-nav-wrap {
  76. background-color: #eceef1;
  77. }
  78. }
  79. .hidden {
  80. display: none;
  81. }
  82. // 布局容器 guitter: 16px
  83. .g-row {
  84. min-width: 7.52rem; // Col宽度 (752+16)/24 = 32
  85. margin: 0 auto;
  86. padding: 0 .24rem;
  87. }
  88. .m-container {
  89. margin: .24rem auto;
  90. padding: .24rem;
  91. }
  92. .ant-dropdown .user-menu {
  93. box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  94. }
  95. // confirm 框内边距过大
  96. .ant-confirm .ant-modal-body{
  97. padding: .24rem !important;
  98. }
  99. .card-panel {
  100. padding: .36rem .24rem 0;
  101. }
  102. .pannel-without-tab {
  103. min-height: 5rem;
  104. }
  105. .panel-title {
  106. margin-bottom: .16rem;
  107. border-left: 3px solid #2395f1;
  108. padding-left: 8px;
  109. .title {
  110. font-weight: normal;
  111. }
  112. .desc {
  113. font-size: 13px;
  114. color: #919191;
  115. }
  116. }
  117. @media (max-width: 768px) {
  118. html {
  119. width: min-content !important;
  120. }
  121. }
  122. .tag-status {
  123. &::before {
  124. content: '';
  125. display: inline-block;
  126. margin-right: 6px;
  127. width: 7px;
  128. height: 7px;
  129. border-radius: 50%;
  130. position: relative;
  131. bottom: 1px;
  132. }
  133. &.done::before {
  134. background-color: #57cf27;
  135. }
  136. &.undone::before {
  137. background-color: #ff561b;
  138. }
  139. }
  140. .ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab{
  141. border: none;
  142. }
  143. .ant-tabs.ant-tabs-card > .ant-tabs-bar .ant-tabs-tab-active{
  144. border: none;
  145. }
  146. .ant-tabs.ant-tabs-card > .ant-tabs-content{
  147. margin-top: -1px;
  148. }
  149. .tabs-large .ant-tabs-nav-container{
  150. font-size: 16px;
  151. }
  152. .ant-tree li .ant-tree-node-content-wrapper{
  153. padding: 3px 5px;
  154. height: unset;
  155. // line-height: 25px;
  156. }
  157. .ant-tree li .ant-tree-node-content-wrapper.ant-tree-node-selected{
  158. background-color: #d5ebfc;
  159. }
  160. // 页面级底部固定 需要添加padding以保证页面底部不被覆盖
  161. // .has-affix-footer {
  162. // padding-bottom: .92rem;
  163. // }
  164. .popover-index {
  165. max-width: 3.2rem;
  166. .ant-popover-title {
  167. height: auto;
  168. }
  169. .title-container {
  170. padding: .16rem 0;
  171. .title {
  172. text-align: center;
  173. }
  174. }
  175. .btn-container {
  176. text-align: center;
  177. .btn {
  178. margin: 0 .04rem;
  179. }
  180. }
  181. }
  182. .study-mask {
  183. position: fixed;
  184. left: 0;
  185. top: 0;
  186. right: 0;
  187. bottom: 0;
  188. background-color: rgba(0,0,0,.35);
  189. z-index: 2;
  190. }
  191. // tooltip 中的链接
  192. .link-tooltip {
  193. color: #56b2fd;
  194. &:hover {
  195. color: #2395f1;
  196. }
  197. }