main.scss
307 lines
| 1 | .EVF-Free-Analytics { |
| 2 | background-color: #fff; |
| 3 | font-family: inherit; |
| 4 | padding: 24px 32px 16px; |
| 5 | |
| 6 | &__Filters { |
| 7 | display: flex; |
| 8 | align-items: center; |
| 9 | gap: 16px; |
| 10 | flex-wrap: wrap; |
| 11 | |
| 12 | > :first-child { |
| 13 | margin-left: -12px; |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | &__Actions { |
| 18 | display: flex; |
| 19 | align-items: center; |
| 20 | gap: 8px; |
| 21 | margin-left: auto; |
| 22 | } |
| 23 | |
| 24 | &__ActionBtn { |
| 25 | display: inline-flex; |
| 26 | align-items: center; |
| 27 | gap: 6px; |
| 28 | padding: 8px 14px; |
| 29 | font-size: 13px; |
| 30 | font-weight: 500; |
| 31 | color: #374151; |
| 32 | background-color: #fff; |
| 33 | border: 1px solid #d1d5db; |
| 34 | border-radius: 6px; |
| 35 | cursor: pointer; |
| 36 | transition: background-color 0.15s, border-color 0.15s; |
| 37 | font-family: inherit; |
| 38 | white-space: nowrap; |
| 39 | opacity: 0.75; |
| 40 | |
| 41 | svg { |
| 42 | flex-shrink: 0; |
| 43 | width: 15px; |
| 44 | height: 15px; |
| 45 | pointer-events: none; |
| 46 | |
| 47 | &:last-child { |
| 48 | width: 13px; |
| 49 | height: 13px; |
| 50 | color: #9ca3af; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | &:hover, |
| 55 | &:focus { |
| 56 | background-color: #f9fafb; |
| 57 | border-color: #9ca3af; |
| 58 | outline: none; |
| 59 | opacity: 1; |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | &__FilterTrigger { |
| 64 | display: inline-flex; |
| 65 | align-items: center; |
| 66 | gap: 8px; |
| 67 | padding: 10px 14px; |
| 68 | min-height: 42px; |
| 69 | font-size: 14px; |
| 70 | font-weight: 500; |
| 71 | line-height: 1.2rem; |
| 72 | border: 0; |
| 73 | box-shadow: none; |
| 74 | background-color: transparent; |
| 75 | color: #111827; |
| 76 | border-radius: 4px; |
| 77 | cursor: default; |
| 78 | user-select: none; |
| 79 | white-space: nowrap; |
| 80 | outline: none; |
| 81 | font-family: inherit; |
| 82 | |
| 83 | svg { |
| 84 | flex-shrink: 0; |
| 85 | pointer-events: none; |
| 86 | width: 20px; |
| 87 | height: 20px; |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | &__Metrics { |
| 92 | display: flex; |
| 93 | flex-wrap: wrap; |
| 94 | width: 100%; |
| 95 | margin-top: 16px; |
| 96 | } |
| 97 | |
| 98 | &__Metric { |
| 99 | flex: 1 1 0; |
| 100 | min-width: 0; |
| 101 | padding: 16px 24px; |
| 102 | border-bottom: 1px solid #e5e7eb; |
| 103 | border-right: 1px solid #e5e7eb; |
| 104 | |
| 105 | &:first-child { |
| 106 | padding-left: 0; |
| 107 | } |
| 108 | |
| 109 | &:last-child { |
| 110 | border-right: none; |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | &__MetricHeader { |
| 115 | display: flex; |
| 116 | align-items: center; |
| 117 | margin-bottom: 8px; |
| 118 | margin-left: -12px; |
| 119 | } |
| 120 | |
| 121 | &__MetricLabel { |
| 122 | display: inline-flex; |
| 123 | align-items: center; |
| 124 | gap: 8px; |
| 125 | padding: 10px 14px; |
| 126 | min-height: 42px; |
| 127 | font-size: 14px; |
| 128 | font-weight: 500; |
| 129 | line-height: 1.2rem; |
| 130 | border: 0; |
| 131 | box-shadow: none; |
| 132 | background-color: transparent; |
| 133 | color: #111827; |
| 134 | border-radius: 4px; |
| 135 | cursor: default; |
| 136 | user-select: none; |
| 137 | white-space: nowrap; |
| 138 | outline: none; |
| 139 | font-family: inherit; |
| 140 | |
| 141 | svg { |
| 142 | flex-shrink: 0; |
| 143 | pointer-events: none; |
| 144 | width: 20px; |
| 145 | height: 20px; |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | &__MetricValue { |
| 150 | font-size: 24px; |
| 151 | font-weight: 600; |
| 152 | color: #111827; |
| 153 | line-height: 1.5; |
| 154 | } |
| 155 | |
| 156 | &__MetricDelta { |
| 157 | display: inline-flex; |
| 158 | align-items: center; |
| 159 | gap: 2px; |
| 160 | font-weight: 500; |
| 161 | font-size: 14px; |
| 162 | margin-left: 8px; |
| 163 | color: #16a34a; |
| 164 | } |
| 165 | |
| 166 | &__MetricComparison { |
| 167 | font-size: 14px; |
| 168 | font-weight: 400; |
| 169 | color: #6b7280; |
| 170 | line-height: 1.5; |
| 171 | margin-top: 4px; |
| 172 | } |
| 173 | |
| 174 | &__Preview { |
| 175 | position: relative; |
| 176 | overflow: hidden; |
| 177 | margin-top: 20px; |
| 178 | } |
| 179 | |
| 180 | &__PreviewImage { |
| 181 | display: block; |
| 182 | width: 100%; |
| 183 | filter: blur(2px); |
| 184 | transform: scale(1.02); |
| 185 | transform-origin: top left; |
| 186 | user-select: none; |
| 187 | pointer-events: none; |
| 188 | } |
| 189 | |
| 190 | &__Overlay { |
| 191 | position: absolute; |
| 192 | top: 30%; |
| 193 | left: 50%; |
| 194 | transform: translate(-50%, -50%); |
| 195 | background-color: #fff; |
| 196 | border-radius: 16px; |
| 197 | box-shadow: 0 8px 48px rgba(0, 0, 0, 0.18); |
| 198 | padding: 56px 48px; |
| 199 | text-align: center; |
| 200 | max-width: 520px; |
| 201 | width: 90%; |
| 202 | z-index: 10; |
| 203 | } |
| 204 | |
| 205 | &__OverlayTitle { |
| 206 | font-size: 26px; |
| 207 | font-weight: 700; |
| 208 | color: #111827; |
| 209 | margin: 0 0 14px; |
| 210 | line-height: 1.3; |
| 211 | } |
| 212 | |
| 213 | &__OverlayText { |
| 214 | font-size: 15px; |
| 215 | color: #6b7280; |
| 216 | line-height: 1.7; |
| 217 | margin: 0 0 32px; |
| 218 | } |
| 219 | |
| 220 | &__UpgradeBtn { |
| 221 | display: inline-flex; |
| 222 | align-items: center; |
| 223 | gap: 8px; |
| 224 | padding: 12px 24px; |
| 225 | font-size: 16px; |
| 226 | font-weight: 500; |
| 227 | color: #fff; |
| 228 | background-color: #7545bb; |
| 229 | border: none; |
| 230 | border-radius: 4px; |
| 231 | text-decoration: none; |
| 232 | cursor: pointer; |
| 233 | transition: opacity 0.2s; |
| 234 | font-family: inherit; |
| 235 | |
| 236 | svg { |
| 237 | flex-shrink: 0; |
| 238 | pointer-events: none; |
| 239 | width: 16px; |
| 240 | height: 16px; |
| 241 | } |
| 242 | |
| 243 | &:hover, |
| 244 | &:focus { |
| 245 | opacity: 0.88; |
| 246 | color: #fff; |
| 247 | text-decoration: none; |
| 248 | } |
| 249 | |
| 250 | &:active { |
| 251 | opacity: 0.8; |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | &__ModalBackdrop { |
| 256 | position: fixed; |
| 257 | inset: 0; |
| 258 | background-color: rgba(0, 0, 0, 0.5); |
| 259 | display: flex; |
| 260 | align-items: center; |
| 261 | justify-content: center; |
| 262 | z-index: 99999; |
| 263 | } |
| 264 | |
| 265 | &__ModalBox { |
| 266 | position: relative; |
| 267 | background-color: #fff; |
| 268 | border-radius: 16px; |
| 269 | box-shadow: 0 8px 48px rgba(0, 0, 0, 0.18); |
| 270 | padding: 56px 48px; |
| 271 | text-align: center; |
| 272 | max-width: 520px; |
| 273 | width: 90%; |
| 274 | } |
| 275 | |
| 276 | &__ModalClose { |
| 277 | position: absolute; |
| 278 | top: 16px; |
| 279 | right: 20px; |
| 280 | background: none; |
| 281 | border: none; |
| 282 | font-size: 22px; |
| 283 | line-height: 1; |
| 284 | color: #6b7280; |
| 285 | cursor: pointer; |
| 286 | padding: 4px 8px; |
| 287 | border-radius: 4px; |
| 288 | |
| 289 | &:hover { |
| 290 | color: #111827; |
| 291 | background-color: #f3f4f6; |
| 292 | } |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | // ── Analytics page z-index fixes ────────────────────────────────────────────── |
| 297 | // Lower the React header stacking context so select dropdowns render above it. |
| 298 | .wp-admin.everest-forms_page_evf-analytics { |
| 299 | [data-radix-popper-content-wrapper]] { |
| 300 | z-index: 2147483647 !important; |
| 301 | } |
| 302 | |
| 303 | #evf-react-header-root > * { |
| 304 | z-index: 1 !important; |
| 305 | } |
| 306 | } |
| 307 |