| 1 |
/** |
| 2 |
* Flex Posts - Block Editor Styles |
| 3 |
* |
| 4 |
* Layout selector styles for the block editor. |
| 5 |
* This file is only loaded in the admin/block editor context. |
| 6 |
*/ |
| 7 |
|
| 8 |
/** |
| 9 |
* Layout Selector Styles (Block Editor) |
| 10 |
*/ |
| 11 |
.flex-posts-layout-selector { |
| 12 |
margin-bottom: 16px; |
| 13 |
} |
| 14 |
|
| 15 |
.flex-posts-layout-selector__label { |
| 16 |
display: block; |
| 17 |
margin-bottom: 8px; |
| 18 |
font-size: 11px; |
| 19 |
font-weight: 500; |
| 20 |
line-height: 1.4; |
| 21 |
text-transform: uppercase; |
| 22 |
color: #1e1e1e; |
| 23 |
} |
| 24 |
|
| 25 |
.flex-posts-layout-selector__grid { |
| 26 |
display: grid; |
| 27 |
grid-template-columns: repeat(3, 1fr); |
| 28 |
gap: 8px; |
| 29 |
} |
| 30 |
|
| 31 |
.flex-posts-layout-btn { |
| 32 |
display: flex; |
| 33 |
align-items: center; |
| 34 |
justify-content: center; |
| 35 |
padding: 3px; |
| 36 |
background: #fff; |
| 37 |
border: 2px solid #ccc; |
| 38 |
border-radius: 4px; |
| 39 |
cursor: pointer; |
| 40 |
transition: all 0.15s ease; |
| 41 |
} |
| 42 |
|
| 43 |
.flex-posts-layout-btn:hover { |
| 44 |
border-color: #999; |
| 45 |
} |
| 46 |
|
| 47 |
.flex-posts-layout-btn.is-selected { |
| 48 |
border-color: var(--wp-admin-theme-color, #007cba); |
| 49 |
} |
| 50 |
|
| 51 |
.flex-posts-layout-btn:focus { |
| 52 |
outline: none; |
| 53 |
} |
| 54 |
|
| 55 |
.flex-posts-layout-preview { |
| 56 |
width: 100%; |
| 57 |
display: flex; |
| 58 |
align-items: center; |
| 59 |
justify-content: center; |
| 60 |
} |
| 61 |
|
| 62 |
.flex-posts-layout-selector__more-link { |
| 63 |
display: inline-block; |
| 64 |
margin-top: 8px; |
| 65 |
font-size: 12px; |
| 66 |
color: var(--wp-admin-theme-color, #007cba); |
| 67 |
text-decoration: none; |
| 68 |
} |
| 69 |
|
| 70 |
.flex-posts-layout-selector__more-link:hover { |
| 71 |
color: #005a87; |
| 72 |
text-decoration: underline; |
| 73 |
} |
| 74 |
|