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