diff options
| author | erdgeist <erdgeist@bauklotz.fritz.box> | 2016-08-13 19:23:43 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@bauklotz.fritz.box> | 2016-08-13 19:23:43 +0200 |
| commit | a05817d40a7fab3c1ece32615dd316231742a0e1 (patch) | |
| tree | fd7b762f1fdf4a197bb00431129e6d3c53211065 /style.css | |
| parent | 09a4d48b6bb93a4fd7096622dc246f2dccb6f181 (diff) | |
Use our own style for checkboxes
Diffstat (limited to 'style.css')
| -rw-r--r-- | style.css | 43 |
1 files changed, 36 insertions, 7 deletions
| @@ -335,13 +335,42 @@ select { | |||
| 335 | } | 335 | } |
| 336 | 336 | ||
| 337 | label { | 337 | label { |
| 338 | display: block; | 338 | margin-bottom: 0.4em; |
| 339 | padding-left: 40px; | 339 | } |
| 340 | text-indent: -25px; | 340 | |
| 341 | } | 341 | input[type=checkbox]:not(old) { |
| 342 | 342 | display : none; | |
| 343 | label input { | 343 | opacity : 0; |
| 344 | margin-right: 10px; | 344 | } |
| 345 | |||
| 346 | input[type=checkbox]:not(old) + label { | ||
| 347 | display : inline-block; | ||
| 348 | margin-left : 0; | ||
| 349 | line-height : 1.5em; | ||
| 350 | text-indent : -2.0625em; /* Make 2nd line of label align, takes border width of tickbox into account */ | ||
| 351 | padding-left : 2.0625em; | ||
| 352 | } | ||
| 353 | |||
| 354 | input[type=checkbox]:not(old) + label > span { | ||
| 355 | display : inline-block; | ||
| 356 | width : 1em; | ||
| 357 | height : 1em; | ||
| 358 | margin : 0.25em 1em 0.25em 0; | ||
| 359 | border : 0.0625em solid white; | ||
| 360 | border-radius : 25%; | ||
| 361 | vertical-align : top; | ||
| 362 | } | ||
| 363 | |||
| 364 | input[type=checkbox]:not(old):checked + label > span:before { | ||
| 365 | content : '✓'; | ||
| 366 | display : inline-block; | ||
| 367 | width : 1em; | ||
| 368 | color : white; | ||
| 369 | font-size : 1.4em; | ||
| 370 | line-height : 1em; | ||
| 371 | text-align : center; | ||
| 372 | font-weight : bold; | ||
| 373 | margin-left : 2.1em; | ||
| 345 | } | 374 | } |
| 346 | 375 | ||
| 347 | #wrapper.step1 .block-step1 .juice, | 376 | #wrapper.step1 .block-step1 .juice, |
