OLD | NEW |
1 | 1 |
2 menu { | 2 menu { |
3 display: none; | 3 display: none; |
4 position: absolute; | 4 position: absolute; |
5 border: 1px solid #999; | 5 border: 1px solid rgba(0, 0, 0, .50); |
6 -webkit-box-shadow: 2px 2px 3px hsla(0, 0%, 0%, .3); | 6 -webkit-box-shadow: 0px 2px 4px rgba(0, 0, 0, .50); |
7 color: black; | 7 color: black; |
8 background-color: white; | 8 background: -webkit-gradient(linear, 0 0, 0 100%, from(#fff), to(#eee)); |
9 left: 0; | 9 left: 0; |
10 white-space: nowrap; | 10 white-space: nowrap; |
11 z-index: 2; | 11 z-index: 2; |
12 padding: 2px; | 12 padding: 8px 0; |
13 margin: 0; | 13 margin: 0; |
14 cursor: default; | 14 cursor: default; |
15 border-radius: 4px; | 15 border-radius: 3px; |
16 } | 16 } |
17 | 17 |
| 18 |
18 menu > * { | 19 menu > * { |
19 display: block; | 20 display: block; |
20 margin: 0; | 21 margin: 0; |
21 width: 100%; | 22 width: 100%; |
22 text-align: start; | 23 text-align: start; |
23 } | 24 } |
24 | 25 |
25 menu > :not(hr) { | 26 menu > :not(hr) { |
26 -webkit-appearance: none; | 27 -webkit-appearance: none; |
27 background: transparent; | 28 background: transparent; |
28 font: inherit; | 29 font: inherit; |
29 border: 0; | 30 border: 0; |
30 padding: 3px 8px; | 31 line-height: 18px; |
| 32 padding: 0 19px; |
31 overflow: hidden; | 33 overflow: hidden; |
32 text-overflow: ellipsis; | 34 text-overflow: ellipsis; |
33 } | 35 } |
34 | 36 |
35 menu > hr { | 37 menu > hr { |
| 38 background: -webkit-gradient(linear, 0 0, 96% 0, from(rgba(0, 0, 0, .10)), |
| 39 to(rgba(0, 0, 0, .02))); |
36 border: 0; | 40 border: 0; |
37 border-top: 1px solid rgb(153, 153, 153); | 41 height: 1px; |
38 margin: 2px 0; | 42 margin: 8px 0; |
| 43 } |
| 44 |
| 45 menu > [disabled] { |
| 46 color: rgba(0, 0, 0, .3); |
39 } | 47 } |
40 | 48 |
41 menu > [hidden] { | 49 menu > [hidden] { |
42 display: none; | 50 display: none; |
43 } | 51 } |
44 | 52 |
45 menu > [selected] { | 53 menu > [selected] { |
46 background-color: hsl(213, 66%, 57%); | 54 background-color: #dce5fa; |
47 color: white; | |
48 } | 55 } |
| 56 |
| 57 menu > [selected]:active { |
| 58 background-color: #426dc9; |
| 59 color: #fff; |
| 60 } |
OLD | NEW |