PluginProbe
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts / 2.7.9
Woody Code Snippets – Insert PHP, CSS, JS, and Header/Footer Scripts v2.7.9
2.7.9 2.7.8 2.7.7 2.7.6 2.7.5 2.7.4 trunk 1.3 2.0.4 2.0.6 2.1.91 2.2.4 2.2.7 2.2.9 2.3.1 2.3.10 2.4.10 2.4.2 2.4.4 2.4.5 2.4.6 2.4.7 2.4.8 2.4.9 2.6.0 All 30 releases
← All changes | admin/assets/css/list-table.less +266 -143 2.2.7 → 2.7.9 View file →
@@ -1,143 +1,266 @@
1 -/**
2 - * Snippets list table
3 - * @author Webcraftic <[email protected]>
4 - * @copyright Webcraftic 02.06.2018
5 - */
6 -
7 -.wp-list-table {
8 - & th {
9 - &#title {
10 - width: 20% !important;
11 - }
12 -
13 - &#snippet_type {
14 - width: 70px !important;
15 - }
16 -
17 - &#actions {
18 - width: 50px !important;
19 - }
20 -
21 - &#where_use {
22 - width: 200px !important;
23 - }
24 -
25 - &#taxonomy-wbcr-snippet-tags {
26 - width: 100px;
27 - }
28 - }
29 -
30 - & td {
31 - vertical-align: middle !important;
32 -
33 - &.column-status {
34 - //text-align: center;
35 - }
36 -
37 - /*&.column-snippet_type {
38 - text-align: center;
39 - }*/
40 - }
41 -
42 - .wbcr-inp-enable-snippet-button {
43 - .dashicons {
44 - margin-top: 3px;
45 -
46 - &.dashicons-controls-pause {
47 - color: #8bc34a;
48 - }
49 - }
50 - }
51 -
52 - .wbcr-inp-snippet-type-label {
53 - display: inline-block;
54 - padding: 3px 8px 6px;
55 - border-radius: 3px;
56 - font-weight: bold;
57 - width: 30px;
58 - text-align: center;
59 -
60 - &.wbcr-inp-type-php {
61 - background: #777bb3;
62 - color: #ffffff;
63 - }
64 -
65 - &.wbcr-inp-type-text {
66 - background: #4CAF50;
67 - color: #fffffd;
68 - }
69 -
70 - &.wbcr-inp-type-universal {
71 - background: #607D8B;
72 - color: #ffffff;
73 - }
74 -
75 - &.wbcr-inp-type-css {
76 - background: #1572b6;
77 - color: #ffffff;
78 - }
79 -
80 - &.wbcr-inp-type-js {
81 - background: #f7df1e;
82 - color: #655b0e;
83 - }
84 -
85 - &.wbcr-inp-type-html {
86 - background: #e44d26;
87 - color: #fffffd;
88 - }
89 - }
90 -
91 - .wbcr-inp-status-marker {
92 - display: inline-block;
93 - border-radius: 100%;
94 - width: 10px;
95 - height: 10px;
96 - margin-left: 5px;
97 -
98 - &.wbcr-inp-status-green {
99 - background: #8bc34a;
100 - }
101 -
102 - &.wbcr-inp-status-grey {
103 - background: #c0c0c0;
104 - }
105 - }
106 -
107 -
108 -}
109 -
110 -@media screen and (max-width: 1350px) {
111 - .wp-list-table {
112 - & th {
113 - &#description, &.column-description {
114 - width: 0;
115 - font-size: 0;
116 - }
117 -
118 - &#actions {
119 - width: 50px !important;
120 - }
121 -
122 - &#where_use {
123 - width: 100px !important;
124 - }
125 -
126 - &#taxonomy-wbcr-snippet-tags {
127 - width: 60px !important;
128 - }
129 -
130 - &#snippet_type {
131 - width: 50px !important;
132 - }
133 - }
134 -
135 - & td {
136 - &.column-description {
137 - width: 0;
138 - font-size: 0;
139 - }
140 - }
141 - }
142 -}
143 -
1 +/**
2 + * Snippets list table
3 + */
4 +
5 +.wp-list-table {
6 + & th {
7 + &#title {
8 + width: 20% !important;
9 + }
10 +
11 + &#winp_snippet_type {
12 + width: 70px !important;
13 + }
14 +
15 + &#winp_actions {
16 + width: 50px !important;
17 + }
18 +
19 + &#winp_where_use {
20 + width: 200px !important;
21 + }
22 +
23 + &#winp_priority {
24 + width: 90px !important;
25 + }
26 +
27 + &#winp_taxonomy-wbcr-snippet-tags {
28 + width: 100px;
29 + }
30 + }
31 +
32 + & .winp-taxonomy-href {
33 + text-decoration: underline;
34 + }
35 +
36 + & td {
37 + vertical-align: middle;
38 +
39 + &.column-winp_actions {
40 + vertical-align: top;
41 + }
42 +
43 + &.column-status {
44 + //text-align: center;
45 + }
46 +
47 + & .winp-snippet-active-switch, .winp-snippet-inactive-switch {
48 + background-color: #6366f1;
49 + margin-top: 5px;
50 + width: 40px;
51 + height: 20px;
52 + border-radius: 34px;
53 + display: inline-block;
54 +
55 + &:before {
56 + -webkit-transform: translateX(100%);
57 + transform: translateX(100%);
58 + -webkit-transition: all .4s;
59 + transition: all .4s;
60 + content: "";
61 + height: 16px;
62 + width: 17px;
63 + display: inline-block;
64 + margin: 2px;
65 + background-color: #fff;
66 + border-radius: 50%;
67 + }
68 +
69 + &:hover:before {
70 + -webkit-transform: translateX(80%);
71 + transform: translateX(80%);
72 + }
73 + }
74 +
75 + & .winp-inactive {
76 + &.winp-snippet-active-switch {
77 + background-color: #ccc;
78 +
79 + &:before {
80 + -webkit-transform: none;
81 + transform: none;
82 + }
83 +
84 + &:hover:before {
85 + -webkit-transform: translateX(20%);
86 + transform: translateX(20%);
87 + }
88 + }
89 + }
90 +
91 +
92 + & .winp-snippet-switch-loader {
93 + &:before {
94 + -webkit-transform: translateX(55%) !important;
95 + transform: translateX(55%) !important;
96 + }
97 + }
98 +
99 + /*&.column-snippet_type {
100 + text-align: center;
101 + }*/
102 +}
103 +
104 +.wbcr-inp-enable-snippet-button {
105 + .dashicons {
106 + margin-top: 3px;
107 +
108 + &.dashicons-controls-pause {
109 + color: #8bc34a;
110 + }
111 + }
112 +}
113 +
114 +.wbcr-inp-snippet-type-label {
115 + display: inline-block;
116 + padding: 3px 8px 6px;
117 + border-radius: 3px;
118 + font-weight: bold;
119 + width: 30px;
120 + text-align: center;
121 + float: right;
122 + margin-right: 5px;
123 +
124 + &.wbcr-inp-type-php {
125 + background: #777bb3;
126 + color: #ffffff;
127 + }
128 +
129 + &.wbcr-inp-type-text {
130 + background: #4CAF50;
131 + color: #fffffd;
132 + }
133 +
134 + &.wbcr-inp-type-universal {
135 + background: #607D8B;
136 + color: #ffffff;
137 + }
138 +
139 + &.wbcr-inp-type-css {
140 + background: #1572b6;
141 + color: #ffffff;
142 + }
143 +
144 + &.wbcr-inp-type-js {
145 + background: #f7df1e;
146 + color: #655b0e;
147 + }
148 +
149 + &.wbcr-inp-type-html {
150 + background: #e44d26;
151 + color: #fffffd;
152 + }
153 +
154 + &.wbcr-inp-type-advert {
155 + background: #d56700;
156 + color: #fffffd;
157 + }
158 +}
159 +
160 +.wbcr-inp-status-marker {
161 + display: inline-block;
162 + border-radius: 100%;
163 + width: 10px;
164 + height: 10px;
165 + margin-left: 5px;
166 +
167 + &.wbcr-inp-status-green {
168 + background: #8bc34a;
169 + }
170 +
171 + &.wbcr-inp-status-grey {
172 + background: #c0c0c0;
173 + }
174 +}
175 +
176 +.wbcr_inp_shortcode_input, .wbcr_inp_shortcode_input:focus {
177 + border: 1px solid #cbcbcb;
178 + background: #f6f6f6;
179 + box-shadow: none;
180 + outline: none;
181 + width: 100%;
182 + color: #555;
183 + font-size: 13px;
184 + padding: 5px;
185 + margin: 0;
186 + text-align: center;
187 +}
188 +
189 +.wbcr_inp_input_priority, .wbcr_inp_input_priority:focus {
190 + width: 50px;
191 +
192 + color: #555;
193 + font-size: 13px;
194 + margin: 0;
195 + padding: 0;
196 + text-align: center;
197 +}
198 +
199 +.wbcr_inp_input_priority.winp-loader {
200 + background: url('../img/loader.gif') no-repeat right center;
201 + background-size: 20px;
202 +}
203 +
204 +}
205 +
206 +@media screen and (max-width: 1350px) {
207 + .wp-list-table {
208 + & th {
209 + &#description, &.column-description {
210 + width: 0;
211 + font-size: 0;
212 + }
213 +
214 + &#actions {
215 + width: 50px !important;
216 + }
217 +
218 + &#where_use {
219 + width: 100px !important;
220 + }
221 +
222 + &#taxonomy-wbcr-snippet-tags {
223 + width: 60px !important;
224 + }
225 +
226 + &#snippet_type {
227 + width: 50px !important;
228 + }
229 + }
230 +
231 + & td {
232 + &.column-description {
233 + width: 0;
234 + font-size: 0;
235 + }
236 + }
237 + }
238 +}
239 +
240 +// RTL support for snippet toggle switches
241 +[dir="rtl"] .wp-list-table td {
242 + .winp-snippet-active-switch, .winp-snippet-inactive-switch {
243 + &:before {
244 + -webkit-transform: translateX(0);
245 + transform: translateX(0);
246 + }
247 +
248 + &:hover:before {
249 + -webkit-transform: translateX(-20%);
250 + transform: translateX(-20%);
251 + }
252 + }
253 +
254 + .winp-inactive.winp-snippet-active-switch {
255 + &:before {
256 + -webkit-transform: translateX(-100%);
257 + transform: translateX(-100%);
258 + }
259 +
260 + &:hover:before {
261 + -webkit-transform: translateX(-80%);
262 + transform: translateX(-80%);
263 + }
264 + }
265 +}
266 +