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 | |
Akron | 1a9d5be | 2020-03-19 17:28:33 +0100 | [diff] [blame] | 34 | label[for], input[type=submit], a.form-button { |
Akron | 5999212 | 2019-10-29 11:28:45 +0100 | [diff] [blame] | 35 | margin-top: 2em; |
| 36 | } |
| 37 | |
Akron | 1a9d5be | 2020-03-19 17:28:33 +0100 | [diff] [blame] | 38 | input, textarea, button, a.form-button { |
Akron | 5999212 | 2019-10-29 11:28:45 +0100 | [diff] [blame] | 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 | |
Akron | 1a9d5be | 2020-03-19 17:28:33 +0100 | [diff] [blame] | 48 | input, textarea, select, a.form-button { |
| 49 | border-style: solid; |
Akron | 5999212 | 2019-10-29 11:28:45 +0100 | [diff] [blame] | 50 | display: inline-block; |
| 51 | width: 20%; |
| 52 | min-width: 20em; |
Akron | 5999212 | 2019-10-29 11:28:45 +0100 | [diff] [blame] | 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 | |
Akron | 1a9d5be | 2020-03-19 17:28:33 +0100 | [diff] [blame] | 72 | /* |
| 73 | input:not([type=radio]), |
| 74 | button, |
| 75 | a.form-button { |
Akron | 5999212 | 2019-10-29 11:28:45 +0100 | [diff] [blame] | 76 | height: 3em; |
| 77 | } |
Akron | 1a9d5be | 2020-03-19 17:28:33 +0100 | [diff] [blame] | 78 | */ |
Akron | 5999212 | 2019-10-29 11:28:45 +0100 | [diff] [blame] | 79 | |
Akron | 1a9d5be | 2020-03-19 17:28:33 +0100 | [diff] [blame] | 80 | input[type=submit], |
| 81 | button, |
| 82 | a.form-button { |
| 83 | display: inline-block; |
| 84 | cursor: pointer; |
| 85 | border-width: thin; |
| 86 | text-align: center; |
| 87 | background-color: $middle-green; |
| 88 | border-color: $dark-green; |
| 89 | font-size: 8pt; |
| 90 | color: $dark-green; |
Akron | 5999212 | 2019-10-29 11:28:45 +0100 | [diff] [blame] | 91 | } |
| 92 | |
Akron | 1a9d5be | 2020-03-19 17:28:33 +0100 | [diff] [blame] | 93 | a.form-button:hover { |
| 94 | color: default !important; |
| 95 | } |
| 96 | |
Akron | 5999212 | 2019-10-29 11:28:45 +0100 | [diff] [blame] | 97 | label.field-required::after { |
| 98 | color: $ids-blue-1; |
| 99 | content:'*'; |
| 100 | } |
Akron | 1a9d5be | 2020-03-19 17:28:33 +0100 | [diff] [blame] | 101 | } |
| 102 | |
| 103 | .button-abort { |
| 104 | background-color: $middle-orange !important; |
| 105 | color: $darkest-orange !important; |
| 106 | border-color: $darkest-orange !important; |
| 107 | } |