| 1 |
@import '../node_modules/@jcubic/tagger/tagger.css'; |
| 2 |
@import 'common/editor'; |
| 3 |
@import 'common/type-badges'; |
| 4 |
|
| 5 |
/** |
| 6 |
* Custom styling for the single snippet admin page |
| 7 |
*/ |
| 8 |
|
| 9 |
.form-table th { |
| 10 |
width: auto; |
| 11 |
} |
| 12 |
|
| 13 |
.notice.error blockquote { |
| 14 |
margin-bottom: 0; |
| 15 |
} |
| 16 |
|
| 17 |
h2 { |
| 18 |
/* Provide some decent space between the fields and titles. */ |
| 19 |
margin: 25px 0 15px; |
| 20 |
|
| 21 |
label { |
| 22 |
cursor: auto; |
| 23 |
} |
| 24 |
} |
| 25 |
|
| 26 |
h2:first-of-type, .submit-inline { |
| 27 |
margin: 20px 0 10px; |
| 28 |
} |
| 29 |
|
| 30 |
.saved-snippet { |
| 31 |
&.inactive-snippet, &.active-snippet { |
| 32 |
#title { |
| 33 |
border-left-width: 4px; |
| 34 |
} |
| 35 |
} |
| 36 |
|
| 37 |
&.active-snippet #title { |
| 38 |
border-left-color: #46b450; |
| 39 |
} |
| 40 |
|
| 41 |
&.inactive-snippet #title { |
| 42 |
border-left-color: #bbb; |
| 43 |
} |
| 44 |
|
| 45 |
&.erroneous-snippet #title { |
| 46 |
border-left-color: #dc3232; |
| 47 |
} |
| 48 |
} |
| 49 |
|
| 50 |
#snippet-form { |
| 51 |
margin-top: 10px; |
| 52 |
|
| 53 |
#snippet-tags, textarea { |
| 54 |
width: 100%; |
| 55 |
font-family: monospace; |
| 56 |
} |
| 57 |
} |
| 58 |
|
| 59 |
/* Position the description heading on the same level as the editor buttons */ |
| 60 |
label[for='snippet_description']='snippet_description'] h3 div { |
| 61 |
position: absolute; |
| 62 |
} |
| 63 |
|
| 64 |
/* Add spacing in between the action buttons */ |
| 65 |
.button + .button, |
| 66 |
.generate-button + .button { |
| 67 |
margin-left: .5em; |
| 68 |
} |
| 69 |
|
| 70 |
h2 .button { |
| 71 |
font-weight: normal; |
| 72 |
} |
| 73 |
|
| 74 |
.button svg { |
| 75 |
height: 1rem; |
| 76 |
vertical-align: middle; |
| 77 |
line-height: 1; |
| 78 |
margin: -2px 3px 0 0; |
| 79 |
} |
| 80 |
|
| 81 |
.submit, .submit-inline { |
| 82 |
display: flex; |
| 83 |
} |
| 84 |
|
| 85 |
.submit-inline { |
| 86 |
float: right; |
| 87 |
margin-bottom: 0; |
| 88 |
} |
| 89 |
|
| 90 |
p.snippet-scope, .snippet-scope p { |
| 91 |
margin-top: 15px; |
| 92 |
} |
| 93 |
|
| 94 |
.snippet-description-container { |
| 95 |
margin-top: 25px; |
| 96 |
|
| 97 |
.wp-editor-tools { |
| 98 |
padding-top: 5px; |
| 99 |
} |
| 100 |
|
| 101 |
.wp-editor-tabs { |
| 102 |
float: left; |
| 103 |
} |
| 104 |
} |
| 105 |
|
| 106 |
.snippet-scope label, |
| 107 |
.html-shortcode-options strong { |
| 108 |
display: inline-block; |
| 109 |
margin-right: 1.5em; |
| 110 |
} |
| 111 |
|
| 112 |
.below-snippet-editor { |
| 113 |
display: flex; |
| 114 |
flex-flow: row wrap; |
| 115 |
justify-content: space-between; |
| 116 |
padding-top: 1px; |
| 117 |
} |
| 118 |
|
| 119 |
.snippet-priority { |
| 120 |
label { |
| 121 |
font-weight: bold; |
| 122 |
cursor: help; |
| 123 |
font-size: 1.1em; |
| 124 |
padding-right: 0.5em; |
| 125 |
} |
| 126 |
|
| 127 |
input { |
| 128 |
width: 4em; |
| 129 |
} |
| 130 |
} |
| 131 |
|
| 132 |
.snippet-editor { |
| 133 |
position: relative; |
| 134 |
} |
| 135 |
|
| 136 |
.CodeMirror { |
| 137 |
width: 100%; |
| 138 |
} |
| 139 |
|
| 140 |
.wrap h2.nav-tab-wrapper { |
| 141 |
border-bottom: none; |
| 142 |
} |
| 143 |
|
| 144 |
.code-snippets-copy-text { |
| 145 |
color: inherit; |
| 146 |
} |
| 147 |
|
| 148 |
.wrap .notice { |
| 149 |
scroll-margin: 0.75em; |
| 150 |
} |
| 151 |
|
| 152 |
@import 'edit/tooltips'; |
| 153 |
@import 'edit/types'; |
| 154 |
@import 'edit/tags'; |
| 155 |
@import 'edit/upgrade-dialog'; |
| 156 |
@import 'edit/gpt'; |
| 157 |
|