mock平台

Postman.scss 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. @import '../../styles/mixin.scss';
  2. .postman {
  3. .adv-button {
  4. margin-bottom: 8px;
  5. }
  6. .pretty-editor {
  7. border: 1px solid #d9d9d9;
  8. border-radius: 4px;
  9. min-height: 200px;
  10. }
  11. .pretty-editor-body {
  12. border: 1px solid #d9d9d9;
  13. border-radius: 4px;
  14. min-height: 300px;
  15. min-width: 100%;
  16. }
  17. .pretty-editor-header {
  18. border: 1px solid #d9d9d9;
  19. border-radius: 4px;
  20. min-height: 300px;
  21. }
  22. .interface-test {
  23. padding: .24rem;
  24. .ant-checkbox-wrapper{
  25. display: flex;
  26. }
  27. }
  28. .insert-code{
  29. margin-right: 20px;
  30. .code-item{
  31. border: 1px solid #dbd9d9;
  32. padding:3px;
  33. line-height: 30px;
  34. margin-bottom: 5px;
  35. }
  36. }
  37. .case-script{
  38. min-height: 500px;
  39. margin: 10px;
  40. }
  41. .response-tab{
  42. margin-top: 20px;
  43. margin-bottom: 20px;
  44. .ant-tabs-nav{
  45. background: #f7f7f7;
  46. border-radius: 0 0 4px 4px;
  47. border: 1px solid #d9d9d9;
  48. width: 100%;
  49. }
  50. .header, .body{
  51. margin-bottom: 10px;
  52. }
  53. .header {
  54. padding-left: 10px;
  55. padding-right: 5px;
  56. }
  57. .body {
  58. padding-left: 5px;
  59. padding-right: 10px;
  60. }
  61. .response-test{
  62. min-height: 400px;
  63. }
  64. }
  65. .ant-spin-blur {
  66. .res-code.success {
  67. background-color: transparent;
  68. }
  69. .res-code.fail {
  70. background-color: transparent;
  71. }
  72. }
  73. .res-code {
  74. padding: .08rem .28rem;
  75. color: #fff;
  76. margin-left: -.1rem;
  77. margin-right: -.28rem;
  78. transition: all .2s;
  79. position: relative;
  80. border-radius: 2px;
  81. }
  82. .res-code.success {
  83. background-color: $color-antd-green;
  84. }
  85. .res-code.fail {
  86. background-color: $color-antd-red;
  87. }
  88. // 容器:左侧是header 右侧是body
  89. .container-header-body {
  90. display: flex;
  91. padding-bottom: .36rem;
  92. .header, .body {
  93. flex: 1 0 300px;
  94. .pretty-editor-header, .pretty-editor-body {
  95. height: 100%;
  96. }
  97. .postman .pretty-editor-body {
  98. min-height: 200px;
  99. }
  100. .ace_print-margin {
  101. display: none;
  102. }
  103. }
  104. .header {
  105. max-width: 400px;
  106. }
  107. .container-title {
  108. display: flex;
  109. justify-content: space-between;
  110. padding: .08rem 0;
  111. }
  112. .resizer {
  113. flex: 0 0 21px;
  114. position: relative;
  115. &:after {
  116. content: '';
  117. display: block;
  118. width: 1px;
  119. height: 100%;
  120. background-color: #acaaaa;
  121. opacity: .8;
  122. position: absolute;
  123. left: 50%;
  124. }
  125. }
  126. // res body 无返回json时显示text信息
  127. .res-body-text {
  128. height: 100%;
  129. border: 1px solid #d9d9d9;
  130. border-radius: 4px;
  131. padding: 8px;
  132. }
  133. }
  134. .has-plugin, .req-part, .resp-part {
  135. margin-bottom: 16px;
  136. }
  137. .url {
  138. display: flex;
  139. margin: 24px 10px;
  140. }
  141. .key-value-wrap {
  142. display: flex;
  143. align-items: center;
  144. margin: 0 0 5px 0;
  145. .key {
  146. flex-basis: 220px;
  147. }
  148. .value {
  149. flex-grow: 1;
  150. }
  151. .eq-symbol {
  152. margin: 0 5px;
  153. }
  154. .params-enable{
  155. width: 24px;
  156. }
  157. }
  158. .icon-btn {
  159. cursor: pointer;
  160. margin-left: 6px;
  161. }
  162. .icon-btn:hover {
  163. color: #2395f1;
  164. }
  165. }
  166. .env-modal{
  167. .ant-modal-body{
  168. padding: 0;
  169. }
  170. }