MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 6: | Line 6: | ||
}); | }); | ||
/* | /* Ensure both <form> and <div> wrappers for #forminput are styled */ | ||
form.createbox { | form.createbox, div.createbox { | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
| Line 16: | Line 16: | ||
} | } | ||
/* | /* Style the text input */ | ||
form.createbox input[name="wpNewTitle"] { | form.createbox input[name="wpNewTitle"], | ||
div.createbox input[name="wpNewTitle"] { | |||
width: 300px; | width: 300px; | ||
padding: 0.4em; | padding: 0.4em; | ||
| Line 27: | Line 28: | ||
} | } | ||
form.createbox input[type="submit"] { | /* Style the submit button */ | ||
form.createbox input[type="submit"], | |||
div.createbox input[type="submit"] { | |||
background-color: #2e4e2e; | background-color: #2e4e2e; | ||
color: #eee; | color: #eee; | ||
Revision as of 19:50, 10 May 2025
/* CSS placed here will be applied to all skins */
$(document).ready(function () {
$('form.createbox input[name="wpNewTitle"]').removeAttr('autofocus');
});
/* Ensure both <form> and <div> wrappers for #forminput are styled */
form.createbox, div.createbox {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0 auto;
width: fit-content;
}
/* Style the text input */
form.createbox input[name="wpNewTitle"],
div.createbox input[name="wpNewTitle"] {
width: 300px;
padding: 0.4em;
margin-bottom: 0.6em;
text-align: center;
background-color: #111;
color: #ccc;
border: 1px solid #444;
}
/* Style the submit button */
form.createbox input[type="submit"],
div.createbox input[type="submit"] {
background-color: #2e4e2e;
color: #eee;
border: 1px solid #4a774a;
padding: 0.4em 1em;
border-radius: 4px;
font-weight: bold;
cursor: pointer;
}