PluginProbe
Code Snippets / 3.10.0-beta.1
Code Snippets v3.10.0-beta.1
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 / settings.scss

settings.scss in Code Snippets 3.10.0-beta.1, at css/settings.scss

247 lines 3.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @use 'common/checkbox';
2 @use 'common/codemirror';
3 @use 'common/subnav';
4 @use 'common/theme';
5 @use 'common/toolbar';
6 @use 'common/wp-admin';
7 @use 'common/page-header';
8
9 $sections: general, editor, debug, version-switch;
10
11 .settings-section input[type='checkbox']='checkbox']:not(.switch) {
12 @include checkbox.canonical;
13
14 margin-inline-end: 8px;
15 }
16
17 .snippets-page-header h1 {
18 color: #2c3337;
19 }
20
21 p.submit {
22 display: flex;
23 justify-content: flex-start;
24 gap: 14px;
25
26 .button-secondary {
27 background: transparent;
28 }
29 }
30
31 .settings-section .form-table th {
32 inline-size: 261px;
33 font-size: 14px;
34 font-weight: 700;
35 color: #2c3337;
36 }
37
38 .settings-section,
39 p.submit {
40 max-inline-size: 1020px;
41 }
42
43 .nav-tab-wrapper {
44 margin-block-end: 1em;
45 }
46
47 input[type='number']='number'] {
48 inline-size: 4em;
49 }
50
51 .CodeMirror {
52 max-inline-size: 800px;
53 inline-size: 100%;
54 padding-inline-end: 1em;
55 }
56
57 .CodeMirror-sizer::before {
58 content: '<?php';
59 }
60
61 body.no-js {
62 .nav-tab-wrapper {
63 display: none;
64 }
65
66 .settings-section {
67 display: block !important;
68 }
69 }
70
71 body.js {
72 .settings-section-title {
73 border: 0;
74 clip: rect(1px, 1px, 1px, 1px);
75 clip-path: inset(50%);
76 block-size: 1px;
77 margin: -1px;
78 overflow: hidden;
79 padding: 0;
80 position: absolute;
81 inline-size: 1px;
82 word-wrap: normal !important;
83 }
84
85 .nav-tab:not(.nav-tab-active) {
86 cursor: pointer;
87 }
88
89 .settings-section {
90 display: none;
91 }
92
93 @each $section in $sections {
94 .wrap[data-active-tab=#{$section}]=#{$section}] .#{$section}-settings {
95 display: block;
96 }
97 }
98 }
99
100 .license-status {
101 display: inline-block;
102 padding-inline-end: 2em;
103 line-height: 2;
104 color: #646970;
105 }
106
107 .license-status-valid {
108 color: #2ecc40;
109 }
110
111 .license-status-expired {
112 color: #dc3232;
113 }
114
115 .wrap[data-active-tab='license']='license'] .submit {
116 display: none;
117 }
118
119 #code_snippets_remove_license {
120 color: #b32d2e;
121 border-color: #b32d2e;
122 }
123
124 #code_snippets_license_key {
125 font-family: Consolas, Monaco, monospace;
126 }
127
128 #cloud_token {
129 max-inline-size: 450px;
130 inline-size: 90vw;
131 }
132
133 .cloud-message {
134 inline-size: fit-content;
135 padding: 5px;
136 border-radius: 5px;
137 font-weight: 600;
138 }
139
140 .cloud-error {
141 background: #e53935;
142 color: #ffebee;
143 }
144
145 .cloud-success {
146 background: #43a047;
147 color: #e8f5e9;
148 }
149
150 .refresh-success {
151 background: #2e7d4f;
152 color: #fff;
153 }
154
155 .cloud-settings tbody tr:nth-child(n+5) {
156 display: none;
157 }
158
159 // Version Switch Styles
160 .code-snippets-version-switch {
161 .current-version {
162 font-family: monospace;
163 font-size: 1.1em;
164 font-weight: bold;
165 color: #0073aa;
166 background: #f0f6fc;
167 padding: 2px 8px;
168 border-radius: 3px;
169 border: 1px solid theme.$control-border;
170 }
171
172 #target_version {
173 min-inline-size: 200px;
174 margin-inline-start: 8px;
175 }
176
177 #switch-version-btn {
178 &[disabled]] {
179 opacity: 0.6;
180 cursor: not-allowed;
181 background-color: #f0f0f1 !important;
182 color: #a7aaad !important;
183 border-color: #dcdcde !important;
184 }
185 }
186
187 // Warning box styling
188 #version-switch-warning {
189 display: none;
190 margin-block-start: 20px !important;
191 padding: 12px 16px;
192 border-inline-start: 4px solid #dba617;
193 background: #fff8e5;
194 border-radius: 4px;
195
196 p {
197 margin: 0;
198 color: #8f6914;
199
200 strong {
201 color: #8f6914;
202 }
203 }
204 }
205
206 #version-switch-result {
207 margin-block-start: 12px;
208
209 &.notice {
210 padding: 8px 12px;
211 border-radius: 4px;
212 }
213 }
214
215 .notice {
216 &.notice {
217 &-success {
218 border-inline-start-color: #00a32a;
219 }
220
221 &-error {
222 border-inline-start-color: #d63638;
223 }
224
225 &-warning {
226 border-inline-start-color: #dba617;
227 }
228
229 &-info {
230 border-inline-start-color: #72aee6;
231 }
232 }
233 }
234 }
235
236 .version-switch-settings {
237 .form-table {
238 th {
239 inline-size: 180px;
240 }
241 }
242 }
243
244 #settings-sections-tabs {
245 margin-block-end: 15px;
246 }
247