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; |
| 30 | padding: 3px 10px; |
| 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 | } |
| 59 | &:not(.no-more):before { |
| 60 | position: absolute; |
| 61 | font-family: "FontAwesome"; |
| 62 | content: '\f0de'; |
| 63 | right: .5em; |
| 64 | top: .4em; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 65 | } |
| 66 | } |
| 67 | &:last-of-type { |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame^] | 68 | border-bottom: { |
| 69 | width: $border-size; |
| 70 | left-radius: $standard-border-radius; |
| 71 | right-radius: $standard-border-radius; |
| 72 | } |
| 73 | |
| 74 | &:not(.no-more):before { |
| 75 | position: absolute; |
| 76 | font-family: "FontAwesome"; |
| 77 | content: '\f0dd'; |
| 78 | right: .5em; |
| 79 | bottom: .4em; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 80 | } |
| 81 | } |
| 82 | mark { |
| 83 | text-decoration: underline; |
| 84 | background-color: transparent; |
| 85 | color: inherit; |
| 86 | font-weight: bold; |
| 87 | } |
| 88 | } |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame^] | 89 | > li.active, |
| 90 | > span.pref.active { |
| 91 | @include choose-active; |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 92 | } |
| 93 | > li:hover, |
| 94 | > span.pref:hover { |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame^] | 95 | @include choose-hover; |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * Default prefix view |
| 100 | */ |
| 101 | > span.pref:not(:empty) { |
| 102 | position: absolute; |
| 103 | min-width: 5px; |
| 104 | font-size: 80%; |
| 105 | left: 0; |
| 106 | bottom: 0; |
| 107 | display: block; |
| 108 | margin-bottom: -2.1em; |
| 109 | padding: 2px 6px; |
| 110 | border: { |
| 111 | radius: $standard-border-radius; |
| 112 | width: $border-size; |
| 113 | } |
Nils Diewald | ea23674 | 2015-03-26 21:55:36 +0000 | [diff] [blame] | 114 | } |
| 115 | } |
| 116 | |
| 117 | |