form.less
2.82 KB
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
@import "variables.less";
//提示文字
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color: @xn-placeholder;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
color: @xn-placeholder;
}
input:-ms-input-placeholder,textarea:-ms-input-placeholder {
color: @xn-placeholder;
}
input::-webkit-input-placeholder,textarea::-webkit-input-placeholder {
color: @xn-placeholder;
}
input[type="file"].none {
width: 0;
height: 0;
overflow: hidden;
opacity: 0;
}
input[type="radio"], input[type="checkbox"]{
width: 20px;
height: 20px;
float: left;
margin-right: 5px;
margin-top: 7px;
}
/*必填标识*/
.xn-required-i{
}
.xn-required-i:after{
content: "*";
width: 15px;
line-height: 30px;
height: 30px;
position: relative;
top: 3px;
left: -3px;
color: @xn-star;
font-style: normal;
}
.xn-form input:focus:invalid:focus,.xn-form textarea:focus:invalid:focus,.xn-form select:focus:invalid:focus{border-color:rgba(82,168,236,0.8);outline:0;outline:thin dotted \9; .box-shadow(0,0,6px,#f8b9b7,inset);color:@xn-font-primary}
.xn-form input.error:focus:invalid:focus,.xn-form textarea.error:focus:invalid:focus,.xn-form select.error:focus:invalid:focus{border-color:@xn-minor-red; .box-shadow(0,0,6px,#f8b9b7)}
.xn-form .dropdown-menu{max-height:400px;overflow-y:auto}
.xn-form textarea.error,.xn-form select.error{border-color:@xn-minor-red; .box-shadow(0,0,6px,#f8b9b7)}
.xn-form textarea.ng-invalid.error,.xn-form select.ng-invalid.error{border-color:@xn-minor-red; .box-shadow(0,0,6px,#f8b9b7)}
.xn-form input.error{border-color:@xn-box-error-bd; .box-shadow(0,0,6px,#f8b9b7)}
.xn-form input.ng-invalid.error{
border-color:@xn-box-error-bd;
.box-shadow(0,1px,2px,#f8b9b7)
}
/*打钩样式*/
.xn-label-checkbox{
position: relative;
line-height: 30px;
cursor: pointer;
}
.xn-label-checkbox .xn-checkbox{
width: 20px;
height: 20px;
border: 1px solid #ccc;
display: inline-block;
margin-top: 7px ;
margin-right: 7px;
.border-radius();
float: left;
}
.xn-label-checkbox .icon-right_3{
position: absolute;
left: 5px;
z-index: 1;
font-size: 18px;
height: 20px;
width: 20px;
top: 5px;
line-height: 20px;
color: #40a337;
}
.xn-label-checkbox .xn-checkbox-input{
display: none;
}
.xn-input-line .xn-tips{
float: left;
width:30px;
height:30px;
padding-left:5px;
line-height: 30px;
}
.xn-input-line .xn-tips .icon-wander_1{
margin: 5px;
display: inline-block;
width: 22px;
height: 22px;
.radius();
text-align: center;
font-size: 10px;
line-height: 20px;
color: @xn-theme;
background: @xn-bg-color;
border: 1px solid @xn-theme;
}
.xn-input-line .xn-tips .icon-wander_1:hover{
color: #fff;
background: @xn-theme;
border: 1px solid @xn-theme;
}
.xn-input-line .xn-tips .tooltip-inner{
color: #666666;
border: 1px solid #ccc;
background: @xn-bg-color;
max-width: 120px;
}