Make WordPress Core

Ticket #37384: options-discussion-alignment.html

File options-discussion-alignment.html, 11.1 KB (added by FolioVision, 8 years ago)

Sample simpler, cleaner options WP Admin code

Line 
1<style>
2/* Only minimal styling moved over */
3body {
4    color: #444;
5        background: #F1F1F1;
6    font-family: "Open Sans",sans-serif;
7    line-height: 1.4em;
8}
9.screen-reader-text, .screen-reader-text span, .ui-helper-hidden-accessible {
10    border: 0 none;
11    clip: rect(0px, 0px, 0px, 0px);
12    height: 1px;
13    margin: -1px;
14    overflow: hidden;
15    padding: 0;
16    position: absolute;
17    width: 1px;
18    word-wrap: normal !important;
19}
20a {
21    color: #0073aa;
22    transition-duration: 0.05s;
23    transition-property: border, background, color;
24    transition-timing-function: ease-in-out;
25}
26a:active, a:hover {
27    color: #00a0d2;
28}
29a, div {
30    outline: 0 none;
31}
32.form-table, .form-table td, .form-table td p, .form-table th, .form-wrap label {
33    font-size: 14px;
34}
35.color-palette, .form-table, .media-item .describe {
36    border-collapse: collapse;
37}
38fieldset {
39    border: 0 none;
40}
41.checkbox, .post-categories, .zerosize, fieldset {
42    margin: 0;
43    padding: 0;
44}
45.form-table th, .form-wrap label {
46    color: #23282d;
47    font-weight: 400;
48    text-shadow: none;
49    vertical-align: baseline;
50}
51.form-table th {
52    font-weight: 600;
53    line-height: 1.4;
54    padding: 20px 10px 20px 0;
55    text-align: left;
56    vertical-align: top;
57    width: 200px;
58}
59.form-table td {
60    line-height: 1.4;
61}
62.form-table td {
63    line-height: 1.4;
64    margin-bottom: 9px;
65    padding: 15px 10px;
66    vertical-align: middle;
67}
68.form-table, .form-table td, .form-table td p, .form-table th, .form-wrap label {
69    font-size: 14px;
70}
71.form-table td fieldset label, .form-table td fieldset li, .form-table td fieldset p {
72    line-height: 1.4em;
73}
74.form-table td fieldset p:first-child {
75        margin-top: -4px;       
76}
77/* Foliovision Changes */
78.form-table td fieldset label {
79    display: inline-block;
80    margin: 0.3em 0 0.5em; /* changed from 0.25em 0 0.5em, ideally removing !important too */
81}
82.form-table td fieldset p label { /* Added this to remove top margin if label is inside paragraph tag */
83        margin-top: 0;
84}
85/* Foliovision Changes - END */
86
87.form-table td p {
88    margin-bottom: 0;
89    margin-top: 4px;
90}
91#your-profile label + a, fieldset label, label {
92    vertical-align: middle;
93}
94input, textarea {
95    box-sizing: border-box;
96}
97input[type="text"], input[type="password"], input[type="checkbox"], input[type="color"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="radio"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"], input[type="search"], select, textarea {
98    background-color: #fff;
99    border: 1px solid #ddd;
100    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07) inset;
101    color: #32373c;
102    outline: 0 none;
103    transition: border-color 0.05s ease-in-out 0s;
104}
105button, input, select, textarea {
106    font-family: inherit;
107    font-size: inherit;
108    font-weight: inherit;
109}
110input, select, textarea {
111    border-radius: 0;
112    font-size: 14px;
113}
114input.small-text[type="number"] {
115    width: 65px;
116}
117input.small-text {
118    padding: 1px 6px;
119    width: 50px;
120        margin-top: -4px; /* Fix for when places inside regular paragraph text making the line height taller */
121}
122.wp-admin select {
123    height: 28px;
124    line-height: 28px;
125    padding: 2px;
126    vertical-align: middle;
127}
128input[type="checkbox"], input[type="radio"] {
129    background: #fff;
130    border: 1px solid #b4b9be;
131    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset;
132    clear: none;
133    color: #555;
134    cursor: pointer;
135    display: inline-block;
136    height: 16px;
137    line-height: 0;
138    margin: -4px 4px 0 0;
139    min-width: 16px;
140    outline: 0 none;
141    padding: 0 !important;
142    text-align: center;
143    transition: border-color 0.05s ease-in-out 0s;
144    vertical-align: middle;
145    width: 16px;
146}
147.form-table input.tog, input[type="checkbox"], input[type="radio"] {
148    margin-bottom: -1px;
149}
150input[type="checkbox"]:checked::before, input[type="radio"]:checked::before {
151    -moz-osx-font-smoothing: grayscale;
152    display: inline-block;
153    float: left;
154    font: 400 21px/1 dashicons;
155    vertical-align: middle;
156    width: 16px;
157}
158input[type="checkbox"]:checked::before {
159    color: #1e8cbe;
160    content: "";
161    margin: -3px 0 0 -4px;
162}
163
164textarea {
165    line-height: 1.4;
166    padding: 2px 6px;
167}
168textarea.code {
169    line-height: 1.4;
170    padding: 4px 6px 1px;
171}
172.code, code {
173    direction: ltr;
174    font-family: Consolas,Monaco,monospace;
175    unicode-bidi: embed;
176}
177input.large-text, textarea.large-text {
178    width: 99%;
179}
180.wrapper {
181        width: 800px;
182        margin: 0 auto;
183}
184
185</style>
186
187<div class="wrapper">
188<table class="form-table">
189<tbody><tr>
190<th scope="row">Default article settings</th>
191<td><fieldset><legend class="screen-reader-text"><span>Default article settings</span></legend>
192<label for="default_pingback_flag">
193<input type="checkbox" checked="checked" value="1" id="default_pingback_flag" name="default_pingback_flag" />
194Attempt to notify any blogs linked to from the article</label>
195<br />
196<label for="default_ping_status">
197<input type="checkbox" checked="checked" value="open" id="default_ping_status" name="default_ping_status" />
198Allow link notifications from other blogs (pingbacks and trackbacks) on new articles</label>
199<br />
200<label for="default_comment_status">
201<input type="checkbox" checked="checked" value="open" id="default_comment_status" name="default_comment_status" />
202Allow people to post comments on new articles</label>
203<br />
204<p class="description">(These settings may be overridden for individual articles.)</p>
205</fieldset></td>
206</tr>
207<tr>
208<th scope="row">Other comment settings</th>
209<td><fieldset><legend class="screen-reader-text"><span>Other comment settings</span></legend>
210<label for="require_name_email"><input type="checkbox" checked="checked" value="1" id="require_name_email" name="require_name_email" /> Comment author must fill out name and e-mail</label>
211<br />
212<label for="comment_registration">
213<input type="checkbox" value="1" id="comment_registration" name="comment_registration" />
214Users must be registered and logged in to comment</label>
215<br />
216
217<label for="close_comments_for_old_posts">
218<input type="checkbox" value="1" id="close_comments_for_old_posts" name="close_comments_for_old_posts" />
219Automatically close comments on articles older than </label><label for="close_comments_days_old"><input type="number" class="small-text" value="14" id="close_comments_days_old" step="1" min="0" name="close_comments_days_old" /> days</label>
220<br />
221<label for="thread_comments">
222<input type="checkbox" value="1" id="thread_comments" name="thread_comments" />
223Enable threaded (nested) comments </label><label for="thread_comments_depth"><select id="thread_comments_depth" name="thread_comments_depth"><option value="2">2</option><option value="3">3</option><option value="4">4</option><option selected="selected" value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option></select> levels deep</label>
224<br />
225<label for="page_comments">
226<input type="checkbox" value="1" id="page_comments" name="page_comments" />
227Break comments into pages with </label><label for="comments_per_page"><input type="number" class="small-text" value="100" id="comments_per_page" min="0" step="1" name="comments_per_page" /> top level comments per page and the </label><label for="default_comments_page"><select id="default_comments_page" name="default_comments_page"><option selected="selected" value="newest">last</option><option value="oldest">first</option></select> page displayed by default</label>
228<br />
229<label for="comment_order">Comments should be displayed with the <select id="comment_order" name="comment_order"><option selected="selected" value="asc">older</option><option value="desc">newer</option></select> comments at the top of each page</label>
230</fieldset></td>
231</tr>
232<tr>
233<th scope="row">E-mail me whenever</th>
234<td><fieldset><legend class="screen-reader-text"><span>E-mail me whenever</span></legend>
235<label for="comments_notify">
236<input type="checkbox" value="1" id="comments_notify" name="comments_notify" />
237Anyone posts a comment </label>
238<br />
239<label for="moderation_notify">
240<input type="checkbox" checked="checked" value="1" id="moderation_notify" name="moderation_notify" />
241A comment is held for moderation </label>
242</fieldset></td>
243</tr>
244<tr>
245<th scope="row">Before a comment appears</th>
246<td><fieldset><legend class="screen-reader-text"><span>Before a comment appears</span></legend>
247<label for="comment_moderation">
248<input type="checkbox" checked="checked" value="1" id="comment_moderation" name="comment_moderation" />
249Comment must be manually approved </label>
250<br />
251<label for="comment_whitelist"><input type="checkbox" checked="checked" value="1" id="comment_whitelist" name="comment_whitelist" /> Comment author must have a previously approved comment</label>
252</fieldset></td>
253</tr>
254<tr>
255<th scope="row">Comment Moderation</th>
256<td><fieldset><legend class="screen-reader-text"><span>Comment Moderation</span></legend>
257<p><label for="comment_max_links">Hold a comment in the queue if it contains <input type="number" class="small-text" value="2" id="comment_max_links" min="0" step="1" name="comment_max_links" /> or more links. (A common characteristic of comment spam is a large number of hyperlinks.)</label></p>
258
259<p><label for="moderation_keys">When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be held in the <a href="edit-comments.php?comment_status=moderated">moderation queue</a>. One word or IP per line. It will match inside words, so “press” will match “WordPress”.</label></p>
260<p>
261<textarea class="large-text code" id="moderation_keys" cols="50" rows="10" name="moderation_keys"></textarea>
262</p>
263</fieldset></td>
264</tr>
265<tr>
266<th scope="row">Comment Blacklist</th>
267<td><fieldset><legend class="screen-reader-text"><span>Comment Blacklist</span></legend>
268<p><label for="blacklist_keys">When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be marked as spam. One word or IP per line. It will match inside words, so “press” will match “WordPress”.</label></p>
269<p>
270<textarea class="large-text code" id="blacklist_keys" cols="50" rows="10" name="blacklist_keys">115.187.32.10
271124.123.28.9
27295.65.175.6
27395.65.160.198
27495.65.161.125
27595.65.186.137
27695.65.182.90
277188.3.106.3
27861.11.84.140
27961.17.177.48
28068.193.105.19
281121.245.200.142
282219.134.64.250
283125.40.0.25
28488.235.30.151
28581.85.224.19
286216.70.124.15
287220.161.165.37
28899.166.177.12
28979.74.104.166
29071.196.102.230
29171.196.102.230
29271.196.102.230
29387.209.75.180
294212.116.219.150
29587.202.118.240
296173.234.31.188
29774.176.157.246
298115.186.142.36
29991.74.132.46
300119.73.35.188
301125.163.250.9
302173.234.49.21
303173.234.2.30
304174.133.9.181
30592.241.168.209
30664.120.41.185
307208.100.27.180
308173.208.78.48
309124.120.43.91
310173.234.48.6
311174.34.171.33
312203.217.77.133
31379.161.88.112
314116.207.70.60
31577.75.105.70
316124.168.109.190
31784.36.155.10
318114.58.254.23
319222.165.222.84
320114.77.164.132
32197.126.57.80
32293.172.135.201
323173.234.1.5
324173.234.94.10
32524.14.240.13
326173.234.46.58
32780.81.159.20
32886.10.210.131
32993.173.206.230
33068.104.81.52
331173.165.181.241
33271.3.72.206
333115.187.35.225
33481.25.133.29
33566.90.104.57
336173.234.188.8
337124.176.179.196
338180.183.178.102
339223.182.9.4
340165.231.22.238
341180.234.44.187</textarea>
342</p>
343</fieldset></td>
344</tr>
345</tbody></table>
346</div>