PluginProbe
Code Snippets / 3.2.1
Code Snippets v3.2.1
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 3.0.1 All 64 releases
code-snippets / css / manage.scss

manage.scss in Code Snippets 3.2.1, at css/manage.scss

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