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; |
| 5 | |
| 6 | /** |
| 7 | * Menu list - used nearly everywhere |
| 8 | */ |
| 9 | ul.menu, |
| 10 | ul.menu > span.pref:not(:empty) { |
| 11 | box-sizing: border-box; |
| 12 | text-shadow: none; |
| 13 | font-weight: normal; |
| 14 | // Pagination border? |
| 15 | |
| 16 | z-index: 7000; |
| 17 | } |
| 18 | |
| 19 | ul.menu > li, |
| 20 | ul.menu > span.pref:not(:empty) { |
| 21 | box-shadow: $choose-box-shadow; |
| 22 | border: { |
| 23 | width: $border-size; |
| 24 | bottom-width: 0px; |
| 25 | top-width: 0px; |
| 26 | style: solid; |
| 27 | } |
| 28 | @include choose-item; |
| 29 | cursor: pointer; |
| 30 | padding: $item-padding; |
| 31 | white-space: normal; |
| 32 | } |
| 33 | |
Akron | c744873 | 2016-04-27 14:06:58 +0200 | [diff] [blame^] | 34 | ul.menu div.lengthField { |
| 35 | border: { |
| 36 | color: transparent; |
| 37 | width: $border-size; |
| 38 | } |
| 39 | padding: $item-padding; |
| 40 | padding-top: 0; |
| 41 | padding-bottom: 0; |
| 42 | span { |
| 43 | display: block; |
| 44 | line-height: 0; |
| 45 | color: transparent; |
| 46 | } |
| 47 | background-color: blue; |
| 48 | } |
| 49 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 50 | ul.menu > li, |
| 51 | ul.menu > span.pref:not(.active) { |
| 52 | @include choose-item; |
| 53 | } |
| 54 | |
| 55 | ul.menu { |
| 56 | position: absolute; |
| 57 | padding: 0; |
| 58 | margin: 0; |
| 59 | text-indent: 0; |
| 60 | list-style-type: none; |
| 61 | list-style-position: outside; |
| 62 | |
| 63 | /** |
| 64 | * List items |
| 65 | */ |
Akron | c744873 | 2016-04-27 14:06:58 +0200 | [diff] [blame^] | 66 | > li, div.lengthField { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 67 | padding-right: 1.6em; |
Akron | c744873 | 2016-04-27 14:06:58 +0200 | [diff] [blame^] | 68 | } |
| 69 | > li { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 70 | |
| 71 | &:first-of-type { |
| 72 | border-top: { |
| 73 | width: $border-size; |
| 74 | left-radius: $standard-border-radius; |
| 75 | right-radius: $standard-border-radius; |
| 76 | } |
| 77 | } |
| 78 | &:last-of-type { |
| 79 | border-bottom: { |
| 80 | width: $border-size; |
| 81 | left-radius: $standard-border-radius; |
| 82 | right-radius: $standard-border-radius; |
| 83 | } |
| 84 | } |
| 85 | mark { |
| 86 | text-decoration: underline; |
| 87 | background-color: transparent; |
| 88 | color: inherit; |
| 89 | font-weight: bold; |
| 90 | } |
| 91 | } |
| 92 | > li.active, |
| 93 | > span.pref.active { |
| 94 | @include choose-active; |
| 95 | } |
| 96 | > li:hover, |
| 97 | > span.pref:hover { |
| 98 | @include choose-hover; |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Default prefix view |
| 103 | */ |
| 104 | > span.pref:not(:empty) { |
| 105 | position: absolute; |
| 106 | min-width: 5px; |
| 107 | font-size: 80%; |
| 108 | left: 0; |
| 109 | bottom: 0; |
| 110 | display: block; |
| 111 | margin-bottom: -2.1em; |
| 112 | padding: 2px 6px; |
| 113 | border: { |
| 114 | radius: $standard-border-radius; |
| 115 | width: $border-size; |
| 116 | } |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | /** |
| 121 | * Rolling menu |
| 122 | */ |
| 123 | ul.menu.roll { |
| 124 | > li:first-of-type { |
| 125 | &:not(.no-more):before { |
| 126 | position: absolute; |
| 127 | font-family: "FontAwesome"; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 128 | content: $fa-up; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 129 | right: .5em; |
| 130 | top: .4em; |
| 131 | } |
| 132 | } |
| 133 | > li:last-of-type { |
| 134 | &:not(.no-more):before { |
| 135 | position: absolute; |
| 136 | font-family: "FontAwesome"; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 137 | content: $fa-down; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 138 | right: .5em; |
| 139 | bottom: .4em; |
| 140 | } |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | |
| 145 | /** |
| 146 | * Sorting menu |
| 147 | */ |
| 148 | ul.menu.sort { |
| 149 | position: relative; |
| 150 | display: inline-block; |
| 151 | > li::before { |
| 152 | content: ''; |
| 153 | } |
| 154 | > li.active:hover { |
| 155 | @include choose-remove; |
| 156 | } |
| 157 | |
| 158 | } |