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 | } |
| 51 | &:hover { |
| 52 | @include choose-hover; |
| 53 | } |
| 54 | &:active { |
| 55 | @include choose-active; |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * This is just for styling the last button, |
| 60 | * in case there are more than one buttons. |
| 61 | */ |
| 62 | &:last-of-type { |
| 63 | @include box-sizing-box(); |
| 64 | border: { |
| 65 | right-width: $border-size; |
| 66 | right-style: solid; |
| 67 | top-right-radius: $standard-border-radius; |
| 68 | bottom-right-radius: $standard-border-radius; |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | button + button { |
| 73 | right: 0; |
| 74 | } |
| 75 | } |
| 76 | |
Nils Diewald | 845282c | 2015-05-14 07:53:03 +0000 | [diff] [blame^] | 77 | #koralquery { |
| 78 | margin-top: 10px; |
| 79 | margin-right: 40px; |
| 80 | border: { |
| 81 | radius: $standard-border-radius; |
| 82 | color: $dark-green; |
| 83 | style: solid; |
| 84 | width: $border-size; |
| 85 | } |
| 86 | white-space: pre; |
| 87 | background-color: $nearly-white; |
| 88 | color: $dark-grey; |
| 89 | } |
| 90 | |
| 91 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 92 | /** |
| 93 | * Checkbox styling |
| 94 | * http://stackoverflow.com/questions/4148499/how-to-style-checkbox-using-css |
| 95 | */ |
| 96 | .checkbox { |
| 97 | display: none; |
| 98 | + label { |
| 99 | cursor: pointer; |
| 100 | span { |
| 101 | border-radius: 4px; |
| 102 | display: inline-block; |
| 103 | width: 1em; // 12px |
| 104 | height: 1em; |
| 105 | line-height: 1em; // 12px; |
| 106 | vertical-align: middle; |
| 107 | padding: 0; |
| 108 | margin-right: .2em; |
| 109 | /* |
| 110 | background-color: $nearly-white; |
| 111 | &:hover { |
| 112 | border-color: $nearly-white; |
| 113 | } |
| 114 | */ |
| 115 | &::after { |
| 116 | font-family: "FontAwesome"; |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 117 | content: $fa-check; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 118 | } |
| 119 | } |
| 120 | } |
| 121 | &:checked + label span { |
| 122 | &:after { |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 123 | content: $fa-checked; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 124 | } |
| 125 | } |
Nils Diewald | 845282c | 2015-05-14 07:53:03 +0000 | [diff] [blame^] | 126 | } |