PluginProbe
Code Snippets / 3.10.2
Code Snippets v3.10.2
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 3.10.2, at css/edit/_sidebar.scss

212 lines 3.8 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-weight: 600;
46 }
47
48 span:first-of-type {
49 margin-inline-start: auto;
50 }
51 }
52
53 .snippet-editor-sidebar {
54 .button-large {
55 block-size: 48px;
56 }
57
58 .box {
59 background-color: #fff;
60 border: 1px solid theme.$control-border;
61 border-radius: 4px;
62 padding: 1.5em;
63 display: flex;
64 flex-flow: column;
65 gap: 1em;
66
67 .inline-form-field {
68 display: flex;
69 flex-flow: row wrap;
70 justify-content: space-between;
71 align-items: center;
72 gap: 5px;
73 }
74
75 .block-form-field {
76 display: flex;
77 flex-flow: column;
78 gap: 4px;
79
80 }
81 }
82
83 .inline-form-field.row-actions {
84 display: flex;
85
86 // Keep the export/download, trash and lock controls on a single row; the
87 // base .inline-form-field sets `row wrap`, which would otherwise drop the
88 // lock control onto a second line in the narrow sidebar.
89 flex-wrap: nowrap;
90 gap: 0;
91
92 // Lay the export + download pair out inline too — the group is a plain
93 // block by default, so its two links would otherwise stack vertically.
94 .snippet-export-buttons {
95 display: flex;
96 flex-wrap: nowrap;
97 gap: 12px;
98 min-inline-size: 0;
99 }
100
101 // Row-action buttons render as plain inline links. Neutralise the generic `.button`
102 // WP 7.0 compatibility styling (fill/border/radius/40px height) here — emitted after
103 // the wp-admin layer at equal specificity, so it wins. Export/Download inherit the accent.
104 .button {
105 block-size: auto;
106 min-block-size: theme.$control-height;
107 padding-block: 0;
108 padding-inline: 8px;
109 font-weight: 400;
110 display: inline-flex;
111 justify-content: center;
112 align-items: center;
113
114 .dashicons {
115 color: inherit;
116 line-height: 1;
117 vertical-align: text-bottom;
118 }
119
120 &:not(.snippet-lock-button) {
121 border: 0;
122 border-radius: 0;
123 padding-inline: 0;
124 background: none;
125 box-shadow: none;
126
127 // WordPress paints a fill on disabled buttons with !important;
128 // keep the disabled trash flat like the rest of the row.
129 &:disabled {
130 background: none !important;
131 border: 0;
132 box-shadow: none;
133 }
134
135 &:hover:not(:disabled),
136 &:focus:not(:disabled),
137 &:active:not(:disabled) {
138 background: none;
139 border: 0;
140 box-shadow: none;
141 }
142 }
143 }
144
145 // Nested under `.row-actions` so the dark-red trash colour outranks the generic
146 // `.button` accent text colour from the wp-admin compatibility layer.
147 .delete-button {
148 color: #cc1818;
149
150 &:disabled {
151 color: #a7aaad;
152 cursor: not-allowed;
153 }
154
155 &:hover:not(:disabled) {
156 color: #9e1313;
157 }
158
159 &:focus:not(:disabled) {
160 color: #710d0d;
161 }
162 }
163 }
164
165 .help-tooltip {
166 margin-block: 0;
167 margin-inline: 5px auto;
168 }
169
170 label {
171 font-weight: 600;
172 }
173
174 .beta-badge {
175 color: theme.$accent;
176 border: 1px solid currentcolor;
177 margin-inline-start: auto;
178 }
179
180 .components-form-token-field {
181 inline-size: 100%;
182 }
183
184 .generate-button {
185 margin-inline-start: auto;
186 }
187 }
188
189 p.submit {
190 display: flex;
191 flex-flow: column;
192 gap: 8px;
193 margin-block-start: 17px;
194 padding-block-start: 0;
195 }
196
197 .shortcode-tag-wrapper {
198 background: #fff;
199 min-block-size: 54px;
200 display: flex;
201 align-items: center;
202 justify-content: space-between;
203 padding: 10px;
204 box-sizing: border-box;
205
206 code {
207 background: transparent;
208 padding-inline: 0.5em;
209 text-indent: -0.5em;
210 }
211 }
212