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