blob: d5c9aba338380385100dab3d07c7f1603b50e062 [file] [log] [blame]
Akron59992122019-10-29 11:28:45 +01001// 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
Akron1a9d5be2020-03-19 17:28:33 +010034 label[for], input[type=submit], a.form-button {
Akron59992122019-10-29 11:28:45 +010035 margin-top: 2em;
36 }
37
Akron1a9d5be2020-03-19 17:28:33 +010038 input, textarea, button, a.form-button {
Akron59992122019-10-29 11:28:45 +010039 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
Akron1a9d5be2020-03-19 17:28:33 +010048 input, textarea, select, a.form-button {
49 border-style: solid;
Akron59992122019-10-29 11:28:45 +010050 display: inline-block;
51 width: 20%;
52 min-width: 20em;
Akron59992122019-10-29 11:28:45 +010053 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
Akron1a9d5be2020-03-19 17:28:33 +010072 /*
73 input:not([type=radio]),
74 button,
75 a.form-button {
Akron59992122019-10-29 11:28:45 +010076 height: 3em;
77 }
Akron1a9d5be2020-03-19 17:28:33 +010078*/
Akron59992122019-10-29 11:28:45 +010079
Akron1a9d5be2020-03-19 17:28:33 +010080 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;
Akron59992122019-10-29 11:28:45 +010091 }
92
Akron1a9d5be2020-03-19 17:28:33 +010093 a.form-button:hover {
94 color: default !important;
95 }
96
Akron59992122019-10-29 11:28:45 +010097 label.field-required::after {
98 color: $ids-blue-1;
99 content:'*';
100 }
Akron1a9d5be2020-03-19 17:28:33 +0100101}
102
103.button-abort {
104 background-color: $middle-orange !important;
105 color: $darkest-orange !important;
106 border-color: $darkest-orange !important;
107}