PluginProbe
Code Snippets / 3.4.1
Code Snippets v3.4.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.4.1, at css/manage.scss

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