flyout.css
199 lines
| 1 | #mlp-flyout { |
| 2 | position: fixed; |
| 3 | z-index: 100049; |
| 4 | transition: all 0.3s ease-in-out; |
| 5 | right: 40px; |
| 6 | bottom: 40px; |
| 7 | opacity: 1; |
| 8 | will-change: transform, opacity; |
| 9 | } |
| 10 | |
| 11 | #mlp-overlay { |
| 12 | background: #000; |
| 13 | opacity: 0.4; |
| 14 | filter: alpha(opacity=40); |
| 15 | position: fixed; |
| 16 | top: 0; |
| 17 | right: 0; |
| 18 | bottom: 0; |
| 19 | left: 0; |
| 20 | display: none; |
| 21 | z-index: 100049; |
| 22 | } |
| 23 | |
| 24 | #mlp-flyout a:focus { |
| 25 | outline: none; |
| 26 | box-shadow: none; |
| 27 | } |
| 28 | |
| 29 | #mlp-flyout #mlp-elements-button { |
| 30 | display: block; |
| 31 | } |
| 32 | |
| 33 | #mlp-flyout #mlp-elements-image-wrapper { |
| 34 | border: 3px solid #000000; |
| 35 | border-radius: 50%; |
| 36 | padding: 0; |
| 37 | display: block; |
| 38 | overflow: hidden; |
| 39 | background: #000000; |
| 40 | box-shadow: 0 3px 20px rgba(0, 0, 0, 0.2); |
| 41 | } |
| 42 | |
| 43 | #mlp-flyout #mlp-elements-button img { |
| 44 | width: 55px; |
| 45 | height: 55px; |
| 46 | display: block; |
| 47 | overflow: hidden; |
| 48 | padding: 2px; |
| 49 | box-sizing: border-box; |
| 50 | position: relative; |
| 51 | top: 4px; |
| 52 | } |
| 53 | |
| 54 | #mlp-flyout #mlp-elements-button:hover #mlp-elements-image-wrapper { |
| 55 | box-shadow: 0 3px 30px rgba(0, 0, 0, 0.25); |
| 56 | } |
| 57 | |
| 58 | #mlp-flyout:not(.opened) #mlp-elements-button:hover .mlp-elements-label { |
| 59 | opacity: 1; |
| 60 | margin-right: 0; |
| 61 | } |
| 62 | |
| 63 | #mlp-flyout .mlp-elements-label { |
| 64 | position: absolute; |
| 65 | display: block; |
| 66 | top: 50%; |
| 67 | right: calc(100% + 25px); |
| 68 | transform: translateY(-50%) scale(1); |
| 69 | -moz-transform: translateY(-50%); |
| 70 | -webkit-transform: translateY(-50%); |
| 71 | color: #fff; |
| 72 | background: #444 0 0 no-repeat padding-box; |
| 73 | font-size: 14px; |
| 74 | white-space: nowrap; |
| 75 | padding: 5px 10px; |
| 76 | height: auto !important; |
| 77 | line-height: initial; |
| 78 | transition: all 0.2s ease-out; |
| 79 | border-radius: 3px; |
| 80 | -moz-border-radius: 3px; |
| 81 | -webkit-border-radius: 3px; |
| 82 | opacity: 0; |
| 83 | margin-right: -50px; |
| 84 | } |
| 85 | |
| 86 | #mlp-flyout .mlp-elements-icon { |
| 87 | width: 40px; |
| 88 | height: 40px; |
| 89 | vertical-align: middle; |
| 90 | line-height: 60px; |
| 91 | text-align: center; |
| 92 | } |
| 93 | |
| 94 | #mlp-flyout .mlp-elements-icon img { |
| 95 | max-width: 70%; |
| 96 | filter: brightness(100); |
| 97 | } |
| 98 | |
| 99 | #mlp-flyout .mlp-elements-label.visible { |
| 100 | opacity: 1; |
| 101 | } |
| 102 | |
| 103 | #mlp-flyout .mlp-elements-menu-item { |
| 104 | position: absolute; |
| 105 | left: 10px; |
| 106 | width: 40px; |
| 107 | height: 40px; |
| 108 | opacity: 0; |
| 109 | visibility: hidden; |
| 110 | transform: scale(0); |
| 111 | border-radius: 50%; |
| 112 | box-shadow: 0 3px 20px rgba(0, 0, 0, 0.2); |
| 113 | background: #1c3aa9; |
| 114 | text-align: center; |
| 115 | vertical-align: middle; |
| 116 | text-decoration: none; |
| 117 | transition-timing-function: ease-in-out; |
| 118 | will-change: transform, opacity; |
| 119 | } |
| 120 | |
| 121 | #mlp-flyout .mlp-elements-menu-item.accent { |
| 122 | background: #ca4a1f; |
| 123 | } |
| 124 | |
| 125 | #mlp-flyout.opened .mlp-elements-menu-item { |
| 126 | opacity: 1; |
| 127 | visibility: visible; |
| 128 | transform: scale(1); |
| 129 | } |
| 130 | |
| 131 | #mlp-flyout .mlp-elements-menu-item:hover { |
| 132 | box-shadow: 0 3px 30px rgba(0, 0, 0, 0.25); |
| 133 | } |
| 134 | |
| 135 | #mlp-flyout .mlp-elements-menu-item:hover .mlp-elements-label { |
| 136 | right: calc(100% + 55px); |
| 137 | } |
| 138 | |
| 139 | #mlp-flyout .mlp-elements-menu-item .mlp-elements-label { |
| 140 | right: calc(100% + 70px); |
| 141 | } |
| 142 | |
| 143 | #mlp-flyout .mlp-elements-menu-item .dashicons { |
| 144 | line-height: 41px; |
| 145 | font-size: 23px; |
| 146 | color: #fff; |
| 147 | padding: 0px 3px 0px 0; |
| 148 | } |
| 149 | |
| 150 | .mlp-elements-menu-item-1 { |
| 151 | bottom: 75px; |
| 152 | transition: transform 0.2s 30ms, background-color 0.2s; |
| 153 | } |
| 154 | |
| 155 | .mlp-elements-menu-item-2 { |
| 156 | bottom: 130px; |
| 157 | transition: transform 0.2s 70ms, background-color 0.2s; |
| 158 | } |
| 159 | |
| 160 | .mlp-elements-menu-item-3 { |
| 161 | bottom: 185px; |
| 162 | transition: transform 0.2s 110ms, background-color 0.2s; |
| 163 | } |
| 164 | |
| 165 | .mlp-elements-menu-item-4 { |
| 166 | bottom: 240px; |
| 167 | transition: transform 0.2s 150ms, background-color 0.2s; |
| 168 | } |
| 169 | |
| 170 | .mlp-elements-menu-item-5 { |
| 171 | bottom: 295px; |
| 172 | transition: transform 0.2s 190ms, background-color 0.2s; |
| 173 | } |
| 174 | |
| 175 | .mlp-elements-menu-item-6 { |
| 176 | bottom: 350px; |
| 177 | transition: transform 0.2s 230ms, background-color 0.2s; |
| 178 | } |
| 179 | |
| 180 | .mlp-elements-menu-item-7 { |
| 181 | bottom: 405px; |
| 182 | transition: transform 0.2s 270ms, background-color 0.2s; |
| 183 | } |
| 184 | |
| 185 | .mlp-elements-menu-item-8 { |
| 186 | bottom: 460px; |
| 187 | transition: transform 0.2s 310ms, background-color 0.2s; |
| 188 | } |
| 189 | |
| 190 | .mlp-elements-menu-item-9 { |
| 191 | bottom: 515px; |
| 192 | transition: transform 0.2s 350ms, background-color 0.2s; |
| 193 | } |
| 194 | |
| 195 | .mlp-elements-menu-item-10 { |
| 196 | bottom: 570px; |
| 197 | transition: transform 0.2s 390ms, background-color 0.2s; |
| 198 | } |
| 199 |