| 1 |
// Quick acton bar Editor CSS. |
| 2 |
.srfm-ee-quick-access-container { |
| 3 |
z-index: 999999; |
| 4 |
} |
| 5 |
.srfm-ee-quick-access { |
| 6 |
// This is applied to the element directly inside the interface skeleton body. |
| 7 |
display: flex; |
| 8 |
height: auto; |
| 9 |
width: 60px; |
| 10 |
background: #1e1e1e; |
| 11 |
color: #fff; |
| 12 |
justify-content: center; |
| 13 |
|
| 14 |
.srfm-ee-quick-access__sidebar--tabs-container { |
| 15 |
position: fixed; |
| 16 |
bottom: 35px; |
| 17 |
} |
| 18 |
|
| 19 |
.srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block--icon { |
| 20 |
fill: #fff; |
| 21 |
} |
| 22 |
|
| 23 |
// The sidebar inside the Quick Access area. |
| 24 |
&__sidebar { |
| 25 |
width: 60px; |
| 26 |
height: 100%; |
| 27 |
background: #1e1e1e; |
| 28 |
display: flex; |
| 29 |
flex-direction: column; |
| 30 |
position: absolute; |
| 31 |
overflow: auto; |
| 32 |
|
| 33 |
::-webkit-scrollbar { |
| 34 |
width: 0; |
| 35 |
background: transparent; |
| 36 |
} |
| 37 |
|
| 38 |
// The block buttons area. |
| 39 |
&--blocks, |
| 40 |
&--actions { |
| 41 |
display: flex; |
| 42 |
flex-direction: column; |
| 43 |
justify-content: flex-start; |
| 44 |
align-items: center; |
| 45 |
overflow-y: overlay; |
| 46 |
overflow-x: hidden; |
| 47 |
cursor: pointer; |
| 48 |
max-height: calc( 100vh - 212px ); |
| 49 |
flex-grow: 1; |
| 50 |
|
| 51 |
// Scrolling will need to be added in the future. |
| 52 |
&--block { |
| 53 |
display: flex; |
| 54 |
cursor: grab; |
| 55 |
border-radius: 6px; |
| 56 |
gap: 8px; |
| 57 |
padding: 12px; |
| 58 |
|
| 59 |
&--icon { |
| 60 |
display: flex; |
| 61 |
width: 24px; |
| 62 |
height: 24px; |
| 63 |
justify-content: center; |
| 64 |
align-items: center; |
| 65 |
|
| 66 |
&--name { |
| 67 |
display: flex; |
| 68 |
flex-direction: row; |
| 69 |
align-content: center; |
| 70 |
justify-content: center; |
| 71 |
align-items: center; |
| 72 |
|
| 73 |
.components-popover__content { |
| 74 |
background: none; |
| 75 |
border: none; |
| 76 |
box-shadow: none; |
| 77 |
width: auto; |
| 78 |
} |
| 79 |
|
| 80 |
.block-title { |
| 81 |
display: flex; |
| 82 |
align-content: center; |
| 83 |
justify-content: center; |
| 84 |
align-items: center; |
| 85 |
font-size: 14px; |
| 86 |
border-radius: 4px; |
| 87 |
margin-right: 20px; |
| 88 |
margin-left: 15px; |
| 89 |
background: #1e1e1e; |
| 90 |
color: #fff; |
| 91 |
padding: 5px 10px; |
| 92 |
cursor: pointer; |
| 93 |
|
| 94 |
.srfm-ee-quick-access__sidebar--blocks--block--name { |
| 95 |
padding-right: 4px; |
| 96 |
|
| 97 |
.block-title-svg { |
| 98 |
cursor: pointer; |
| 99 |
margin-top: 5px; |
| 100 |
width: 15px; |
| 101 |
height: 15px; |
| 102 |
} |
| 103 |
} |
| 104 |
} |
| 105 |
} |
| 106 |
} |
| 107 |
|
| 108 |
span:not( .dashicon ) { |
| 109 |
display: none; |
| 110 |
} |
| 111 |
|
| 112 |
&:hover { |
| 113 |
span:not( .dashicon ) { |
| 114 |
display: none; |
| 115 |
} |
| 116 |
|
| 117 |
background: #1d2939; |
| 118 |
} |
| 119 |
} |
| 120 |
} |
| 121 |
|
| 122 |
// The sidebar actions area. |
| 123 |
&--actions { |
| 124 |
cursor: pointer; |
| 125 |
position: relative; |
| 126 |
bottom: 6px; |
| 127 |
left: 0; |
| 128 |
margin-top: 10px; |
| 129 |
|
| 130 |
.srfm-quick-action-sidebar-wrap { |
| 131 |
#plus-icon, |
| 132 |
#rearrange-icon { |
| 133 |
display: flex; |
| 134 |
align-content: center; |
| 135 |
justify-content: center; |
| 136 |
align-items: center; |
| 137 |
padding: 12px 12px; |
| 138 |
flex-direction: column; |
| 139 |
} |
| 140 |
} |
| 141 |
} |
| 142 |
|
| 143 |
&--tab { |
| 144 |
display: inline-block; |
| 145 |
cursor: pointer; |
| 146 |
} |
| 147 |
|
| 148 |
&--tabs { |
| 149 |
display: flex; |
| 150 |
flex-direction: column; |
| 151 |
|
| 152 |
.tab.active { |
| 153 |
#plus-icon, |
| 154 |
#rearrange-icon { |
| 155 |
background-color: #1d2939; |
| 156 |
color: #fff; |
| 157 |
} |
| 158 |
} |
| 159 |
} |
| 160 |
} |
| 161 |
} |
| 162 |
.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__view-mode-toggle.components-button { |
| 163 |
border-bottom: #1e1e1e; |
| 164 |
} |
| 165 |
|
| 166 |
.srfm-quick-action-block-popover { |
| 167 |
margin-left: 15px; |
| 168 |
|
| 169 |
::-webkit-scrollbar { |
| 170 |
width: 0; |
| 171 |
background: transparent; |
| 172 |
} |
| 173 |
|
| 174 |
.components-popover__content { |
| 175 |
width: 348px; |
| 176 |
height: 279px; |
| 177 |
background: #fff; |
| 178 |
padding: 16px; |
| 179 |
border-radius: 6px; |
| 180 |
gap: 16px; |
| 181 |
|
| 182 |
.srfm-quick-action-block-popover-search { |
| 183 |
input.components-search-control__input { |
| 184 |
width: 316px; |
| 185 |
height: 40px; |
| 186 |
padding: 10px 14px; |
| 187 |
border-radius: 4px; |
| 188 |
border: 1px solid #007cba; |
| 189 |
background: #fff; |
| 190 |
|
| 191 |
&:focus { |
| 192 |
border: 1px solid #007cba; |
| 193 |
box-shadow: none; |
| 194 |
} |
| 195 |
|
| 196 |
&::placeholder { |
| 197 |
color: #aaa; |
| 198 |
font-size: 12px; |
| 199 |
font-weight: 500; |
| 200 |
} |
| 201 |
} |
| 202 |
|
| 203 |
svg { |
| 204 |
fill: #aaa; |
| 205 |
} |
| 206 |
} |
| 207 |
|
| 208 |
.srfm-block-container { |
| 209 |
display: flex; |
| 210 |
flex-wrap: wrap; |
| 211 |
overflow: hidden; |
| 212 |
flex-direction: row; |
| 213 |
align-items: stretch; |
| 214 |
|
| 215 |
.srfm-quick-action-block-popover-header { |
| 216 |
&__already-present-in-quick-action-bar, |
| 217 |
&__add-to-quick-action-bar { |
| 218 |
width: 316px; |
| 219 |
padding: 16px 0 8px 0; |
| 220 |
|
| 221 |
.block-editor-inserter__panel-title { |
| 222 |
color: #50575e; |
| 223 |
font-size: 13px; |
| 224 |
font-weight: 400; |
| 225 |
text-transform: capitalize; |
| 226 |
} |
| 227 |
} |
| 228 |
} |
| 229 |
|
| 230 |
.srfm-block-wrap { |
| 231 |
margin: 0; |
| 232 |
display: flex; |
| 233 |
flex-direction: column; |
| 234 |
align-items: center; |
| 235 |
justify-content: center; |
| 236 |
position: relative; |
| 237 |
transition: all 0.05s ease-in-out; |
| 238 |
align-content: stretch; |
| 239 |
width: 105.33px; |
| 240 |
height: 100px; |
| 241 |
border-radius: 4px; |
| 242 |
|
| 243 |
.srfm-ee-quick-access__sidebar--blocks--block--icon { |
| 244 |
width: 64px; |
| 245 |
height: 48px; |
| 246 |
padding: 12px 20px; |
| 247 |
gap: 10px; |
| 248 |
} |
| 249 |
|
| 250 |
svg.uagb-editor-icons { |
| 251 |
rect, |
| 252 |
path { |
| 253 |
stroke: #0063a1; |
| 254 |
} |
| 255 |
} |
| 256 |
|
| 257 |
.block-title { |
| 258 |
color: #1e1e1e; |
| 259 |
text-align: center; |
| 260 |
width: 57px; |
| 261 |
height: 28px; |
| 262 |
padding: 4px 0 8px 0; |
| 263 |
gap: 10px; |
| 264 |
font-size: 12px; |
| 265 |
line-height: 16px; |
| 266 |
letter-spacing: 0; |
| 267 |
} |
| 268 |
|
| 269 |
&:hover { |
| 270 |
&::after { |
| 271 |
background: #007cba; |
| 272 |
content: ""; |
| 273 |
border-radius: 2px; |
| 274 |
bottom: 0; |
| 275 |
left: 0; |
| 276 |
opacity: 0.04; |
| 277 |
pointer-events: none; |
| 278 |
position: absolute; |
| 279 |
right: 0; |
| 280 |
top: 0; |
| 281 |
} |
| 282 |
.block-title { |
| 283 |
color: #007cba; |
| 284 |
filter: brightness( 0.95 ); |
| 285 |
} |
| 286 |
} |
| 287 |
} |
| 288 |
|
| 289 |
.block-editor-inserter__no-results { |
| 290 |
padding: 50px 105px; |
| 291 |
} |
| 292 |
} |
| 293 |
} |
| 294 |
} |
| 295 |
|
| 296 |
.components-popover__fallback-container { |
| 297 |
svg.block-title-svg { |
| 298 |
width: 10px; |
| 299 |
height: 10px; |
| 300 |
fill: #fff; |
| 301 |
&:hover { |
| 302 |
fill: #f00; |
| 303 |
} |
| 304 |
} |
| 305 |
} |
| 306 |
|
| 307 |
.edit-site-layout__canvas { |
| 308 |
.srfm-ee-quick-access__sidebar { |
| 309 |
padding-top: 1px; |
| 310 |
} |
| 311 |
} |
| 312 |
|
| 313 |
div#widgets-editor { |
| 314 |
.srfm-ee-quick-access__sidebar--blocks, |
| 315 |
.srfm-ee-quick-access__sidebar--actions { |
| 316 |
max-height: calc( 100vh - 180px ); |
| 317 |
} |
| 318 |
} |
| 319 |
|
| 320 |
.srfm-ee-quick-access-container { |
| 321 |
.srfm-ee-quick-access__sidebar { |
| 322 |
.srfm-ee-quick-access__sidebar--blocks { |
| 323 |
.srfm-ee-quick-access__sidebar--blocks--block { |
| 324 |
.srfm-ee-quick-access__sidebar--blocks--block--icon { |
| 325 |
&.srfm-ee-quick-access__sidebar-icon { |
| 326 |
&__core, |
| 327 |
&__wcfb, |
| 328 |
&__wpsp { |
| 329 |
svg { |
| 330 |
path, |
| 331 |
rect, |
| 332 |
circle { |
| 333 |
fill: #fff; |
| 334 |
stroke-width: 1.4px; |
| 335 |
} |
| 336 |
} |
| 337 |
} |
| 338 |
|
| 339 |
&__woocommerce { |
| 340 |
&--cart, |
| 341 |
&--checkout, |
| 342 |
&--mini-cart-contents, |
| 343 |
&--product-top-rated, |
| 344 |
&--store-notices, |
| 345 |
&--featured-category, |
| 346 |
&--active-filters { |
| 347 |
svg { |
| 348 |
path:first-child { |
| 349 |
fill: none; |
| 350 |
} |
| 351 |
} |
| 352 |
} |
| 353 |
|
| 354 |
svg { |
| 355 |
path, |
| 356 |
rect, |
| 357 |
circle { |
| 358 |
fill: #fff; |
| 359 |
stroke-width: 1.4px; |
| 360 |
} |
| 361 |
} |
| 362 |
} |
| 363 |
|
| 364 |
&__jetpack { |
| 365 |
&--gif, |
| 366 |
&--map, |
| 367 |
&--markdown { |
| 368 |
path:last-child { |
| 369 |
fill: #fff; |
| 370 |
} |
| 371 |
} |
| 372 |
|
| 373 |
&--business-hours, |
| 374 |
&--button, |
| 375 |
&--calendly, |
| 376 |
&--contact-info, |
| 377 |
&--donations, |
| 378 |
&--eventbrite, |
| 379 |
&--google-calendar, |
| 380 |
&--image-compare, |
| 381 |
&--like, |
| 382 |
&--opentable, |
| 383 |
&--pinterest, |
| 384 |
&--podcast-player, |
| 385 |
&--rating-star, |
| 386 |
&--repeat-visitor, |
| 387 |
&--send-a-message, |
| 388 |
&--slideshow, |
| 389 |
&--story, |
| 390 |
&--tiled-gallery, |
| 391 |
&--tock, |
| 392 |
&--payments-intro, |
| 393 |
&--blogroll, |
| 394 |
&--nextdoor, |
| 395 |
&--sharing-buttons { |
| 396 |
svg { |
| 397 |
path, |
| 398 |
rect, |
| 399 |
circle { |
| 400 |
fill: #fff; |
| 401 |
stroke-width: 1.4px; |
| 402 |
} |
| 403 |
} |
| 404 |
} |
| 405 |
} |
| 406 |
|
| 407 |
&__premium-content { |
| 408 |
&--container, |
| 409 |
&--buttons, |
| 410 |
&--login-button { |
| 411 |
svg { |
| 412 |
path, |
| 413 |
rect, |
| 414 |
circle { |
| 415 |
fill: #fff; |
| 416 |
stroke-width: 1.4px; |
| 417 |
} |
| 418 |
} |
| 419 |
} |
| 420 |
} |
| 421 |
|
| 422 |
&__mailpoet { |
| 423 |
svg { |
| 424 |
path, |
| 425 |
rect, |
| 426 |
circle { |
| 427 |
fill: #fff; |
| 428 |
stroke-width: 1.4px; |
| 429 |
} |
| 430 |
} |
| 431 |
} |
| 432 |
|
| 433 |
&__surecart { |
| 434 |
svg { |
| 435 |
path, |
| 436 |
rect, |
| 437 |
circle { |
| 438 |
fill: #fff; |
| 439 |
stroke-width: 1.4px; |
| 440 |
} |
| 441 |
} |
| 442 |
|
| 443 |
&--cart-menu-icon, |
| 444 |
&--order-confirmation, |
| 445 |
&--cart { |
| 446 |
svg { |
| 447 |
path, |
| 448 |
rect, |
| 449 |
circle { |
| 450 |
fill: none; |
| 451 |
stroke-width: 1.4px; |
| 452 |
} |
| 453 |
} |
| 454 |
} |
| 455 |
} |
| 456 |
} |
| 457 |
} |
| 458 |
} |
| 459 |
} |
| 460 |
} |
| 461 |
} |
| 462 |
|
| 463 |
.srfm-ee-quick-access__sidebar--blocks-sortable { |
| 464 |
display: flex; |
| 465 |
flex-direction: column; |
| 466 |
overflow: auto; /* Prevent horizontal scrolling */ |
| 467 |
|
| 468 |
&--block { |
| 469 |
margin-bottom: 10px; /* Adjust as needed */ |
| 470 |
} |
| 471 |
} |
| 472 |
|
| 473 |
.srfm-ee-quick-access__sidebar--prevent-editor-interactions { |
| 474 |
pointer-events: none; |
| 475 |
} |
| 476 |
|
| 477 |
/** |
| 478 |
* WP 7.1 Distraction Free mode. |
| 479 |
* |
| 480 |
* The quick-action sidebar is a fixed element inserted into |
| 481 |
* `.interface-interface-skeleton__body`, so core's distraction-free chrome |
| 482 |
* hiding never reaches it and it lingers as a floating artifact. Hide it while |
| 483 |
* distraction-free is active; toggling the mode off restores it. |
| 484 |
*/ |
| 485 |
.is-distraction-free .srfm-ee-quick-access-container { |
| 486 |
display: none; |
| 487 |
} |
| 488 |
|