Akron | 5999212 | 2019-10-29 11:28:45 +0100 | [diff] [blame] | 1 | // This class defines form views |
| 2 | |
| 3 | .form-table { |
| 4 | display: block; |
| 5 | padding: 0; |
| 6 | |
| 7 | fieldset { |
| 8 | border-width: 0; |
| 9 | padding: 0; |
| 10 | margin: 0; |
| 11 | // margin-left: 5em; |
| 12 | } |
| 13 | |
| 14 | fieldset > div { |
| 15 | white-space: nowrap; |
| 16 | } |
| 17 | |
| 18 | legend { |
| 19 | background-color: transparent; |
| 20 | margin-left: 0; |
| 21 | font-weight: bold; |
| 22 | border-radius: $standard-border-radius; |
| 23 | } |
| 24 | |
| 25 | label, input[type=radio] { |
| 26 | font-size: 80%; |
| 27 | } |
| 28 | |
| 29 | label[for] { |
| 30 | display: block; |
| 31 | text-align: left; |
| 32 | } |
| 33 | |
| 34 | label[for], input[type=submit] { |
| 35 | margin-top: 2em; |
| 36 | } |
| 37 | |
| 38 | input, textarea, button { |
| 39 | border-radius: $standard-border-radius; |
| 40 | } |
| 41 | |
| 42 | input, textarea { |
| 43 | border-color: $ids-grey-2; |
| 44 | background-color: $nearly-white; |
| 45 | border-style: solid; |
| 46 | } |
| 47 | |
| 48 | input, textarea, select { |
| 49 | display: inline-block; |
| 50 | width: 20%; |
| 51 | min-width: 20em; |
| 52 | // margin: 0 20pt 0 20pt; |
| 53 | padding: $base-padding; |
| 54 | } |
| 55 | |
| 56 | input[type=radio] { |
| 57 | display: inline; |
| 58 | text-aline: right; |
| 59 | background-color: red; |
| 60 | width: auto; |
| 61 | min-width: auto; |
| 62 | } |
| 63 | |
| 64 | input[readonly=readonly],textarea[readonly] { |
| 65 | background-color: $light-orange; // rgba(0,0,0,0.5); |
| 66 | } |
| 67 | |
| 68 | .field-with-error { |
| 69 | border-color: $ids-pink-1; |
| 70 | } |
| 71 | |
| 72 | input:not([type=radio]), button { |
| 73 | height: 3em; |
| 74 | } |
| 75 | |
| 76 | input[type=submit], button { |
| 77 | display: inline-block; |
| 78 | text-align: center; |
| 79 | background-color: $middle-green; |
| 80 | border-color: $dark-green; |
| 81 | } |
| 82 | |
| 83 | label.field-required::after { |
| 84 | color: $ids-blue-1; |
| 85 | content:'*'; |
| 86 | } |
| 87 | } |