PluginProbe
Code Snippets / 4.0.0-beta.1
Code Snippets v4.0.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 4.0.0-beta.1, at css/settings.scss

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