dag.scss 11.0 KB
Newer Older
K
khadgarmage 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/*
 * 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.
 */
L
ligang 已提交
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76

.dag-model {
  background: url("../img/dag_bg.png");
  height: calc(100vh - 100px);
  ::selection {
    background:transparent;
  }
  ::-moz-selection {
    background:transparent;
  }
  ::-webkit-selection {
    background:transparent;
  }
  .jsplumb-connector {
    z-index: 1;
  }
  .endpoint-tasks {
    margin-top:22px;
  }
  .draggable {
    > span {
      text-align: center;
      display: block;
      margin-top: -4px;
      padding: 0 4px;
      width: 200px;
      margin-left: -81px;
      position: absolute;
      left: 0;
      bottom: -12px;
    }
    .fa {
      display: inline-block;
      position: absolute;
      right: -8px;
      top: -8px;
      z-index: 2;
      cursor: pointer;
    }
    .icos {
      display: inline-block;
      cursor: pointer;
    }
    &.active-tasks {
      span {
        color: #0296DF;
      }
    }
  }
  .icos {
    width: 32px;
    height: 32px;
    margin: 2px;
    border-radius: 3px;
    position: relative;
    z-index: 9;
  }
  .icos-SHELL {
    background: url("../img/toolbar_SHELL.png") no-repeat 50% 50%;
  }
X
xsbai 已提交
77 78 79
  .icos-WATERDROP {
    background: url("../img/toolbar_WATERDROP.png") no-repeat 50% 50%;
  }
L
ligang 已提交
80 81 82 83 84 85 86 87 88 89 90 91
  .icos-SUB_PROCESS {
    background: url("../img/toolbar_SUB_PROCESS.png") no-repeat 50% 50%;
  }
  .icos-PROCEDURE {
    background: url("../img/toolbar_PROCEDURE.png") no-repeat 50% 50%;
  }
  .icos-SQL {
    background: url("../img/toolbar_SQL.png") no-repeat 50% 50%;
  }
  .icos-SPARK {
    background: url("../img/toolbar_SPARK.png") no-repeat 50% 50%;
  }
92
  .icos-FLINK {
B
BoYiZhang 已提交
93
    background: url("../img/toolbar_FLINK.png") no-repeat 50% 50%;
94
  }
L
ligang 已提交
95 96 97 98 99 100 101 102 103
  .icos-MR {
    background: url("../img/toolbar_MR.png") no-repeat 50% 50%;
  }
  .icos-PYTHON {
    background: url("../img/toolbar_PYTHON.png") no-repeat 50% 50%;
  }
  .icos-DEPENDENT {
    background: url("../img/toolbar_DEPENDENT.png") no-repeat 50% 50%;
  }
104
  .icos-HTTP {
B
BoYiZhang 已提交
105
    background: url("../img/toolbar_HTTP.png") no-repeat 50% 50%;
106
  }
107 108 109
  .icos-DATAX {
    background: url("../img/toolbar_DATAX.png") no-repeat 50% 50%;
  }
_和's avatar
_和 已提交
110 111 112
  .icos-SQOOP {
    background: url("../img/toolbar_SQOOP.png") no-repeat 50% 50%;
  }
113
  .icos-CONDITIONS {
B
BoYiZhang 已提交
114
    background: url("../img/toolbar_CONDITIONS.png") no-repeat 50% 50%;
115
  }
L
ligang 已提交
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
  .toolbar {
    width: 60px;
    height: 100%;
    background: #F2F3F7;
    float: left;
    border-radius: 0 0 0 3px;
    .title {
      height: 40px;
      line-height: 40px;
      background: #40434C;
      text-align: center;
      border-radius: 3px 0 0 0;
      span {
        font-size: 14px;
        color: #fff;
        font-weight: bold;
      }
    }
    .toolbar-btn {
      overflow: hidden;
B
break60 已提交
136
      padding: 8px 11px 0 11px;
L
ligang 已提交
137 138 139 140
      .bar-box {
        width: 36px;
        height: 36px;
        float: left;
B
break60 已提交
141
        margin-bottom: 3px;
L
ligang 已提交
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
        border-radius: 3px;
        .disabled {
          .icos {
            opacity: .6;
            -webkit-filter: grayscale(100%);
            -moz-filter: grayscale(100%);
            -ms-filter: grayscale(100%);
            -o-filter: grayscale(100%);
            filter: grayscale(100%);
            filter: gray;
          }
        }
        &:nth-child(odd) {
          margin-right: 6px;
        }
        &.active {
          background: #e1e2e3;
        }
      }
    }
  }
  .dag-contect {
    float: left;
    width: calc(100% - 60px);
    height: 100%;
    .dag-toolbar {
      height: 40px;
      background: #F2F3F7;
      position: relative;
      border-radius: 0 3px 0 0;
172 173
      .ans-btn-text {
        color: #337ab7;
174 175 176
        .ans-icon {
          font-size: 16px;
        }
177
      }
L
ligang 已提交
178 179 180
      .assist-btn {
        position: absolute;
        left: 10px;
G
gongzijian 已提交
181
        top: 7px;
L
ligang 已提交
182 183 184 185
        >.name {
          padding-left: 6px;
          vertical-align: middle;
        }
G
gongzijian 已提交
186 187 188
        >.copy-name {
          cursor: pointer;
          padding-left: 4px;
G
gongzijian 已提交
189 190
          position: relative;
          top: -2px;
G
gongzijian 已提交
191 192 193 194 195 196 197 198
          &:hover {
            i {
              color: #47c3ff;
            }
          }
          i {
            color: #333;
            font-size: 18px;
G
gongzijian 已提交
199
            vertical-align: middle;
G
gongzijian 已提交
200 201
          }
        }
L
ligang 已提交
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
      }
      .save-btn {
        position: absolute;
        right: 8px;
        top: 6px;
        .operation {
          overflow: hidden;
          display: inline-block;
          a {
            float: left;
            width: 28px;
            height: 28px;
            text-align: center;
            line-height: 28px;
            margin-left: 6px;
            border-radius: 3px;
            vertical-align: middle;
            i {
              color: #333;
            }
            &.active {
223
              // background: #e1e2e3;
L
ligang 已提交
224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250
              i {
                color: #2d8cf0;
              }
            }
            &.disable {
              i {
                color: #bbb;
              }
            }
          }
        }
      }
    }
    .dag-container {
      height: calc(100% - 40px);
      overflow-x: auto;
      &::-webkit-scrollbar{
        width: 9px;
      }
    }
  }
  .tools-model {
    height: 60px;
    background: #F4F5F4;
    border-radius: 3px 3px 0px 0px;
  }
}
251 252 253
#screen {
  margin-right: 5px;
}
L
ligang 已提交
254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278
.v-modal-custom-log {
  z-index: 101;
}

svg path:hover {
  cursor: pointer;
}

#chart-container .ui-selecting {
  span {
    color: #0296DF;
  }
}
#chart-container .ui-selected {
  span {
    color: #0296DF;
  }
}

.contextmenu {
  position: fixed;
  width: 90px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 2px 4px 1px rgba(0, 0, 0, 0.1);
279
  padding: 4px 4px;
L
ligang 已提交
280
  visibility:hidden;
281
  z-index: 10000;
L
ligang 已提交
282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337
  a {
    height: 30px;
    line-height: 28px;
    display: block;
    i {
      font-size: 16px;
      vertical-align: middle;
      margin-left: 10px;
    }
    span {
      vertical-align: middle;
      font-size: 12px;
      color: #666;
      padding-left: 2px;
    }
    &:hover {
      background: #f6faff;
    }
    &#startRunning {
      i {
        color: #35cd75;
      }
    }
    &#editNodes {
      i {
        color: #0097e0;
      }
    }
    &#removeNodes {
      i {
        color: #f04d4e;
      }
    }
    &#copyNodes {
      i {
        color: #FABC05;
      }
    }
    &.disbled {
      i,span {
        color: #aaa !important;
      }
    }
  }
}

.jtk-demo {
  //min-width: calc(100% - 220px);
  width: 8000px;
  height: 5000px;
  svg:not(:root){
    z-index: 11;
  }
}

.jtk-demo-canvas {
338
  position: relative;
L
ligang 已提交
339
  height: 100%;
340
  display: flex;
L
ligang 已提交
341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443
}

.jtk-bootstrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.jtk-bootstrap .jtk-page-container {
  display: flex;
  width: 100vw;
  justify-content: center;
  flex: 1;
}

.jtk-bootstrap .jtk-container {
  width: 60%;
  max-width: 800px;
}

.jtk-bootstrap-wide .jtk-container {
  width: 80%;
  max-width: 1187px;
}

.jtk-demo-main {
  position: relative;
  margin-top: 98px;
}

.jtk-demo-main .description {
  font-size: 13px;
  margin-top: 25px;
  padding: 13px;
  margin-bottom: 22px;
  background-color: #f4f5ef;
}

.jtk-demo-main .description li {
  list-style-type: disc !important;
}

.canvas-wide {
  padding-top: 10px;
  margin-left: 0;
  -ms-transition: all .1s ease-out;
  -moz-transition: all .1s ease-out;
  -webkit-transition: all .1s ease-out;
  -o-transition: all .1s ease-out;
}

.jtk-demo-dataset {
  text-align: left;
  max-height: 600px;
  overflow: auto;
}

.demo-title {
  float: left;
  font-size: 18px;
}

.controls {
  top: 25px;
  color: #FFF;
  margin-right: 10px;
  position: absolute;
  left: 25px;
  z-index: 1;
}

.controls i {
  background-color: #3E7E9C;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 0;
  padding: 4px;
}
.w {
  position: absolute;
  z-index: 4;
  font-size: 11px;
  -webkit-transition: background-color 0.25s ease-in;
  -moz-transition: background-color 0.25s ease-in;
  transition: background-color 0.25s ease-in;
  border: 7px solid transparent;
  border-bottom: 30px solid transparent;
  .icos {
    width: 50px;
    height: 50px;
    box-shadow: 2px 2px 19px #e0e0e0;
    -o-box-shadow: 2px 2px 19px #e0e0e0;
    -webkit-box-shadow: 2px 2px 19px #e0e0e0;
    -moz-box-shadow: 2px 2px 19px #e0e0e0;
    -moz-border-radius: 8px;
    border-radius: 8px;
    opacity: 0.8;
    cursor: move;
    background-color: #fff;
  }
  .name-p {
    position: absolute;
    left: 50%;
G
i18n  
gongzijian 已提交
444
    top: 58px;
L
ligang 已提交
445 446 447
    width: 200px;
    text-align: center;
    margin-left: -100px;
G
i18n  
gongzijian 已提交
448
    word-break:break-all;
L
ligang 已提交
449
  }
G
gongzijian 已提交
450 451 452 453 454 455 456 457 458 459 460
  .ban-p {
    position: absolute;
    left: -4px;
    top: 36px;
    z-index: 21;
    i {
      font-size: 18px;
      color: #ff0000;
      cursor: pointer;
    }
  }
L
ligang 已提交
461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478
  .state-p {
    width: 20px;
    height: 20px;
    position: absolute;
    top: -20px;
    left: 18px;
    text-align: center;
    cursor: pointer;
    b {
      font-weight: normal;
    }
  }
}

.aLabel {
  -webkit-transition: background-color 0.25s ease-in;
  -moz-transition: background-color 0.25s ease-in;
  transition: background-color 0.25s ease-in;
479 480 481 482 483 484
  background-color: white;
  opacity: 0.8;
  padding: 0.3em;
  border-radius: 0.5em;
  border: 1px solid #346789;
  cursor: pointer;
L
ligang 已提交
485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565
}

.aLabel.jtk-hover,
.jtk-source-hover,
.jtk-target-hover {
  .icos {
    background-color: #333;
    color: #333;
    -ms-transition: all 0.6s ease-out;
    -moz-transition: all 0.6s ease-out;
    -webkit-transition: all 0.6s ease-out;
    -o-transition: all 0.6s ease-out;
  }
}

.jtk-tasks-active {
  .icos {
    background-color: #2db7f5;
    color: #0097e0;
    -ms-transition: all 0.6s ease-out;
    -moz-transition: all 0.6s ease-out;
    -webkit-transition: all 0.6s ease-out;
    -o-transition: all 0.6s ease-out;
  }
}


.jtk-ep {
  .ep {
    display: block;
  }
}

.ep {
  position: absolute;
  top: -4%;
  right: -1px;
  width: 1em;
  height: 1em;
  z-index: 12;
  background-color: orange;
  cursor: pointer;
  box-shadow: 0 0 2px black;
  -webkit-transition: -webkit-box-shadow 0.25s ease-in;
  -moz-transition: -moz-box-shadow 0.25s ease-in;
  transition: box-shadow 0.25s ease-in;
  border-radius:100%;
  display: none;
}

.ep:hover {
  box-shadow: 0 0 6px black;
}

.statemachine-demo .jtk-endpoint {
  z-index: 3;
}

#canvas {
  .dot-style {
    opacity: 0;
  }
}

.from-mirror {
  width: 100%;
  position: relative;
  z-index: 0;
  .CodeMirror {
    height:auto;
    min-height: 72px;
  }

  .CodeMirror-scroll {
    height:auto;
    min-height: 72px;
    overflow-y: hidden;
    overflow-x: auto;
  }
}

566 567 568
.ans-modal-box.ans-drawer.ans-drawer-right.dagMask.mask {
    width: 628px;
    left: auto;
L
ligang 已提交
569 570 571
}