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