Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 2 | @import "../util"; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 3 | |
| 4 | $border-size: 2px; |
Nils Diewald | 845282c | 2015-05-14 07:53:03 +0000 | [diff] [blame] | 5 | $right-padding: 60px; |
| 6 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 7 | |
| 8 | /** |
| 9 | * Input field |
| 10 | */ |
| 11 | #q-field { |
| 12 | width: 100%; |
| 13 | margin: 0; |
| 14 | margin-bottom: 3px; |
| 15 | display: block; |
| 16 | } |
| 17 | |
| 18 | header input { |
| 19 | outline: none; |
| 20 | font-size: 11pt; |
| 21 | border: $border-size solid $nearly-white; |
| 22 | padding: 2px; |
| 23 | } |
| 24 | |
| 25 | #searchbar { |
| 26 | position: relative; |
| 27 | width: 100%; |
Nils Diewald | 845282c | 2015-05-14 07:53:03 +0000 | [diff] [blame] | 28 | padding-right: $right-padding; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 29 | button[type=submit] { |
| 30 | position: absolute; |
| 31 | font-weight: normal; |
| 32 | @include choose-item; |
| 33 | padding: 0; |
| 34 | height: 100%; |
| 35 | top: 0; |
| 36 | right: $right-distance; |
| 37 | width: 30px; |
| 38 | cursor:pointer; |
| 39 | > span:nth-of-type(1) { |
| 40 | @include blind; |
| 41 | } |
| 42 | &::after { |
| 43 | font-family: "FontAwesome"; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 44 | content: $fa-search; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 45 | } |
| 46 | border: { |
| 47 | width: $border-size; |
| 48 | style: solid; |
| 49 | color: $nearly-white; |
| 50 | } |
Akron | 6a535d4 | 2015-08-26 20:16:58 +0200 | [diff] [blame] | 51 | &:hover, &:focus { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 52 | @include choose-hover; |
| 53 | } |
Akron | 6a535d4 | 2015-08-26 20:16:58 +0200 | [diff] [blame] | 54 | &::-moz-focus-inner { |
| 55 | border: none; |
| 56 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 57 | &:active { |
| 58 | @include choose-active; |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * This is just for styling the last button, |
| 63 | * in case there are more than one buttons. |
| 64 | */ |
| 65 | &:last-of-type { |
| 66 | @include box-sizing-box(); |
| 67 | border: { |
| 68 | right-width: $border-size; |
| 69 | right-style: solid; |
| 70 | top-right-radius: $standard-border-radius; |
| 71 | bottom-right-radius: $standard-border-radius; |
| 72 | } |
| 73 | } |
| 74 | } |
| 75 | button + button { |
| 76 | right: 0; |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * Checkbox styling |
| 82 | * http://stackoverflow.com/questions/4148499/how-to-style-checkbox-using-css |
| 83 | */ |
| 84 | .checkbox { |
| 85 | display: none; |
| 86 | + label { |
| 87 | cursor: pointer; |
| 88 | span { |
| 89 | border-radius: 4px; |
| 90 | display: inline-block; |
| 91 | width: 1em; // 12px |
| 92 | height: 1em; |
| 93 | line-height: 1em; // 12px; |
| 94 | vertical-align: middle; |
| 95 | padding: 0; |
| 96 | margin-right: .2em; |
| 97 | /* |
| 98 | background-color: $nearly-white; |
| 99 | &:hover { |
| 100 | border-color: $nearly-white; |
| 101 | } |
| 102 | */ |
| 103 | &::after { |
| 104 | font-family: "FontAwesome"; |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 105 | content: $fa-check; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 106 | } |
| 107 | } |
| 108 | } |
| 109 | &:checked + label span { |
| 110 | &:after { |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 111 | content: $fa-checked; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 112 | } |
| 113 | } |
Nils Diewald | 845282c | 2015-05-14 07:53:03 +0000 | [diff] [blame] | 114 | } |