Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 2 | @import "util"; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 3 | |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 4 | $border-size: 2px; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 5 | |
| 6 | /** |
| 7 | * Menu list - used nearly everywhere |
| 8 | */ |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 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? |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 15 | |
| 16 | z-index: 7000; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 17 | } |
| 18 | |
| 19 | ul.menu > li, |
| 20 | ul.menu > span.pref:not(:empty) { |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 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; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 29 | cursor: pointer; |
Nils Diewald | 44e1edb | 2015-04-08 19:12:15 +0000 | [diff] [blame^] | 30 | padding: $item-padding; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 31 | white-space: normal; |
| 32 | } |
| 33 | |
| 34 | ul.menu > li, |
| 35 | ul.menu > span.pref:not(.active) { |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 36 | @include choose-item; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 37 | } |
| 38 | |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 39 | ul.menu { |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 40 | position: absolute; |
| 41 | padding: 0; |
| 42 | margin: 0; |
| 43 | text-indent: 0; |
| 44 | list-style-type: none; |
| 45 | list-style-position: outside; |
| 46 | |
| 47 | /** |
| 48 | * List items |
| 49 | */ |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 50 | > li { |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 51 | padding-right: 1.6em; |
| 52 | |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 53 | &:first-of-type { |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 54 | border-top: { |
| 55 | width: $border-size; |
| 56 | left-radius: $standard-border-radius; |
| 57 | right-radius: $standard-border-radius; |
| 58 | } |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 59 | } |
| 60 | &:last-of-type { |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 61 | border-bottom: { |
| 62 | width: $border-size; |
| 63 | left-radius: $standard-border-radius; |
| 64 | right-radius: $standard-border-radius; |
| 65 | } |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 66 | } |
| 67 | mark { |
| 68 | text-decoration: underline; |
| 69 | background-color: transparent; |
| 70 | color: inherit; |
| 71 | font-weight: bold; |
| 72 | } |
| 73 | } |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 74 | > li.active, |
| 75 | > span.pref.active { |
| 76 | @include choose-active; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 77 | } |
| 78 | > li:hover, |
| 79 | > span.pref:hover { |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 80 | @include choose-hover; |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * Default prefix view |
| 85 | */ |
| 86 | > span.pref:not(:empty) { |
| 87 | position: absolute; |
| 88 | min-width: 5px; |
| 89 | font-size: 80%; |
| 90 | left: 0; |
| 91 | bottom: 0; |
| 92 | display: block; |
| 93 | margin-bottom: -2.1em; |
| 94 | padding: 2px 6px; |
| 95 | border: { |
| 96 | radius: $standard-border-radius; |
| 97 | width: $border-size; |
| 98 | } |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 99 | } |
| 100 | } |
| 101 | |
Nils Diewald | 5814133 | 2015-04-07 16:18:45 +0000 | [diff] [blame] | 102 | /** |
| 103 | * Rolling menu |
| 104 | */ |
| 105 | ul.menu.roll { |
| 106 | > li:first-of-type { |
| 107 | &:not(.no-more):before { |
| 108 | position: absolute; |
| 109 | font-family: "FontAwesome"; |
| 110 | content: '\f0de'; |
| 111 | right: .5em; |
| 112 | top: .4em; |
| 113 | } |
| 114 | } |
| 115 | > li:last-of-type { |
| 116 | &:not(.no-more):before { |
| 117 | position: absolute; |
| 118 | font-family: "FontAwesome"; |
| 119 | content: '\f0dd'; |
| 120 | right: .5em; |
| 121 | bottom: .4em; |
| 122 | } |
| 123 | } |
| 124 | } |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 125 | |
Nils Diewald | 5814133 | 2015-04-07 16:18:45 +0000 | [diff] [blame] | 126 | |
| 127 | /** |
| 128 | * Sorting menu |
| 129 | */ |
| 130 | ul.menu.sort { |
| 131 | position: relative; |
| 132 | display: inline-block; |
| 133 | > li::before { |
| 134 | content: ''; |
| 135 | } |
| 136 | > li.active:hover { |
| 137 | @include choose-remove; |
| 138 | } |
| 139 | |
| 140 | } |