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