| 1 |
/** |
| 2 |
* Caddy Cart Block Editor Styles |
| 3 |
* |
| 4 |
* Styles for the block editor interface. |
| 5 |
* |
| 6 |
* @since 2.1.3 |
| 7 |
*/ |
| 8 |
|
| 9 |
.caddy-cart-block-preview { |
| 10 |
position: relative; |
| 11 |
} |
| 12 |
|
| 13 |
.caddy-cart-block-preview::before { |
| 14 |
content: ''; |
| 15 |
position: absolute; |
| 16 |
top: -10px; |
| 17 |
left: 50%; |
| 18 |
transform: translateX(-50%); |
| 19 |
background: #0073aa; |
| 20 |
color: white; |
| 21 |
padding: 4px 8px; |
| 22 |
border-radius: 3px; |
| 23 |
font-size: 11px; |
| 24 |
font-weight: 600; |
| 25 |
content: 'CADDY CART'; |
| 26 |
} |
| 27 |
|
| 28 |
.caddy-cart-block .caddy-cart-trigger { |
| 29 |
cursor: pointer; |
| 30 |
transition: all 0.2s ease; |
| 31 |
} |
| 32 |
|
| 33 |
.caddy-cart-block .caddy-cart-trigger:hover { |
| 34 |
transform: translateY(-1px); |
| 35 |
box-shadow: 0 2px 8px rgba(0,0,0,0.1); |
| 36 |
} |
| 37 |
|
| 38 |
/* Block category icon styling */ |
| 39 |
.block-editor-inserter__block-list .editor-block-list-item-caddy-cart .editor-block-list-item__icon { |
| 40 |
background: #0073aa; |
| 41 |
color: white; |
| 42 |
border-radius: 4px; |
| 43 |
} |
| 44 |
|
| 45 |
/* Inspector panel styling */ |
| 46 |
.components-panel__body h2.components-panel__body-title { |
| 47 |
font-size: 13px; |
| 48 |
font-weight: 600; |
| 49 |
} |
| 50 |
|
| 51 |
/* Toggle control enhancements */ |
| 52 |
.components-toggle-control .components-base-control__help { |
| 53 |
margin-top: 4px; |
| 54 |
font-size: 12px; |
| 55 |
color: #757575; |
| 56 |
} |