600898a3fc5b88798a2f34fff1f424d6cb4a323b
[sdc/sdc-workflow-designer.git] /
1 @import "../default/theme.less";
2 @import "./plx-button.less";
3 @import "./plx-radio.less";
4 @import "./plx-checkbox.less";
5 @import "./plx-input.less";
6
7 .plx-form {
8     font-family: @font-family;
9     font-size: @font-size;
10     background: @component-bg;
11     color: @text-color;
12     .ng-invalid:not(form).ng-invalid:not(fieldset).ng-invalid:not(plx-select) {
13         border: 1px solid @error-color; /* red */
14     }
15     .ng-untouched:not(form).ng-untouched:not(fieldset).ng-untouched:not(plx-select) {
16         border: 1px solid @border-color-base ;
17     }
18     // 标签和通用组件样式
19     label {
20         font-size: @font-size;
21         text-align: right;
22         color: @form-label;
23         background: @component-bg;
24         .label-span {
25             color: @text-color;
26         }
27     }
28
29     //分组的样式
30     .forms-group(@cursor, @bgcolor) {
31         margin-bottom: 10px;  
32         padding-left: 15px;
33         color: @title-text-color;
34         font-size: @font-size-title-group;
35         height: @input-height;
36         line-height: @input-height;
37         cursor: @cursor;
38         &:hover {
39             background: @bgcolor;
40         }
41         span {
42             margin-left: 24px;
43             border-left: 3px solid @primary-color;
44             padding-left: 5px;
45         }
46         // 分组的展开和隐藏
47         .group-icon {
48             float:left;
49             font-size: @font-size-title-group;
50             color: @primary-color !important;
51             line-height:@input-height; 
52             margin-right:8px;    
53             transform: scale(0.7,0.7);
54             font-weight: bold;
55         }
56     }
57         
58         .text-autocut {
59                 white-space: nowrap;
60                 text-overflow: ellipsis;
61                 overflow: hidden;
62                 display: block;
63         }
64
65     .forms-group-pointer {
66         .forms-group(pointer, @hover-bg-color);
67     }
68
69     .forms-group-default {
70         .forms-group(default, @component-bg);
71         line-height: @input-height / 2;
72     }
73     // 紧凑型表单input高度
74     .input-sm {
75         height: @input-height-sm !important;
76     }
77     // 必选的*号颜色
78     .px-red {
79         color: @error-color;
80     }
81
82     input:focus {
83         border: 1px solid @primary-color !important;
84     }
85     // 错误信息
86     .error-div {
87         height: @font-size;
88         margin-top: -4px;
89         margin-bottom: 5px;
90         .error-msg {
91             color: @error-color;
92         }
93     }
94     // 输入提示信息的样式
95     .help-div {
96         color: @disabled-text-color;
97         height: @font-size;
98         margin-top: -5px;
99         margin-bottom: 6px;
100     }
101     // 标题样式
102     .forms-header {
103         margin-left: 15px;
104         margin-bottom: 25px;
105         padding-bottom: 5px;
106         border-bottom:1px solid @border-color-split;
107         span {
108         font-size: @font-size-title-level2;
109         color: @title-text-color;
110         }
111     }
112
113     .plx-input{
114                 width: 100%;
115                 color: @text-color;
116                 background: @component-bg;
117                 text-align: left;
118     }
119     //radio、checkbox、tail的样式
120     .field-radio {
121         padding-right:10px;
122         line-height:@input-height - 5px;
123         &.field-radio-tight {
124         line-height:@input-height-sm - 5px;
125         }
126     }
127     .field-tail {
128         padding-right:10px;
129         line-height:@input-height;
130         &.field-tail-tight {
131         line-height:@input-height-sm;
132         }
133         .tip {
134             color: @fonticon-color;
135             font-size: 16px;
136         }
137     }
138     .field-info {
139         font-size: @font-size;
140         color: @primary-color;
141         margin-left: -15px;
142         &.field-info-group {
143         margin-left: 15px;
144         }
145     }
146     //field的样式
147     .form-field:not(select-dropdown) {
148         color: @text-color;
149         font-size: @font-size;
150         line-height: @input-height;
151         &.form-field-tight {
152         line-height:@input-height-sm;
153         }
154         &.form-filed-hint {
155             margin-bottom: 15px; 
156         }
157     }
158     .field-div {
159         margin-bottom: 15px;
160         padding-left: 0;
161         &.field-div-tight {
162             margin-bottom: 10px;
163         }
164         // 输入值改变后的样式变化
165         &.inputchanged > input{
166             font-weight:bold;
167         }
168         &.inputchanged > select{
169             font-weight:bold;
170         }
171     }
172
173     .button-div {
174         padding: 15px 0 0 0;
175         color: @text-color;
176         font-size: @font-size-title-group;
177         text-align: left;
178         button {
179             margin-right: 10px;
180         }
181     }
182
183     .button-r-submit {
184         float: right;
185         margin-right: -20px !important;
186     }
187
188     .button-r-cancel {
189         float: right;
190     }
191
192     .content {
193         overflow-y: auto;
194         overflow-x: hidden;
195     }
196
197     //滚动条
198     .plx-scrollbar::-webkit-scrollbar {
199         width: 4px;
200         height: 6px;
201     }
202     .plx-scrollbar::-webkit-scrollbar-thumb {
203         background-color: rgba(0,0,0,.2);
204         border-radius: 2em;
205         min-height: 50px;
206         max-height: 100px;
207     }
208     .plx-scrollbar::-webkit-scrollbar-corner{
209         background-color: transparent;
210     }
211     // placeholder
212     input:-ms-input-placeholder {
213         color: @unselected-text-color !important;
214     }
215     input::-webkit-input-placeholder {
216         color: @unselected-text-color !important;
217     }
218         plx-info .icon {
219                 margin-left: -10px;
220                 line-height: 28px !important;
221         } 
222
223 }
224 .para-content {
225         .icon-active {
226                 fill:@primary-color;
227         }
228         .icon-disactive {
229                 fill: @disabled-text-color;
230                 cursor: default;
231         }
232 }
233