|
| 1 | +.AriaMenuButton { |
| 2 | + position: relative; |
| 3 | +} |
| 4 | + |
| 5 | +.AriaMenuButton-trigger { |
| 6 | + cursor: pointer; |
| 7 | + display: inline-block; |
| 8 | + background-color: #EEE; |
| 9 | + background-image: linear-gradient(#FCFCFC, #EEE); |
| 10 | + border: 1px solid #D5D5D5; |
| 11 | + border-radius: 3px; |
| 12 | + font-weight: bold; |
| 13 | + padding: 6px 10px; |
| 14 | +} |
| 15 | + |
| 16 | +.AriaMenuButton-trigger::after { |
| 17 | + content: ""; |
| 18 | + display: inline-block; |
| 19 | + margin-left: 3px; |
| 20 | + position: relative; |
| 21 | + top: 3px; |
| 22 | + border-color: currentColor transparent transparent; |
| 23 | + border-width: 5px 4px; |
| 24 | + border-style: solid; |
| 25 | +} |
| 26 | + |
| 27 | +.AriaMenuButton-trigger:hover, |
| 28 | +.AriaMenuButton-trigger:focus, |
| 29 | +.AriaMenuButton-trigger.is-open { |
| 30 | + background-color: #DDD; |
| 31 | + background-image: linear-gradient(#EEE, #DDD); |
| 32 | + border-color: #CCC; |
| 33 | +} |
| 34 | + |
| 35 | +.AriaMenuButton-trigger.is-open { |
| 36 | + background-color: #DCDCDC; |
| 37 | + background-image: none; |
| 38 | + border-color: #B5B5B5; |
| 39 | + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15); |
| 40 | +} |
| 41 | + |
| 42 | +.AriaMenuButton-menu { |
| 43 | + background: #fff; |
| 44 | + border: 1px solid rgba(200, 200, 200, 0.4); |
| 45 | + list-style-type: none; |
| 46 | + position: absolute; |
| 47 | + top: 100%; |
| 48 | + left: 0; |
| 49 | + z-index: 99; |
| 50 | + padding-left: 0; |
| 51 | + border-radius: 3px; |
| 52 | + margin: 4px 0 0 0; |
| 53 | + box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15); |
| 54 | + width: 215px; |
| 55 | +} |
| 56 | + |
| 57 | +.AriaMenuButton-menu--flushRight { |
| 58 | + right: 0; |
| 59 | +} |
| 60 | + |
| 61 | +.AriaMenuButton-menuItem { |
| 62 | + cursor: pointer; |
| 63 | + font-size: 12px; |
| 64 | + padding: 8px; |
| 65 | + border-bottom: 1px solid #EEE; |
| 66 | +} |
| 67 | + |
| 68 | +.AriaMenuButton-li:first-of-type .AriaMenuButton-menuItem { |
| 69 | + border-top-right-radius: 3px; |
| 70 | + border-top-left-radius: 3px; |
| 71 | +} |
| 72 | + |
| 73 | +.AriaMenuButton-li:last-of-type .AriaMenuButton-menuItem { |
| 74 | + border-bottom-right-radius: 3px; |
| 75 | + border-bottom-left-radius: 3px; |
| 76 | +} |
| 77 | + |
| 78 | +.AriaMenuButton-menuItem:hover, |
| 79 | +.AriaMenuButton-menuItem:focus { |
| 80 | + background-color: #4183C4; |
| 81 | + color: #fff; |
| 82 | +} |
| 83 | + |
| 84 | +.AriaMenuButton-menuItem.is-selected { |
| 85 | + cursor: default; |
| 86 | + font-weight: bold; |
| 87 | +} |
0 commit comments