MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 6: | Line 6: | ||
}); | }); | ||
/* | /* Fixes for Page Forms #forminput layout */ | ||
form.createbox { | form.createbox { | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | |||
margin: 0 auto; | margin: 0 auto; | ||
width: fit-content; | |||
} | } | ||
/* Optional | /* Optional styling for the input and button */ | ||
form.createbox input[name="wpNewTitle"] { | form.createbox input[name="wpNewTitle"] { | ||
width: | width: 300px; | ||
padding: 0.4em; | padding: 0.4em; | ||
margin-bottom: 0. | margin-bottom: 0.6em; | ||
text-align: center; | text-align: center; | ||
background-color: #111; | background-color: #111; | ||
Revision as of 19:46, 10 May 2025
/* CSS placed here will be applied to all skins */
$(document).ready(function () {
$('form.createbox input[name="wpNewTitle"]').removeAttr('autofocus');
});
/* Fixes for Page Forms #forminput layout */
form.createbox {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin: 0 auto;
width: fit-content;
}
/* Optional styling for the input and button */
form.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;
}
form.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;
}