summaryrefslogtreecommitdiffstats
path: root/install/ui/less/forms.less
blob: 8ec40e745514d91f1c15b87253b4b49505d31b2d (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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
input,
select,
textarea {
  font-family: OpenSansRegular, Helvetica, Arial, sans-serif;
}

label {
  font-family: OpenSansSemiBold, Helvetica, Arial, sans-serif;
}

.help-block, 
.help-inline,
input,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
label,
select,
textarea,
.uneditable-input, 
.uneditable-textarea {
  font-size: 11px;
}

select,
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input,
.uneditable-textarea {
  border-color: #bababa;
  -moz-border-radius: 1px;
  -webkit-border-radius: 1px;
  border-radius: 1px;
  color: #333;
  padding-bottom: 2px;
  padding-top: 2px;
  &:focus, &:hover {
    border-color: #62afdb;
  }
}

select, input[type="file"] {
  height: 26px;
  line-height: 26px;
}

input[disabled],
select[disabled],
textarea[disabled],
input[readonly],
select[readonly],
textarea[readonly],
.uneditable-input, 
.uneditable-textarea {
  background-color: #f8f8f8;
  border-color: #d4d4d4;
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
  color: #969696;
  &:focus, &:hover {
    border-color: #d4d4d4;
  }
}

.controls>.radio:first-child, .controls>.checkbox:first-child {
  padding-top: 2px;
}

.control-group.error input,
.control-group.error select,
.control-group.error textarea,
input:focus:invalid:focus,
textarea:focus:invalid:focus,
select:focus:invalid:focus {
  border-color: #ba1212 !important;
  color: inherit;
}

.form-horizontal .control-label {
  padding-top: 3px;
  margin-bottom: 3px;
}

.input-append .add-on, .input-prepend .add-on {
  font-size: 11px;
  padding-bottom: 2px;
  padding-top: 2px;
}

.input-append .add-on,
.input-prepend .add-on,
.input-append .btn,
.input-prepend .btn,
.input-append .btn-group>.dropdown-toggle,
.input-prepend .btn-group>.dropdown-toggle {
  box-shadow: none;
}

:-moz-placeholder { /* Firefox 18- */
  color: #a1a1a1;
  font-style: italic;
}
::-moz-placeholder { /* Firefox 19+ */
  color: #a1a1a1;
  font-style: italic;
}
::-ms-input-placeholder {
  color: #a1a1a1;
  font-style: italic;
}
::-webkit-input-placeholder {
  color: #a1a1a1;
  font-style: italic;
}