forms-angular 0.12.0-beta.306 → 0.12.0-beta.307

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,383 @@
1
+ .list-item {
2
+ .well;
3
+ }
4
+
5
+ .list-header, .edit-header {
6
+ .fixed-header;
7
+ }
8
+
9
+ .list-body {
10
+ padding-top: 100px;
11
+ }
12
+
13
+ .edit-header {
14
+ padding-top: 10px;
15
+ }
16
+
17
+ .edit-body {
18
+ padding-top: 100px;
19
+ }
20
+
21
+ .page-header {
22
+ padding-left: 20px;
23
+ z-index: 102;
24
+ }
25
+
26
+ .report-header {
27
+ display: flex;
28
+ flex-direction: row;
29
+ flex-wrap: wrap;
30
+ .header-lhs {
31
+ padding-left: 30px;
32
+ padding-right: 30px;
33
+ }
34
+ .header-rhs {
35
+ flex-grow: 1;
36
+ }
37
+ }
38
+
39
+ .header-rhs {
40
+ min-width: 226px;
41
+ min-height: 40px;
42
+ padding-right: 20px;
43
+ padding-bottom: 5px;
44
+ display: block;
45
+ }
46
+
47
+ .list-header .header-rhs {
48
+ margin: 15px 0;
49
+ }
50
+
51
+ // "Mixins"
52
+ .fixed-header {
53
+ position: fixed;
54
+ width: 100%;
55
+ margin-top: 11px;
56
+ z-index: 101;
57
+ }
58
+
59
+ // Modifications to ngGrid style
60
+
61
+ .gridStyle {
62
+ border: 1px solid #d4d4d4;
63
+ margin: auto;
64
+ .ngTopPanel {
65
+ background-color: #ffffff;
66
+ }
67
+ .ngHeaderCell {
68
+ background-color: #e4e4e4;
69
+ }
70
+ .fng-right {
71
+ text-align: right;
72
+ }
73
+ .fng-left {
74
+ text-align: left;
75
+ }
76
+ .fng-centre, .fng-center {
77
+ text-align: center;
78
+ }
79
+ .ngTotalCell {
80
+ font-weight: bold;
81
+ }
82
+ }
83
+
84
+ button.form-btn {
85
+ width: 8em;
86
+ height: 2em;
87
+ }
88
+
89
+ .form-btn-grp {
90
+ max-width: 17em;
91
+ }
92
+
93
+
94
+ form {
95
+ &.form-horizontal.compact {
96
+ input + .help-block, select + .help-block, textarea + .help-block, .uneditable-input + .help-block,
97
+ .input-prepend + .help-block, .input-append + .help-block {
98
+ margin-top: 0;
99
+ margin-bottom: 2px;
100
+ }
101
+ hr {
102
+ margin: 8px 0;
103
+ }
104
+ }
105
+
106
+ .schema-head {
107
+ margin-top: 8px;
108
+ font-weight: bold;
109
+ }
110
+ ol.sub-doc {
111
+ padding: 0;
112
+ margin: 0;
113
+ position: relative;
114
+ li {
115
+ width: available;
116
+ display: block;
117
+ margin: 2px 0;
118
+ padding-top: 3px;
119
+ }
120
+ }
121
+ .sub-doc-btns {
122
+ position: absolute;
123
+ right: 8px;
124
+ z-index: 1;
125
+ }
126
+ .schema-foot {
127
+ margin-top: 0;
128
+ margin-bottom: 5px;
129
+ }
130
+
131
+ input.ng-invalid:not(.ng-invalid-required):focus:read-write {
132
+ border: solid 1px red;
133
+ }
134
+
135
+ input[type="checkbox"].ng-invalid-required:before:read-write, span:first-child input[type="radio"].ng-invalid-required:before:read-write {
136
+ content:"*";
137
+ font-weight: bold;
138
+ color: red;
139
+ margin-left: -8px
140
+ }
141
+
142
+ input.ng-invalid-required, select.fng-invalid-required:read-write, select.ng-invalid-required, textarea.ng-invalid-required:read-write {
143
+ background-color: rgba(255, 0, 0, 0.10);
144
+ }
145
+
146
+ option {
147
+ background-color: white;
148
+ }
149
+ .fng-select2 {
150
+ width: 220px;
151
+ }
152
+ .form-inline > .sub-doc {
153
+ padding: 0 5px;
154
+ border: none;
155
+ box-shadow: none;
156
+ }
157
+ }
158
+
159
+ a.fng-link, span.fng-link {
160
+ line-height: 30px;
161
+ }
162
+
163
+ .form-inline a.fng-link, .form-inline span.fng-link {
164
+ padding: 0 15px;
165
+ }
166
+
167
+ // Inline radio buttons need a bigger top margin
168
+ span input[type="radio"] {
169
+ margin : 9px 0 0;
170
+ }
171
+
172
+ .global-search {
173
+ position : relative;
174
+ float: right;
175
+ }
176
+
177
+ .results-container {
178
+ width: 6000px;
179
+ z-index: 103;
180
+ position: absolute;
181
+ top: 41px;
182
+ right: 0;
183
+ }
184
+
185
+ .search-results {
186
+ float: right;
187
+ border: 1px solid gray;
188
+ -webkit-box-shadow: 10px 10px 10px #888;
189
+ box-shadow: 10px 10px 10px #888;
190
+ background: white;
191
+ padding: 5px;
192
+ -webkit-border-radius: 15px;
193
+ -moz-border-radius: 15px;
194
+ border-radius: 15px;
195
+ .search-result.focus {
196
+ color: white;
197
+ }
198
+ }
199
+
200
+ .dropdown-menu > .disabled > li,
201
+ .dropdown-menu > .disabled > a,
202
+ .dropdown-menu > .disabled > a:hover,
203
+ .dropdown-menu > .disabled > a:focus {
204
+ cursor: not-allowed;
205
+ }
206
+
207
+ #why-disabled {
208
+ display: none
209
+ }
210
+
211
+ button#saveButton[disabled]:hover + #why-disabled.showwhy {
212
+ display: block;
213
+ border: #ddd solid 2px;
214
+ font-size: small;
215
+ z-index: 20;
216
+ position: absolute;
217
+ background-color: white;
218
+ right: 0;
219
+ border-radius: 6px;
220
+ padding: 5px;
221
+ box-shadow: 4px 4px 4px #999;
222
+ color: red;
223
+ font-weight: normal;
224
+ top: 22px;
225
+ }
226
+
227
+ #display-error {
228
+ position: fixed;
229
+ top: 60px;
230
+ width: 100%;
231
+ z-index: 1090;
232
+ }
233
+
234
+ #display-error.ng-hide {
235
+ opacity: 0;
236
+ }
237
+ #display-error.ng-hide-add, // animate the error display
238
+ #display-error.ng-hide-remove {
239
+ transition: all linear 0.5s;
240
+ }
241
+
242
+ input[type="checkbox"].ng-invalid::after {
243
+ content: "Invalid";
244
+ color: rgba(255, 0, 0, 0.6);
245
+ padding-left: 1em;
246
+ }
247
+
248
+ /* Delayed Absolute Center Spinner */
249
+ /* Absolute Center Spinner */
250
+ .loading, .spinner {
251
+ position: fixed;
252
+ z-index: 999;
253
+ height: 2em;
254
+ width: 2em;
255
+ overflow: visible;
256
+ margin: auto;
257
+ top: 0;
258
+ left: 0;
259
+ bottom: 0;
260
+ right: 0;
261
+ }
262
+
263
+ .loading {
264
+ -webkit-animation: lds-ring-fadein 3.4s;
265
+ animation: lds-ring-fadein 3.4s;
266
+ }
267
+
268
+ .spinner {
269
+ -webkit-animation: lds-ring-fadein 0.4s;
270
+ animation: lds-ring-fadein 0.4s;
271
+ }
272
+
273
+ /* Transparent Overlay */
274
+ .loading:before, .spinner:before {
275
+ content: '';
276
+ display: block;
277
+ position: fixed;
278
+ top: 0;
279
+ left: 0;
280
+ width: 100%;
281
+ height: 100%;
282
+ background-color: rgba(0,0,0,0.3);
283
+ }
284
+
285
+ /* :not(:required) hides these rules from IE9 and below */
286
+ .loading:not(:required), .spinner:not(:required) {
287
+ /* hide "loading..." text */
288
+ font: 0/0 a;
289
+ color: transparent;
290
+ text-shadow: none;
291
+ background-color: transparent;
292
+ border: 0;
293
+ }
294
+
295
+ .loading:not(:required):after, .spinner:not(:required):after {
296
+ content: '';
297
+ display: block;
298
+ font-size: 10px;
299
+ width: 1em;
300
+ height: 1em;
301
+ margin-top: -0.5em;
302
+ -webkit-animation: spinner 1500ms infinite linear;
303
+ -moz-animation: spinner 1500ms infinite linear;
304
+ -ms-animation: spinner 1500ms infinite linear;
305
+ -o-animation: spinner 1500ms infinite linear;
306
+ animation: spinner 1500ms infinite linear;
307
+ border-radius: 0.5em;
308
+ -webkit-box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.5) -1.5em 0 0 0, rgba(0, 0, 0, 0.5) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
309
+ box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) -1.5em 0 0 0, rgba(0, 0, 0, 0.75) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
310
+ }
311
+
312
+ /* Animation */
313
+
314
+ @-webkit-keyframes spinner {
315
+ 0% {
316
+ -webkit-transform: rotate(0deg);
317
+ -moz-transform: rotate(0deg);
318
+ -ms-transform: rotate(0deg);
319
+ -o-transform: rotate(0deg);
320
+ transform: rotate(0deg);
321
+ }
322
+ 100% {
323
+ -webkit-transform: rotate(360deg);
324
+ -moz-transform: rotate(360deg);
325
+ -ms-transform: rotate(360deg);
326
+ -o-transform: rotate(360deg);
327
+ transform: rotate(360deg);
328
+ }
329
+ }
330
+ @-moz-keyframes spinner {
331
+ 0% {
332
+ -webkit-transform: rotate(0deg);
333
+ -moz-transform: rotate(0deg);
334
+ -ms-transform: rotate(0deg);
335
+ -o-transform: rotate(0deg);
336
+ transform: rotate(0deg);
337
+ }
338
+ 100% {
339
+ -webkit-transform: rotate(360deg);
340
+ -moz-transform: rotate(360deg);
341
+ -ms-transform: rotate(360deg);
342
+ -o-transform: rotate(360deg);
343
+ transform: rotate(360deg);
344
+ }
345
+ }
346
+ @-o-keyframes spinner {
347
+ 0% {
348
+ -webkit-transform: rotate(0deg);
349
+ -moz-transform: rotate(0deg);
350
+ -ms-transform: rotate(0deg);
351
+ -o-transform: rotate(0deg);
352
+ transform: rotate(0deg);
353
+ }
354
+ 100% {
355
+ -webkit-transform: rotate(360deg);
356
+ -moz-transform: rotate(360deg);
357
+ -ms-transform: rotate(360deg);
358
+ -o-transform: rotate(360deg);
359
+ transform: rotate(360deg);
360
+ }
361
+ }
362
+ @keyframes spinner {
363
+ 0% {
364
+ -webkit-transform: rotate(0deg);
365
+ -moz-transform: rotate(0deg);
366
+ -ms-transform: rotate(0deg);
367
+ -o-transform: rotate(0deg);
368
+ transform: rotate(0deg);
369
+ }
370
+ 100% {
371
+ -webkit-transform: rotate(360deg);
372
+ -moz-transform: rotate(360deg);
373
+ -ms-transform: rotate(360deg);
374
+ -o-transform: rotate(360deg);
375
+ transform: rotate(360deg);
376
+ }
377
+ }
378
+
379
+ @keyframes lds-ring-fadein{
380
+ 0% { opacity:0; }
381
+ 50% { opacity:0.1; }
382
+ 100% { opacity:1; }
383
+ }
@@ -0,0 +1,93 @@
1
+ @iconSpritePath: "../img/glyphicons-halflings.png";
2
+ @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
3
+
4
+ .list-item {
5
+ .well-small;
6
+ }
7
+
8
+ .page-header {
9
+ font-family: @headingsFontFamily;
10
+ font-weight: @headingsFontWeight;
11
+ color: @headingsColor;
12
+ font-size: @fontSizeLarge;
13
+ min-height: @navbarHeight;
14
+ }
15
+
16
+ .fixed-header {
17
+ background-color: @bodyBackground;
18
+ }
19
+
20
+ @media (max-width: @navbarCollapseWidth) {
21
+
22
+ // UNFIX THE TOPBAR
23
+ // ----------------
24
+ // // Remove any padding from the page body
25
+ .page-body {
26
+ padding-top: 0;
27
+ }
28
+ // Unfix the navbars
29
+ .page-header {
30
+ position: static;
31
+ }
32
+
33
+ .global-search {
34
+ padding-right : 1em;
35
+ input {
36
+ width: 12em;
37
+ }
38
+ }
39
+ }
40
+
41
+ form, ngform {
42
+ &.form-horizontal.compact {
43
+ .control-group {
44
+ margin-bottom: 2px;
45
+ }
46
+ }
47
+
48
+ .schema-head {
49
+ padding: 0 0 0 180px;
50
+ border-top: 1px solid darken(@wellBackground, 7%);
51
+ border-bottom: 1px solid darken(@wellBackground, 7%);
52
+ }
53
+ .schema-foot {
54
+ padding: 0 0 0 180px;
55
+ }
56
+
57
+ ol.sub-doc li {
58
+ border-bottom: 1px solid darken(@wellBackground, 7%);
59
+ }
60
+
61
+ .form-inline > .sub-doc {
62
+ background-color: @bodyBackground;
63
+ }
64
+ }
65
+
66
+ .search-results {
67
+ .search-result {
68
+ color: @linkColor;
69
+ }
70
+ .search-result.focus {
71
+ background-color: @linkColorHover;
72
+ }
73
+ }
74
+
75
+ // fng-jq-upload overrides for bs2, to make it look the same as bs3
76
+ // TODO: Move these to a BS2 less file in fng-jq-upload and do whatever it takes to make it come out in the appropriate CSS files
77
+ .fileupload-form {
78
+ position: relative;
79
+ top: -30px;
80
+ margin-bottom: -30px;
81
+ }
82
+
83
+ .fileupload-buttonbar {
84
+ margin-left: 0;
85
+ }
86
+
87
+ @media (max-width: 767px) {
88
+ form {
89
+ .schema-head, .schema-foot {
90
+ padding: 5px 15px;
91
+ }
92
+ }
93
+ }
@@ -0,0 +1,163 @@
1
+ // Default styling for the forms-angular classes, to work with navbar-fixed
2
+ .list-item {
3
+ .well-sm;
4
+ min-height: 40px;
5
+ }
6
+
7
+ button.form-btn {
8
+ font-size: 60%;
9
+ padding-top: 0.25em;
10
+ }
11
+
12
+ .form-horizontal {
13
+ input.input-sm, textarea.input-sm {
14
+ font-size: 14px;
15
+ padding: 2px 6px;
16
+ }
17
+ select.input-sm {
18
+ font-size: 14px;
19
+ padding-left: 5px;
20
+ }
21
+ .checkbox {
22
+ float: left;
23
+ padding: 5px 10px 0 6px;
24
+ }
25
+ .control-label {
26
+ padding-top: 6px;
27
+ }
28
+ .bs3-input {
29
+ padding-left: 0;
30
+ }
31
+ .help-block {
32
+ clear: left;
33
+ bottom-margin: 4px;
34
+ }
35
+ }
36
+
37
+ // Try and get angular-elastic to work properly (or as near as is really necessary for now)
38
+ // May be worth trying to understand why it works fine in BS2
39
+ textarea[msd-elastic] {
40
+ min-height: 25px;
41
+ }
42
+
43
+ .fileupload-buttonbar .btn {
44
+ padding: 5px 8px;
45
+ }
46
+
47
+ .page-header {
48
+ font-family: @headings-font-family;
49
+ font-weight: @headings-font-weight;
50
+ color: @headings-color;
51
+ font-size: @font-size-large;
52
+ border-bottom: 2px solid @headings-color;
53
+ min-height: @navbar-height;
54
+ }
55
+
56
+ .fixed-header {
57
+ background-color: @body-bg;
58
+ }
59
+
60
+ @media (max-width: @grid-float-breakpoint) {
61
+
62
+ // UNFIX THE TOPBAR
63
+ // ----------------
64
+ // // Remove any padding from the page body
65
+ .page-body {
66
+ padding-top: 0;
67
+ }
68
+
69
+ // Unfix the navbars
70
+ .page-header {
71
+ position: static;
72
+ }
73
+
74
+ .global-search {
75
+ padding-right: 7px;
76
+ }
77
+ }
78
+
79
+ form, ng-form {
80
+ &.form-horizontal .form-group {
81
+ margin-left: 0;
82
+ margin-right: 0;
83
+ }
84
+ &.form-horizontal.compact {
85
+ .form-group {
86
+ margin-bottom: 2px;
87
+ }
88
+ }
89
+
90
+ ol.sub-doc li {
91
+ border-bottom: 1px solid darken(@well-bg, 7%);
92
+ }
93
+
94
+ .schema-head, .schema-foot {
95
+ border-bottom: 1px solid darken(@well-bg, 7%);
96
+ padding-left: 23px;
97
+ }
98
+
99
+ .schema-head {
100
+ border-top: 1px solid darken(@well-bg, 7%);
101
+ }
102
+
103
+ // .radio input[type="radio"], .radio-inline input[type="radio"], .checkbox-inline input[type="checkbox"]
104
+ .checkbox input[type="checkbox"] {
105
+ margin-left: -5px;
106
+ }
107
+
108
+ .form-inline > .sub-doc {
109
+ background-color: @body-bg;
110
+ }
111
+ }
112
+
113
+ .search-results {
114
+ .search-result {
115
+ color: @link-color;
116
+ }
117
+ .search-result.focus {
118
+ background-color: @link-hover-color;
119
+ }
120
+ }
121
+
122
+ .form-inline {
123
+ .row {
124
+ margin-left: 5px;
125
+ margin-right: 0;
126
+ }
127
+ .form-group .input-group {
128
+ display: table-cell;
129
+ .input-group-addon {
130
+ display: none;
131
+ }
132
+ }
133
+ }
134
+
135
+ form {
136
+ .tab-content {
137
+ margin-top: 5px;
138
+ }
139
+ }
140
+
141
+ @media (max-width: 767px) {
142
+ // For some reason bootstrap only does this for large windows - need it for search on mobile
143
+ .navbar-form {
144
+ width: auto;
145
+ border: 0;
146
+ margin-left: 0;
147
+ margin-right: 0;
148
+ padding: 0;
149
+ -webkit-box-shadow: none;
150
+ box-shadow: none;
151
+ }
152
+
153
+ .navbar-form.navbar-right:last-child {
154
+ margin-right: -15px;
155
+ }
156
+
157
+ form {
158
+ .schema-head, .schema-foot {
159
+ padding: 5px 15px;
160
+ }
161
+ }
162
+
163
+ }