PluginProbe ʕ •ᴥ•ʔ
Code Snippets / 3.6.6.1
Code Snippets v3.6.6.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 3.0.1 3.1.0 3.1.1 3.2.1 3.2.2 3.3.0 3.4.0 3.4.1 3.4.2 3.5.0 3.5.0-beta.1 3.6.0 3.6.1 3.6.2 3.6.3 3.6.4 3.6.5 3.6.5.1 3.6.6 3.6.6.1 3.6.7 3.6.8 3.7.0 3.7.0-beta 3.7.0-beta.5 3.7.0-beta.7 3.7.1-beta.1 3.7.1-beta.2 3.7.1-beta.3 3.8.0 3.8.1 3.8.2 3.9.0 3.9.0-beta.1 3.9.0-beta.2 3.9.1 3.9.2 3.9.3 3.9.4 3.9.5
code-snippets / css / manage.scss
code-snippets / css Last commit date
common 1 year ago edit 2 years ago manage 2 years ago edit.scss 1 year ago manage.scss 2 years ago menu-button.scss 2 years ago prism.scss 1 year ago settings.scss 2 years ago welcome.scss 2 years ago
manage.scss
299 lines
1 /**
2 * Custom styling for the snippets table
3 */
4
5 $active-color: #2196f3;
6 $inactive-color: #ccc;
7
8 @import 'common/type-badges';
9 @import 'manage/cloud';
10
11 .column-name,
12 .column-type {
13 .dashicons {
14 font-size: 16px;
15 width: 16px;
16 height: 16px;
17 vertical-align: middle;
18 }
19
20 .dashicons-clock {
21 vertical-align: middle;
22 }
23 }
24
25 .active-snippet .column-name > a {
26 font-weight: 600;
27 }
28
29 .column-priority input {
30 appearance: none;
31 background: none;
32 border: none;
33 box-shadow: none;
34 width: 4em;
35 color: #666;
36 text-align: center;
37
38 &:hover, &:focus, &:active {
39 color: #000;
40 background-color: #f5f5f5;
41 background-color: rgba(0, 0, 0, 0.1);
42 border-radius: 6px;
43 }
44
45 &:disabled {
46 color: inherit;
47 }
48 }
49
50 .snippet-execution-button,
51 .snippet-activation-switch {
52 display: block;
53 position: relative;
54 }
55
56 .snippet-activation-switch {
57 margin-top: 5px;
58 width: 30px;
59 height: 17px;
60 border-radius: 34px;
61 background-color: #ccc;
62
63 &::before {
64 transition: all .4s;
65 content: '';
66 height: 13px;
67 width: 13px;
68 display: inline-block;
69 margin: 2px;
70 background-color: white;
71 border-radius: 50%;
72 }
73
74 &:hover::before {
75 transform: translateX(40%);
76 }
77
78 .snippets .active-snippet & {
79 background-color: $active-color;
80
81 &::before {
82 transform: translateX(100%);
83 }
84
85 &:hover::before {
86 transform: translateX(60%);
87 }
88 }
89
90 .snippets .erroneous-snippet &::before {
91 content: '!';
92 transform: translateX(50%);
93 text-align: center;
94 font-weight: bold;
95 line-height: 1;
96 color: #bbb;
97 }
98 }
99
100 .snippet-execution-button {
101 margin-left: 10px;
102 margin-top: 9px;
103 width: 0;
104 height: 0;
105 border-top: 9px solid transparent;
106 border-bottom: 9px solid transparent;
107 border-left: 10px solid $inactive-color;
108 transition: all 0.3s;
109
110 &::before {
111 content: '';
112 position: absolute;
113 top: -14px;
114 left: -21px;
115 bottom: -14px;
116 right: -8px;
117 border-radius: 50%;
118 border: 1.8px solid $inactive-color;
119 z-index: 2;
120 transition: all .3s;
121 }
122
123 &:hover, &:focus {
124 border-left-color: #579;
125
126 &::before {
127 transform: scale(1.1);
128 border-color: #579;
129 }
130 }
131 }
132
133 .clear-filters {
134 vertical-align: baseline !important;
135 }
136
137 .snippets {
138
139 tr {
140 background: #fff;
141 }
142
143 ol, ul {
144 margin: 0 0 1.5em 1.5em;
145 }
146
147 ul {
148 list-style: disc;
149 }
150
151 th.sortable a, th.sorted a {
152 display: flex;
153 flex-direction: row;
154 }
155
156 .row-actions {
157 color: #ddd;
158 position: relative;
159 left: 0;
160 }
161
162 .column-activate {
163 padding-right: 0 !important;
164 }
165
166 .clear-filters {
167 vertical-align: middle;
168 }
169
170 tfoot th.check-column {
171 padding: 13px 0 0 3px;
172 }
173
174 thead th.check-column,
175 tfoot th.check-column,
176 .inactive-snippet th.check-column {
177 padding-left: 5px;
178 }
179
180 td.column-description {
181 max-width: 700px;
182 }
183
184 .active-snippet, .inactive-snippet {
185 td, th {
186 padding: 10px 9px;
187 border: none;
188 box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
189 }
190 }
191
192 .badge {
193 margin-left: 4px;
194 padding: 3px 6px;
195 text-decoration: none;
196 border: medium none;
197 border-radius: 2px;
198 background-color: #e0e0e0;
199 background-color: rgba(0, 0, 0, 0.08);
200 font-size: smaller;
201 line-height: 1.2;
202
203 /* rtl:ignore */
204 .rtl & {
205 float: left;
206 }
207 }
208
209 tr.active-snippet + tr.inactive-snippet th,
210 tr.active-snippet + tr.inactive-snippet td {
211 border-top: 1px solid rgba(0, 0, 0, 0.03);
212 box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.02), inset 0 -1px 0 #e1e1e1;
213 }
214
215 &, #all-snippets-table, #search-snippets-table {
216 a.delete:hover {
217 border-bottom: 1px solid #f00;
218 color: #f00;
219 }
220 }
221
222 #wpbody-content & .column-name {
223 white-space: nowrap; /* prevents wrapping of snippet title */
224 }
225 }
226
227 .inactive-snippet {
228 @include link-colors($php-inactive);
229 }
230
231 .active-snippet {
232
233 td, th {
234 background-color: rgba($php-background, 0.06);
235 }
236
237 th.check-column {
238 border-left: 2px solid #2ea2cc;
239 }
240
241 .snippet-activation-switch {
242 background-color: $active-color;
243 }
244 }
245
246 @mixin snippet-type-colors($type, $active, $inactive, $background, $highlight) {
247 .#{$type}-snippet {
248 @include link-colors($inactive);
249 }
250
251 .#{$type}-snippet.active-snippet {
252 @include link-colors($active);
253
254 td, th {
255 background-color: rgba($background, 0.06);
256 }
257
258 .snippet-activation-switch {
259 background-color: $highlight;
260 }
261
262 th.check-column {
263 border-left-color: $highlight;
264 }
265 }
266 }
267
268 @include snippet-type-colors(css, $css-active, $css-inactive, $css-background, $css-highlight);
269 @include snippet-type-colors(html, $html-active, $html-active, $html-background, $html-highlight);
270 @include snippet-type-colors(js, $js-active, $js-inactive, $js-background, $js-highlight);
271
272 @media screen and (max-width: 782px) {
273 p.search-box {
274 float: left;
275 position: initial;
276 margin: 1em 0 0 0;
277 height: auto;
278 }
279 }
280
281 .wp-list-table .is-expanded td.column-activate.activate {
282 /* fix for mobile layout */
283 display: table-cell !important;
284 }
285
286 .nav-tab-wrapper + .subsubsub, p.search-box {
287 margin: 10px 0 0 0;
288 }
289
290 .snippet-type-description {
291 border-bottom: 1px solid #ccc;
292 margin: 0;
293 padding: 1em 0;
294 }
295
296 .code-snippets-notice a.notice-dismiss {
297 text-decoration: none;
298 }
299