PluginProbe
Code Snippets / trunk
Code Snippets vtrunk
4.0.0-beta.2 3.10.2 3.10.1 3.10.0 3.10.0-beta.2 3.10.0-beta.1 4.0.0-beta.1 3.9.6 trunk 2.10.0 2.10.1 2.12.0 2.12.1 2.13.0 2.13.1 2.13.2 2.13.3 2.14.0 2.14.1 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 3.0.0 All 65 releases
code-snippets / css / edit / _sidebar.scss

_sidebar.scss in Code Snippets trunk, at css/edit/_sidebar.scss

253 lines 4.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @use '../common/theme';
2
3 .snippet-priority {
4 .priority-input-tooltip {
5 margin-inline-end: auto;
6 }
7
8 input {
9 inline-size: 4em;
10 }
11 }
12
13 .code-snippets-copy-text.button {
14 display: flex;
15 align-items: center;
16 gap: 3px;
17
18 .dashicons {
19 block-size: 18px;
20 inline-size: 18px;
21 font-size: 18px;
22 }
23
24 .spinner-wrapper {
25 block-size: 18px;
26 inline-size: 18px;
27 display: flex;
28 align-items: center;
29 }
30
31 .components-spinner {
32 block-size: 12px;
33 }
34 }
35
36 .activation-switch-container {
37 inline-size: 100%;
38 display: flex;
39 flex-flow: row;
40 gap: 5px;
41 justify-content: center;
42 align-items: center;
43
44 label {
45 font-size: 13px;
46 font-weight: 600;
47 }
48
49 span:first-of-type {
50 margin-inline-start: auto;
51 }
52 }
53
54 .snippet-editor-sidebar {
55 .button-large {
56 block-size: 48px;
57 }
58
59 .box {
60 background-color: var(--cs-color-surface);
61 border: 1px solid var(--cs-color-border);
62 border-radius: 5px;
63 padding: 0;
64 display: flex;
65 flex-flow: column;
66 gap: 0;
67 overflow: hidden;
68
69 > * {
70 box-sizing: border-box;
71 padding: 24px;
72 border-block-end: 1px solid var(--cs-color-border);
73 }
74
75 > :last-child {
76 border-block-end: 0;
77 }
78
79 .inline-form-field {
80 display: flex;
81 flex-flow: row wrap;
82 justify-content: space-between;
83 align-items: center;
84 gap: 5px;
85 }
86
87 .block-form-field {
88 display: flex;
89 flex-flow: column;
90 gap: 4px;
91 }
92 }
93
94 label {
95 font-size: 13px;
96 font-weight: 600;
97 }
98
99 .activation-switch-container {
100 label,
101 .status-text {
102 font-size: 16px;
103 line-height: 24px;
104 }
105 }
106
107 .snippet-editor-sidebar-settings {
108 display: flex;
109 flex-flow: column;
110 gap: 24px;
111
112 .conditions-editor-open {
113 gap: 16px;
114
115 .conditions-editor-header {
116 margin-block-end: 0;
117
118 strong {
119 font-size: 16px;
120 line-height: 24px;
121 }
122 }
123 }
124
125 label {
126 font-size: 16px;
127 line-height: 24px;
128 }
129
130 .code-snippets-select-location {
131 inline-size: 100%;
132 }
133 }
134
135 .inline-form-field.row-actions {
136 display: grid;
137 grid-template-columns: repeat(2, minmax(0, 1fr));
138 align-items: stretch;
139 gap: 12px;
140
141 .snippet-export-buttons {
142 display: contents;
143 }
144
145 .snippet-lock-control {
146 display: flex;
147 min-inline-size: 0;
148
149 > .snippet-lock-control {
150 inline-size: 100%;
151 display: flex;
152 }
153 }
154
155 .button {
156 block-size: 48px;
157 min-block-size: 48px;
158 inline-size: 100%;
159 min-inline-size: 0;
160 padding: 0 12px;
161 border: 1px solid var(--cs-color-accent);
162 border-radius: var(--cs-control-radius);
163 background: transparent;
164 box-shadow: none;
165 color: var(--cs-color-accent);
166 font-weight: 400;
167 display: inline-flex;
168 justify-content: center;
169 align-items: center;
170 gap: 8px;
171
172 .dashicons {
173 block-size: 20px;
174 inline-size: 20px;
175 color: inherit;
176 font-size: 20px;
177 line-height: 1;
178 vertical-align: middle;
179 }
180
181 &:hover:not(:disabled),
182 &:focus:not(:disabled),
183 &:active:not(:disabled) {
184 background: #f6f7f7;
185 border-color: var(--cs-color-accent);
186 box-shadow: none;
187 color: var(--cs-color-accent-hover);
188 }
189 }
190
191 .delete-button {
192 border-color: #cc1818;
193 color: #cc1818;
194
195 &:disabled {
196 border-color: #a7aaad;
197 color: var(--cs-color-text-disabled);
198 cursor: not-allowed;
199 }
200
201 &:hover:not(:disabled),
202 &:focus:not(:disabled),
203 &:active:not(:disabled) {
204 border-color: #9e1313;
205 color: #9e1313;
206 }
207 }
208 }
209
210 .help-tooltip {
211 margin-block: 0;
212 margin-inline: 5px auto;
213 }
214
215 .beta-badge {
216 color: var(--cs-color-accent);
217 border: 1px solid currentcolor;
218 margin-inline-start: auto;
219 }
220
221 .components-form-token-field {
222 inline-size: 100%;
223 }
224
225 .generate-button {
226 margin-inline-start: auto;
227 }
228 }
229
230 p.submit {
231 display: flex;
232 flex-flow: column;
233 gap: 8px;
234 margin-block-start: 17px;
235 padding-block-start: 0;
236 }
237
238 .shortcode-tag-wrapper {
239 background: var(--cs-color-surface);
240 min-block-size: 54px;
241 display: flex;
242 align-items: center;
243 justify-content: space-between;
244 padding: 10px;
245 box-sizing: border-box;
246
247 code {
248 background: transparent;
249 padding-inline: 0.5em;
250 text-indent: -0.5em;
251 }
252 }
253