| 1 |
/** |
| 2 |
* Styles for the edit snippet admin page. |
| 3 |
*/ |
| 4 |
|
| 5 |
@use 'common/direction'; |
| 6 |
@use 'common/codemirror'; |
| 7 |
@use 'common/badges'; |
| 8 |
@use 'common/switch'; |
| 9 |
@use 'common/select'; |
| 10 |
@use 'common/tooltips'; |
| 11 |
@use 'common/modal'; |
| 12 |
@use 'common/upsell'; |
| 13 |
@use 'common/toolbar'; |
| 14 |
@use 'common/wp-admin'; |
| 15 |
@use 'common/list-table'; |
| 16 |
@use 'edit/form'; |
| 17 |
@use 'edit/sidebar'; |
| 18 |
@use 'edit/editor'; |
| 19 |
@use 'edit/notices'; |
| 20 |
@use 'edit/conditions'; |
| 21 |
@use 'edit/gpt'; |
| 22 |
|
| 23 |
.banner.error blockquote { |
| 24 |
margin-block-end: 0; |
| 25 |
} |
| 26 |
|
| 27 |
.button svg { |
| 28 |
block-size: 1rem; |
| 29 |
vertical-align: middle; |
| 30 |
line-height: 1; |
| 31 |
margin: 0; |
| 32 |
} |
| 33 |
|
| 34 |
#adminmenu a.code-snippets-edit-menu-link { |
| 35 |
cursor: pointer; |
| 36 |
} |
| 37 |
|
| 38 |
.snippet-description-container { |
| 39 |
label { |
| 40 |
font-size: 1.16em; |
| 41 |
font-weight: 600; |
| 42 |
text-transform: unset; |
| 43 |
} |
| 44 |
|
| 45 |
.wp-editor-tools { |
| 46 |
padding-block-start: 5px; |
| 47 |
} |
| 48 |
|
| 49 |
.wp-editor-tabs { |
| 50 |
float: inline-start; |
| 51 |
} |
| 52 |
|
| 53 |
.generate-button { |
| 54 |
float: inline-end; |
| 55 |
margin-block-start: 37px; |
| 56 |
z-index: 99; |
| 57 |
position: relative; |
| 58 |
} |
| 59 |
} |
| 60 |
|
| 61 |
.snippet-tags-container { |
| 62 |
.components-form-token-field__input-container { |
| 63 |
background: #fff; |
| 64 |
border-color: #c3c4c7; |
| 65 |
|
| 66 |
> .components-flex { |
| 67 |
padding: 12px; |
| 68 |
} |
| 69 |
} |
| 70 |
} |
| 71 |
|
| 72 |
.above-snippet-code { |
| 73 |
margin-block: 0 15px; |
| 74 |
display: flex; |
| 75 |
align-items: center; |
| 76 |
margin-inline: 0; |
| 77 |
gap: 8px; |
| 78 |
|
| 79 |
label { |
| 80 |
font-size: 1.16em; |
| 81 |
font-weight: 600; |
| 82 |
} |
| 83 |
|
| 84 |
.expand-editor-button { |
| 85 |
display: flex; |
| 86 |
align-items: center; |
| 87 |
margin-inline-end: auto; |
| 88 |
gap: 5px; |
| 89 |
|
| 90 |
.dashicons { |
| 91 |
inline-size: 18px; |
| 92 |
block-size: 18px; |
| 93 |
font-size: 18px; |
| 94 |
} |
| 95 |
} |
| 96 |
} |
| 97 |
|
| 98 |
.wrap > h1:first-of-type { |
| 99 |
font-size: 1.5rem; |
| 100 |
font-weight: 400; |
| 101 |
line-height: 1.3; |
| 102 |
padding: 0; |
| 103 |
margin-block: 50px 1rem; |
| 104 |
} |
| 105 |
|
| 106 |
.snippet-name-wrapper { |
| 107 |
display: flex; |
| 108 |
gap: 0.5em; |
| 109 |
|
| 110 |
> :first-child { |
| 111 |
flex: 1; |
| 112 |
} |
| 113 |
} |
| 114 |
|
| 115 |
form.condition-snippet .snippet-code-container { |
| 116 |
display: none; |
| 117 |
} |
| 118 |
|