PluginProbe
WP Coder – Insert & Manage Code Snippets / 4.3
WP Coder – Insert & Manage Code Snippets v4.3
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
wp-coder / assets / scss / _settings.scss

_settings.scss in WP Coder – Insert & Manage Code Snippets 4.3, at assets/scss/_settings.scss

382 lines 6.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 .wowp-settings {
2 background-color: white;
3 margin-inline-end: 20px;
4 margin-block: 1.5rem;
5 border: 1px solid var(--wowp-gray-100);
6 border-radius: 0.5rem;
7 box-shadow: var(--wowp-shadow);
8 padding: 1rem;
9 }
10
11 .wowp-settins__tabs > .popover-container {
12 @media (width >= 48rem) {
13 margin-inline-start: auto;
14 }
15 }
16
17 .wowp-page-box {
18 max-width: 1400px;
19 margin-inline: auto;
20 }
21
22 // Settings Header
23 .wowp-settings__header {
24 margin-block: 1.5rem;
25 margin-inline-end: 20px;
26 padding: 1rem;
27 background-color: #ffffff;
28 border: 1px solid var(--wowp-gray-100);
29 border-radius: 0.5rem;
30 box-shadow: var(--wowp-shadow);
31 }
32
33 // Title
34 .wowp-settings__title {
35 display: flex;
36 align-items: center;
37 flex-wrap: wrap;
38 position: relative;
39
40 #title {
41 flex: 1;
42 padding-inline-end: 80px;
43 }
44 input {
45 height: 40px;
46 font-size: 16px;
47 line-height: 1
48 }
49
50 #plugin-activate,
51 #submit_settings {
52 position: absolute;
53 min-height: 32px;
54 height: 32px;
55 right: 8px;
56 margin: 0;
57
58 }
59 }
60
61 // Publish
62 .wowp-settings__publish {
63 margin-inline: -1rem;
64 padding-inline: 1rem;
65 margin-block: 1rem;
66 padding-block: 1rem;
67 border-block: 1px solid var(--wowp-gray-100);
68 display: flex;
69 flex-direction: column;
70 flex-wrap: wrap;
71 gap: 0.5rem;
72
73 .wowp-settings__publish-hide,
74 .wowp-settings__publish-info,
75 .wowp-settings__publish-status {
76 display: flex;
77 gap: 0.5rem;
78 }
79
80 .wowp-settings__publish-hide {
81 order: 3;
82 width: 100%;
83 }
84
85 .wowp-settings__publish-info {
86 flex-direction: column;
87
88 @media (width >= 48rem) {
89 flex-direction: row;
90 }
91
92 }
93
94 @media (width >= 80rem) {
95 flex-direction: row;
96 justify-content: space-between;
97 .wowp-settings__publish-status {
98 order: 2;
99 }
100 }
101 }
102
103 // Tabs
104 .wowp-settins__tabs {
105 display: flex;
106 flex-wrap: wrap;
107 flex-direction: column;
108 gap: 0.5rem;
109
110 @media (width >= 48rem) {
111 gap: unset;
112 flex-direction: row;
113 align-items: center;
114 }
115 }
116
117 .wowp-settins__tabs-radio {
118 display: none;
119
120 &:checked + .wowp-settins__tabs-tab {
121 color: var(--wowp-gray-700);
122 position: relative;
123
124 &:before {
125 position: absolute;
126 content: '';
127 display: block;
128 width: 100%;
129 height: 3px;
130 background-color: var(--wowp-gray-900);
131 bottom: -9px;
132 left: 0;
133 }
134 }
135 }
136
137 .wowp-settins__tabs-tab {
138 padding: 0.5rem 1rem;
139 color: var(--wowp-gray-400);
140 cursor: pointer;
141 border-radius: 0.25rem;
142 font-size: 14px;
143
144 &:hover {
145 color: var(--wowp-gray-700);
146 background-color: var(--wowp-gray-100);
147 }
148 }
149
150 .wowp-settins__tabs-content {
151 position: absolute;
152 top: -99999px;
153 left: -99999px;
154 width: 100%;
155 border-top: 1px solid var(--wowp-gray-100);
156 margin-block-start: 0.5rem;
157 margin-inline: -1rem;
158 padding-inline: 1rem;
159 }
160
161 #wowp-tab-html-code:checked ~ [data-content='wowp-tab-html-code']='wowp-tab-html-code'],
162 #wowp-tab-css-code:checked ~ [data-content='wowp-tab-css-code']='wowp-tab-css-code'],
163 #wowp-tab-js-code:checked ~ [data-content='wowp-tab-js-code']='wowp-tab-js-code'],
164 #wowp-tab-php-code:checked ~ [data-content='wowp-tab-php-code']='wowp-tab-php-code'],
165 #wowp-tab-include:checked ~ [data-content='wowp-tab-include']='wowp-tab-include'],
166 #wowp-tab-settings:checked ~ [data-content='wowp-tab-settings']='wowp-tab-settings'],
167 #wowp-tab-attributes:checked ~ [data-content='wowp-tab-attributes']='wowp-tab-attributes'],
168 #wowp-tab-pro:checked ~ [data-content='wowp-tab-pro']='wowp-tab-pro'] {
169 position: static;
170 }
171
172 // Page
173
174 .wowp-settings__page {
175 display: flex;
176 flex-direction: column;
177 flex-wrap: wrap;
178 padding-block: 1.5rem 0;
179 gap: 1.5rem;
180
181 @media (width >= 48rem) {
182 flex-direction: row;
183 }
184 }
185
186 .wowp-settings__page-content {
187 order: 1;
188 flex: 1;
189
190 }
191
192 .wowp-settings__page-sidebar {
193 position: relative;
194 display: flex;
195 flex-direction: column;
196 gap: 1rem;
197 order: -1;
198 @media (width >= 48rem) {
199 order: 2;
200 width: 200px;
201 }
202
203 .wowp-fields__group {
204 //padding-top: 0;
205 flex-direction: column;
206 gap: 1rem;
207 align-items: initial;
208 }
209 }
210
211 .wowp-settings__page-sidebar-title {
212 color: var(--wowp-gray-500);
213 font-weight: 500;
214 }
215
216 .wowp-settings__page-footer {
217 border-top: 1px solid var(--wowp-gray-100);
218 padding-block-start: 1rem;
219 margin-inline: -1rem;
220 padding-inline: 1rem;
221 order: 3;
222 width: 100%;
223 display: flex;
224 flex-direction: column;
225 gap: 1rem;
226 @media (width >= 64rem) {
227 flex-direction: row;
228 align-items: center;
229 justify-content: space-between;
230 }
231 }
232
233 .CodeMirror {
234 min-height: 700px;
235 font-size: .875rem;
236 line-height: 1.25rem;
237 box-shadow: var(--wowp-shadow-sm);
238 border: 1px solid var(--wowp-gray-100);
239 border-radius: 0.5rem;
240 }
241
242
243 .wowp-php-nav-menu {
244 position: sticky;
245 top: 0;
246 margin: 0;
247 padding-left: 1rem;
248 li {
249 position: relative;
250 }
251 li:first-child {
252 padding-top: 0.5rem;
253 }
254 li:first-child:before {
255 content: '';
256 position: absolute;
257 width: calc(100% + 1rem);
258 height: 1px;
259 top: 0;
260 left: -1rem;
261 background-color: var(--wowp-gray-100);
262 }
263
264 li:last-child {
265 padding-bottom: 0.5rem;
266 }
267 li:last-child:after {
268 content: '';
269 position: absolute;
270 width: calc(100% + 1rem);
271 height: 1px;
272 bottom: 0;
273 left: -1rem;
274 background-color: var(--wowp-gray-100);
275 }
276
277 a {
278 color: var(--wowp-gray-700);
279 }
280 }
281
282 // Live Preview
283 .wowp-preview{
284 margin-block: 1.5rem;
285 margin-inline-end: 20px;
286 background-color: #ffffff;
287 border: 1px solid var(--wowp-gray-100);
288 border-radius: 0.5rem;
289 box-shadow: var(--wowp-shadow);
290 }
291
292 .wowp-preview__title {
293 margin: 0;
294 padding: 1rem 1rem 0 1rem;
295 color: var(--wowp-gray-900);
296 }
297
298 .wowp-preview__subtitle {
299 margin: 0;
300 color: var(--wowp-gray-500);
301 padding-inline: 1rem;
302 }
303
304 .wowp-preview__iframe {
305 resize: both;
306 overflow: auto;
307 min-height: 450px;
308 max-width: calc(100% - 1.5rem);
309 margin: 0.5rem 0.5rem 1rem 0.5rem;
310 scrollbar-gutter: stable;
311 scrollbar-width: none;
312 border: 3px solid #f1f1f1;
313 border-top-left-radius: 4px;
314 border-top-right-radius: 4px;
315
316 &.is-toggled {
317 min-height: auto;
318 resize: none;
319 }
320
321 #wowp-preview {
322 width: 100%;
323 height: calc(100% - 50px);
324 min-height: 400px;
325 //border: 1px solid var(--wowp-gray-400);
326 box-sizing: border-box;
327
328 }
329 }
330
331 .wowp-preview__top {
332 padding: 10px;
333 background: #f1f1f1;
334 border-top-left-radius: 4px;
335 border-top-right-radius: 4px;
336 display: flex;
337 gap: 0.5rem;
338
339 .wowp-preview__size {
340 margin-left: auto;
341 font-size: 11px;
342 }
343 }
344
345 .wowp-preview__dot {
346 height: 16px;
347 width: 16px;
348 background-color: #bbb;
349 border-radius: 50%;
350 display: flex;
351 align-items: center;
352 justify-content: center;
353 cursor: pointer;
354 transition: background-color 0.2s ease-in-out;
355
356 .dashicons {
357 font-size: 10px;
358 display: flex;
359 align-items: center;
360 justify-content: center;
361 &.is-hidden {
362 display: none;
363 }
364 }
365
366 &.is-close:hover {
367 background-color: #ff5f57;
368 }
369
370 &.is-toggle:hover,
371 &.is-toggle.is-active {
372 background-color: #ffbd2e;
373 }
374
375 &.is-reset:hover {
376 background-color: #28c840;
377 }
378
379 }
380
381
382