PluginProbe
Code Snippets / 3.7.0
Code Snippets v3.7.0
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.7.0, at css/manage.scss

215 lines 3.3 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 @use 'sass:map';
6 @use 'sass:color';
7 @use 'common/theme';
8 @use 'common/badges';
9 @use 'common/switch';
10 @use 'common/select';
11 @use 'manage/cloud';
12
13 .column-name,
14 .column-type {
15 .dashicons {
16 font-size: 16px;
17 inline-size: 16px;
18 block-size: 16px;
19 vertical-align: middle;
20 }
21
22 .dashicons-clock {
23 vertical-align: middle;
24 }
25 }
26
27 .active-snippet .column-name > a {
28 font-weight: 600;
29 }
30
31 .active-snippet {
32 td, th {
33 background-color: rgba(#78c8e6, 0.06);
34 }
35
36 th.check-column {
37 border-inline-start: 2px solid #2ea2cc;
38 }
39 }
40
41 .column-priority input {
42 appearance: none;
43 background: none;
44 border: none;
45 box-shadow: none;
46 inline-size: 4em;
47 color: #666;
48 text-align: center;
49
50 &:hover, &:focus, &:active {
51 color: #000;
52 background-color: #f5f5f5;
53 background-color: rgb(0 0 0 / 10%);
54 border-radius: 6px;
55 }
56
57 &:disabled {
58 color: inherit;
59 }
60 }
61
62 .clear-filters {
63 vertical-align: baseline !important;
64 }
65
66 .snippets {
67 td.column-id {
68 text-align: center;
69 }
70
71 tr {
72 background: #fff;
73 }
74
75 ol, ul {
76 margin-block: 0 1.5em;
77 margin-inline: 1.5em 0;
78 }
79
80 ul {
81 list-style: disc;
82 }
83
84 th.sortable a, th.sorted a {
85 display: flex;
86 flex-direction: row;
87 }
88
89 .row-actions {
90 color: #ddd;
91 position: relative;
92 inset-inline-start: 0;
93 }
94
95 .column-activate {
96 padding-inline-end: 0 !important;
97 }
98
99 .clear-filters {
100 vertical-align: middle;
101 }
102
103 tfoot th.check-column {
104 padding-block: 13px 0;
105 padding-inline: 3px 0;
106 }
107
108 thead th.check-column,
109 tfoot th.check-column,
110 .inactive-snippet th.check-column {
111 padding-inline-start: 5px;
112 }
113
114 .active-snippet, .inactive-snippet {
115 td, th {
116 padding-block: 10px;
117 padding-inline: 9px;
118 border: none;
119 box-shadow: inset 0 -1px 0 rgb(0 0 0 / 10%);
120 }
121 }
122
123 tr.active-snippet + tr.inactive-snippet th,
124 tr.active-snippet + tr.inactive-snippet td {
125 border-block-start: 1px solid rgb(0 0 0 / 3%);
126 box-shadow: inset 0 1px 0 rgb(0 0 0 / 2%), inset 0 -1px 0 #e1e1e1;
127 }
128
129 &, #all-snippets-table, #search-snippets-table {
130 a.delete:hover {
131 border-block-end: 1px solid #f00;
132 color: #f00;
133 }
134 }
135
136 #wpbody-content & .column-name {
137 white-space: nowrap; /* prevents wrapping of snippet title */
138 }
139 }
140
141 td.column-description {
142 max-inline-size: 700px;
143
144 pre {
145 white-space: unset;
146 }
147 }
148
149 .inactive-snippet {
150 @include theme.link-colors(#579);
151 }
152
153 @media screen and (width <= 782px) {
154 p.search-box {
155 float: inline-start;
156 position: initial;
157 margin-block: 1em 0;
158 margin-inline: 0;
159 block-size: auto;
160 }
161 }
162
163 .wp-list-table .is-expanded td.column-activate.activate {
164 /* fix for mobile layout */
165 display: table-cell !important;
166 }
167
168 .nav-tab-wrapper + .subsubsub, p.search-box {
169 margin-block: 10px 0;
170 margin-inline: 0;
171 }
172
173 .snippet-type-description {
174 border-block-end: 1px solid #ccc;
175 margin: 0;
176 padding-block: 1em;
177 padding-inline: 0;
178 }
179
180 .code-snippets-notice a.notice-dismiss {
181 text-decoration: none;
182 }
183
184 .refresh-button-container {
185 display: flex;
186 align-items: center;
187 justify-content: flex-start;
188 margin-block: 15px -39px;
189 gap: 7px;
190 }
191
192 #refresh-button {
193 inline-size: 30px;
194 padding: 0;
195 font-size: 20px;
196 line-height: 1.4;
197 }
198
199 .wrap h2.nav-tab-wrapper {
200 .nav-tab {
201 display: flex;
202 flex-flow: row wrap;
203 align-items: center;
204 gap: 8px;
205 }
206 }
207
208 @media screen and (width <= 1190px) {
209 .nav-tab {
210 .snippet-label {
211 display: none;
212 }
213 }
214 }
215