summaryrefslogtreecommitdiff
path: root/style.css
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2016-08-22 01:02:09 +0200
committerDirk Engling <erdgeist@erdgeist.org>2016-08-22 01:02:09 +0200
commit8622221a86f1adf29aa558e7870e8898d0a82c20 (patch)
tree7b5caa73068573efa7e2ac01b1a01fd7f474f034 /style.css
parentf64957cf889e8eb9df4e443c31bf13ec1c63b14f (diff)
Add warnings to enter required fields
Diffstat (limited to 'style.css')
-rw-r--r--style.css79
1 files changed, 51 insertions, 28 deletions
diff --git a/style.css b/style.css
index 12be3e3..fd83938 100644
--- a/style.css
+++ b/style.css
@@ -119,16 +119,21 @@ input[type="text"] {
119 font-size: 13pt; 119 font-size: 13pt;
120 font-weight: normal; 120 font-weight: normal;
121 121
122 background-color : rgba(255, 255, 255, 0.30); 122 transition: background-color 1s;
123 background-color: rgba(255, 255, 255, 0.30);
123 color: white; 124 color: white;
124} 125}
125 126
127input[type="text"].missing {
128 background-color: rgba(255, 127, 127, 0.60);
129}
130
126/* Remove blue focus hint */ 131/* Remove blue focus hint */
127input:focus { 132input:focus {
128 outline: none !important; 133 outline: none !important;
129} 134}
130 135
131/* Style place holder text (and repeat for each browser namespace :( */ 136/* Style place holder text (and repeat for each browser namespace:( */
132::placeholder { 137::placeholder {
133 color: white; 138 color: white;
134 opacity: 0.5; 139 opacity: 0.5;
@@ -179,43 +184,43 @@ select {
179} 184}
180 185
181input[type=checkbox]:not(old) { 186input[type=checkbox]:not(old) {
182 display : none; 187 display: none;
183 opacity : 0; 188 opacity: 0;
184} 189}
185 190
186input[type=checkbox]:not(old) + label { 191input[type=checkbox]:not(old) + label {
187 display : inline-block; 192 display: inline-block;
188 margin-left : 0; 193 margin-left: 0;
189 line-height : 1.7em; 194 line-height: 1.7em;
190 text-indent : -68px; /* Make 2nd line of label align, takes border width of tickbox into account */ 195 text-indent: -68px; /* Make 2nd line of label align, takes border width of tickbox into account */
191 padding-left : 68px; 196 padding-left: 68px;
192} 197}
193 198
194input[type=checkbox]:not(old) + label > span { 199input[type=checkbox]:not(old) + label > span {
195 display : inline-block; 200 display: inline-block;
196 width : 30px; 201 width: 30px;
197 height : 30px; 202 height: 30px;
198 background-color : rgba(255, 255, 255, 0.30); 203 background-color: rgba(255, 255, 255, 0.30);
199 margin : 2px 36px 8px 2px; 204 margin: 2px 36px 8px 2px;
200 border : 0px solid rgba(255, 255, 255, 0.30); 205 border: 0px solid rgba(255, 255, 255, 0.30);
201 border-radius : 6px; 206 border-radius: 6px;
202 vertical-align : top; 207 vertical-align: top;
203 font-size : 1pt; 208 font-size: 1pt;
204} 209}
205 210
206input[type=checkbox]:not(old):checked + label > span { 211input[type=checkbox]:not(old):checked + label > span {
207 transition : font-size 0.4s; 212 transition: font-size 0.4s;
208 font-size : 17pt; 213 font-size: 17pt;
209} 214}
210 215
211input[type=checkbox]:not(old):checked + label > span:before { 216input[type=checkbox]:not(old):checked + label > span:before {
212 content : '✓'; 217 content: '✓';
213 display : inline-block; 218 display: inline-block;
214 width : 28px; 219 width: 28px;
215 color : white; 220 color: white;
216 text-align : left; 221 text-align: left;
217 font-weight : bold; 222 font-weight: bold;
218 margin-left : 144px; 223 margin-left: 144px;
219} 224}
220 225
221label { 226label {
@@ -350,6 +355,24 @@ dd {
350#wrapper.moreinfo-shown .hide-moreinfo { display: inline-block; } 355#wrapper.moreinfo-shown .hide-moreinfo { display: inline-block; }
351#wrapper.moreinfo-shown .show-moreinfo { display: none; } 356#wrapper.moreinfo-shown .show-moreinfo { display: none; }
352 357
358.hidden {
359 overflow: hidden;
360 max-height: 0px;
361 transition: max-height, height;
362 transition-timing-function: ease;
363 transition-duration: 0.5s;
364}
365
366.warnmiss {
367 width: 95%;
368 max-height: 5em;
369 background-color: #E65946;
370 border-radius: 6px;
371 text-align: center;
372 color: white;
373 padding: 0.4em 0.6em 0.4em 0.6em;
374}
375
353/* These are the heights of the expanded sections, only shown if the 376/* These are the heights of the expanded sections, only shown if the
354 wrapper has the appropriate class */ 377 wrapper has the appropriate class */
355 378
@@ -449,7 +472,7 @@ dd {
449} 472}
450 473
451.button-small:hover { 474.button-small:hover {
452 background-color : rgba(255, 255, 255, 0.30); 475 background-color: rgba(255, 255, 255, 0.30);
453 color: white; 476 color: white;
454} 477}
455 478