summaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/app/paletx/plx-modal/modal.less
blob: c17a7fd13e28333acd11d5dac03a2866e497dbf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
@import "../../assets/components/themes/default/theme.less";

plx-modal-window {
  .modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    outline: 0;
    z-index: 10000;
  }
  .modal-dialog {
    position: relative;
    max-width: 600px;
    margin: 30px auto;
    &.modal-sm {
      max-width: 600px;
    }
    &.modal-lg {
      max-width: 1000px;
    }
  }
  .modal-content {
    position: relative;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    background-color: @component-bg;
    background-clip: padding-box;
    border-radius: @radius;
    box-shadow: 0 5px 15px @shadow-color;
    outline: 0;
    .modal-header {
      border-bottom: 0;
      display: flex;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      -webkit-box-pack: justify;
      -ms-flex-pack: justify;
      justify-content: space-between;
      padding: 15px;
    }
    .modal-body {
      .form-group:last-child, form:last-child {
        margin-bottom: 0;
      }
    }
    .modal-footer {
      display: block;
      border-top: 0;
      margin-top: 0;
      padding: 0 15px 15px 15px;
    }
    .modal-title {
      font-size: @font-size-title-level1;
      margin-bottom: 0;
      line-height: 1.5;
    }
    .modal-btn {
      text-align: center;
      font-size: 0;
    }
  }
  .close {
    color: @fonticon-color;
    font-size: @font-size-title-level2;
    text-shadow: none;
    width: 24px;
    height: 24px;
    background: @scene-textcolor;
    border-radius: 20px;
    padding-bottom: 2px;
    outline: none;
    &:hover {
      color: @fonticon-color;
      background: @fonticon-bg-color-hover;
    }
  }
  .alert-modal {
    &.row {
      margin-left: 100px;
      margin-bottom: 30px;
      text-align: left;
      .tip-img {
        display: inline-block;
        width: 52px;
        height: 52px;
        border-radius: 50px;
        font-size: 45px;
        text-align: center;
        line-height: 1;
        margin-top: -5px;
        margin-right: 15px;
        &::before {
          content: "!";
        }
      }
      .tip-info {
        width: 300px;
        .alert-title {
          font-size: @font-size-title-level2;
          color: @title-text-color;
        }
        .alert-result {
          margin-top: 5px;
          font-size: @font-size;
          color: @unselected-text-color;
        }
      }
      .warning {
        border: 3px solid @warning-color;
        color: @warning-color;
      }
      .error {
        border: 3px solid @error-color;
        color: @error-color;
      }
    }
  }
}