yapi/client/containers/AddInterface/AddInterface.scss

314 lines
5.1 KiB
SCSS
Raw Normal View History

2017-07-26 22:09:13 +08:00
@import '../../styles/mixin.scss';
2017-07-18 12:53:53 +08:00
.add-interface-box {
-webkit-box-flex: 1;
2017-07-27 16:29:28 +08:00
min-height: 5rem;
2017-07-18 12:53:53 +08:00
font-size: .14rem;
overflow-x: hidden;
overflow-y: auto;
2017-07-27 20:06:49 +08:00
font-size: .12rem;
2017-07-18 12:53:53 +08:00
.content {
2017-07-28 10:55:38 +08:00
max-width: 11.7rem;
min-width: 11.7rem;
2017-07-26 14:54:14 +08:00
border-radius: 4px;
2017-07-28 10:55:38 +08:00
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
2017-07-18 12:53:53 +08:00
background: #FFF;
2017-07-24 19:43:13 +08:00
padding: 10px 20px 50px 20px;
2017-07-28 10:55:38 +08:00
margin: 0 auto;
2017-07-26 14:54:14 +08:00
2017-07-27 20:06:49 +08:00
.ant-tabs-content {
padding: 0 0 50px 0;
}
.border {
zoom: 1;
overflow: hidden;
}
.ant-card-body {
padding: 0;
}
.ant-tabs-nav {
float: left;
}
.req-title {
margin: 40px 0 0 30px;
color: #666;
font-weight: normal;
}
2017-07-18 12:53:53 +08:00
.save {
2017-07-27 20:06:49 +08:00
position: absolute;
bottom: 0;
left: 550px;
2017-07-18 12:53:53 +08:00
}
2017-07-26 12:31:42 +08:00
.mock {
float: right;
margin: 0 15px 0 0;
}
2017-07-26 14:54:14 +08:00
2017-07-18 12:53:53 +08:00
table {
width: 100%;
2017-07-27 20:06:49 +08:00
margin: 20px 0 0 40px;
2017-07-18 12:53:53 +08:00
th {
padding:0 10px;
}
2017-07-26 14:54:14 +08:00
2017-07-18 12:53:53 +08:00
td {
padding: 10px 0;
}
.select {
height: 32px;
}
.h3 {
2017-07-27 20:06:49 +08:00
font-size: .12rem;
2017-07-18 12:53:53 +08:00
margin: 0 10px 0 15px;
2017-07-27 20:06:49 +08:00
width: 100px;
display: inline-block;
text-align: right;
2017-07-18 12:53:53 +08:00
}
.url {
2017-07-27 20:06:49 +08:00
width: 16%;
2017-07-18 12:53:53 +08:00
}
}
.close {
font-size: .25rem;
color: #C44;
display: block;
margin: 0 0 0 10px;
cursor: pointer;
}
2017-07-26 14:54:14 +08:00
2017-07-18 12:53:53 +08:00
/* .req-header.css */
.req-header {
display: -webkit-box;
line-height: 32px;
2017-07-27 20:06:49 +08:00
margin: 10px 0 0 50px;
2017-07-18 12:53:53 +08:00
padding: 15px 0 0 0;
.req-h3 {
line-height: 32px;
2017-07-27 20:06:49 +08:00
font-weight: normal;
2017-07-18 12:53:53 +08:00
}
ul {
-webkit-box-flex: 1;
margin: 0 0 0 24px;
li {
display: -webkit-box;
2017-07-19 15:12:10 +08:00
margin: 0 0 10px 0;
2017-07-18 12:53:53 +08:00
}
.title {
margin: 0 10px 0 20px;
display: block;
}
.req-content {
width: 220px;
}
}
}
.req-save, .res-save {
2017-07-27 20:35:19 +08:00
margin: 5px 0 0 159px;
2017-07-18 12:53:53 +08:00
}
2017-07-26 14:54:14 +08:00
2017-07-18 12:53:53 +08:00
/* .req-params.css */
.req-params {
display: -webkit-box;
padding: 20px 0 0 0;
2017-07-27 20:06:49 +08:00
margin: 20px 0 0 90px;
width: 650px;
2017-07-27 20:35:19 +08:00
height: 200px;
2017-07-27 20:06:49 +08:00
.req-h3 {
font-weight: normal;
}
2017-07-18 12:53:53 +08:00
}
2017-07-26 14:54:14 +08:00
2017-07-26 12:31:42 +08:00
.res-params-box {
display: inline-block;
width: 530px;
float: left;
2017-07-27 20:06:49 +08:00
margin: 30px 0 0 50px;
2017-07-26 14:54:14 +08:00
2017-07-26 12:31:42 +08:00
/* .req-save.css */
.res-params {
display: -webkit-box;
line-height: 32px;
padding: 20px 0 0 0;
border-top: 1px #EEE solid;
margin: 20px 0 0 0;
ul {
-webkit-box-flex: 1;
margin: 0 0 0 24px;
li {
display: -webkit-box;
}
.required {
margin: 0 10px 0 20px;
}
.title {
margin: 0 10px;
display: block;
}
2017-07-18 12:53:53 +08:00
}
}
}
2017-07-26 14:54:14 +08:00
2017-07-26 12:31:42 +08:00
/* Result.css */
2017-07-18 12:53:53 +08:00
.result {
2017-07-26 12:31:42 +08:00
display: inline-block;
2017-07-18 12:53:53 +08:00
line-height: 32px;
2017-07-27 20:06:49 +08:00
margin: 29px 0 0 20px;
2017-07-26 12:31:42 +08:00
width: 500px;
float: left;
2017-07-18 12:53:53 +08:00
textarea {
width: 100%;
2017-07-20 14:48:29 +08:00
border: 1px #CCC solid;
2017-07-24 19:43:13 +08:00
height: 300px;
}
pre {
padding: 10px;
box-sizing: border-box;
width: 100%;
2017-07-27 20:35:19 +08:00
height: 330px;
2017-07-24 19:43:13 +08:00
overflow-x: hidden;
2017-07-26 14:54:14 +08:00
overflow-y: auto;
2017-07-24 19:43:13 +08:00
line-height: 1.2;
2017-07-20 14:48:29 +08:00
}
2017-07-26 14:54:14 +08:00
2017-07-20 14:48:29 +08:00
.ant-tabs {
-webkit-box-flex: 1;
2017-07-18 12:53:53 +08:00
}
}
2017-07-24 19:43:13 +08:00
.dynamic-delete-button {
margin: 0 0 0 10px;
color: #CCC;
}
2017-07-18 12:53:53 +08:00
}
2017-07-26 22:09:13 +08:00
2017-07-26 16:25:34 +08:00
/* .mock-url-box.css */
.mock-url-box {
clear: both;
padding: 10px 0 0 0;
2017-07-27 20:06:49 +08:00
margin: 10px 0 0 90px;
2017-07-27 21:10:22 +08:00
zoom: 1;
overflow: hidden;
.title {
float: left;
line-height: 35px;
}
2017-07-26 16:25:34 +08:00
p {
2017-07-27 20:06:49 +08:00
width: 52.8%;
2017-07-26 16:25:34 +08:00
height: 35px;
line-height: 35px;
border: 1px #DDD solid;
display: inline-block;
2017-07-27 20:06:49 +08:00
margin: 0 10px 0 8px;
2017-07-26 16:25:34 +08:00
padding: 0 0 0 10px;
2017-07-27 21:10:22 +08:00
float: left;
2017-07-26 16:25:34 +08:00
}
2017-07-27 20:06:49 +08:00
.host {
margin: 10px 0 0 80px;
}
2017-07-27 21:10:22 +08:00
#mock-clipboard {
margin: 3px 0 0 0;
}
2017-07-26 16:25:34 +08:00
}
2017-07-24 10:59:17 +08:00
.loading {
display: none;
width: 100%;
height: 100px;
position: fixed;
top: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
background-size: 30%;
z-index: 10000;
}
.is-loading {
display: block;
}
2017-07-20 14:48:29 +08:00
}
#container {
max-width: 800px;
margin: 0 auto;
}
body {
.w-e-text {
p, h1, h2, h3, h4, h5, table, pre {
line-height: auto;
margin: 0;
2017-07-27 20:06:49 +08:00
font-size: .12rem;
2017-07-20 14:48:29 +08:00
color: #777;
font-family: 'Microsoft Yahei';
font-weight: normal;
}
}
.w-e-toolbar {
// display: none;
height: 1px;
overflow: hidden;
border: none;
}
.w-e-text {
padding: 15px;
}
}
#toolbar-container {
border: 1px solid #EEE;
background-color: #fff;
}
#toolbar-container:after {
display: table;
content: '';
clear: both;
}
#editor-toolbar {
float: left;
}
#btn-container {
float: right;
text-align: right;
}
#editor-text {
border: 1px solid #EEE;
border-top: 0;
height: 300px;
background-color: #fff;
}
#req-cover {
padding: 0 20px;
2017-07-27 20:35:19 +08:00
border: 1px #DDD solid;
2017-07-27 19:32:08 +08:00
// background-color: #FFF;
2017-07-20 14:48:29 +08:00
-webkit-box-flex: 1;
2017-07-27 20:35:19 +08:00
margin: 0 0 0 15px;
2017-07-20 14:48:29 +08:00
}
#res-cover {
background-color: #FFF;
height: 330px;
padding: 0 20px;
-webkit-box-flex: 1;
2017-07-26 14:54:14 +08:00
}