client.css 5.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/

20 21 22 23 24 25 26 27 28 29 30 31
#main {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

* {
    font-family: "Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;
}

32
.header {
33 34
    background-color: #fff;
    box-shadow: 0 0  20px rgba(0, 0, 0, 0.05);
35
    position: relative;
36 37
    z-index: 20;
    height: 55px;
38 39 40
}

.header h1 {
41
    color: #222;
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
    line-height: 50px;
    margin: 0;
    font-size: 20px;
}

#logo>* {
    display: inline-block;
    vertical-align: middle;
}

#logo img {
    height: 30px;
    margin-right: 20px;
}

57 58 59 60 61 62 63 64 65 66 67 68
.el-aside {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.el-main {
    background: #f3f4fa;
    padding: 0;
}

.nav-toolbar, .test-run-controls {
69
    padding: 10px 10px;
70
    background: #fff;
71
    position: fixed;
72
    width: 330px;
73
    z-index: 2;
74 75
    /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); */
    border-bottom: 1px solid #eee;
76
}
77 78 79

.test-run-controls {
    z-index: 1;
80
    position: sticky;
81 82
    width: 100%;
    padding: 5px 20px;
83
    top: 0px;
84 85 86 87

    background: #896bda;
    box-shadow: 0 0 20px rgb(0 0 0 / 20%);
    border-bottom: none;
88
}
89 90

.test-run-controls>* {
P
pissang 已提交
91 92 93
    display: inline-block;
    vertical-align: middle;
}
94

95 96 97 98 99
.nav-toolbar .el-button {
    padding-left: 8px;
    padding-right: 8px;
}

P
pissang 已提交
100
.run-config-item {
101
    margin: 0 5px;
P
pissang 已提交
102 103 104 105
}
.run-config-item>* {
    display: inline-block;
    vertical-align: middle;
106
    font-size: 12px;
107 108 109 110 111 112 113 114 115
    color: #fff;
}

.run-config-item .el-input__inner,
.run-config-item .el-button-group {
    border: none;
}
.run-config-item .el-button {
    border-color: #fff;
116 117 118 119 120
}

.run-config-item .label {
    margin-right: 2px;
    margin-left: 5px;
121
    text-transform: uppercase;
P
pissang 已提交
122 123
}

124 125 126

.test-list {
    overflow-x: hidden;
127
    background: #fff;
128 129
    margin: 0;
    padding: 0;
130 131 132 133 134 135 136

    position: absolute;
    top: 48px;
    bottom: 0;
    right: 0;
    left: 0;
    overflow-y: scroll;
137 138 139 140 141
}
.test-list li {
    list-style: none;
    padding-left: 10px;
    cursor: pointer;
142
    color: #222;
143
}
144 145 146
.test-list li .el-checkbox {
    margin-right: 5px;
}
147 148
.test-list li a.menu-link {
    display: inline-block;
149
    text-decoration: none;
150 151
    font-size: 14px;
    line-height: 40px;
152
    color: #222;
153 154
    margin-left: 3px;
    cursor: pointer;
155
}
156 157 158 159
.test-list li a.menu-link i {
    font-size: 16px;
    margin-left: 10px;
}
160

161
.test-list li.active {
162 163 164 165
    background: #5470C6;
}
.test-list li.active a {
    color: #fff;
166 167
}
.test-list li:hover {
168
    border-right: 4px solid #5470C6
169 170 171 172
}
.test-list li>* {
    vertical-align: middle;
    display: inline-block
173 174
}

175 176 177 178
.test-list .el-progress__text {
    font-size: 12px!important;
}

179 180 181 182 183 184 185 186 187 188 189
.el-progress.is-success .el-progress__text {
    color: #67C23A;
    -webkit-text-stroke: 1px #67C23A;
}
.el-progress.is-exception .el-progress__text {
    color: #F56C6C;
    -webkit-text-stroke: 1px #F56C6C;
}

.test-result {
    padding: 20px;
190
    margin-top: 20px;
191 192
}

P
pissang 已提交
193 194 195 196
.test-result .el-progress__text {
    font-size: 14px!important;
}

P
pissang 已提交
197 198 199 200 201 202 203
.test-result h3 {
    font-size: 40px;
    font-weight: 200;
    padding: 0;
    margin: 0;
}

204 205 206
.test-result .title {
    margin-left: 20px;
}
P
pissang 已提交
207 208 209 210 211 212 213 214 215 216 217 218 219 220 221
.test-result .title>* {
    display: inline-block;
    vertical-align: middle;
}
.test-result .title a {
    margin-left: 10px;
    font-size: 20px;
    font-weight: 200;
    text-decoration: none;
}
.test-result .title a:hover {
    text-decoration: underline;
}

.test-screenshots {
222
    margin-top: 20px;
223 224 225
    padding: 0 20px;
}

226 227 228 229
.test-screenshots h4 {
    margin-top: 60px;
}

P
pissang 已提交
230 231 232
.test-screenshots .preview {
    cursor: pointer;
    color: #409eff;
233 234
    float: right;
    font-size: 20px;
P
pissang 已提交
235 236 237 238 239
}
.test-screenshots .preview:hover {
    text-decoration: underline;
}

P
pissang 已提交
240
.test-screenshots img {
241 242
    /* height: 200px; */
    width: 100%;
243
}
P
pissang 已提交
244
.test-screenshots h4 {
245 246
    font-size: 30px;
    font-weight: 200;
P
pissang 已提交
247
    color: #162436;
248 249
}

250 251
.test-errors, .test-logs {
    margin-top: 20px;
252
    padding: 0 20px;
253 254 255 256 257 258 259 260 261 262 263 264
}

.test-logs .log-item {
    margin: 10px 20px;
    color: #909399;
}

.test-errors .error-item {
    margin: 10px 20px;
    color: #f56c6c
}

P
pissang 已提交
265 266 267 268 269
iframe {
    border: none;
    overflow: overlay;
}

P
pissang 已提交
270 271
#tests-runs-dialog .el-dialog {
    width: 90%;
P
pissang 已提交
272
    max-width: 1200px;
P
pissang 已提交
273 274
}

275 276

::-webkit-scrollbar {
277 278 279 280 281 282
    height: 8px;
    width: 8px;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    -webkit-border-radius: 2px;
    border-radius: 2px
283 284 285
}

::-webkit-scrollbar-button {
286
    display: none
287 288 289
}

::-webkit-scrollbar-thumb {
290 291 292 293 294 295 296
    width: 8px;
    min-height: 15px;
    background: rgba(50,50,50,0.6) !important;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    -webkit-border-radius: 2px;
    border-radius: 2px
297 298 299
}

::-webkit-scrollbar-thumb:hover {
300 301
    background: rgba(0,0,0,0.5) !important
}