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