MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
| Line 5: | Line 5: | ||
$('form.createbox input[name="wpNewTitle"]').removeAttr('autofocus'); | $('form.createbox input[name="wpNewTitle"]').removeAttr('autofocus'); | ||
}); | }); | ||
/* Center all Page Forms forminput boxes */ | |||
form.createbox { | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
margin: 0 auto; | |||
} | |||
/* Optional: style input and button */ | |||
form.createbox input[name="wpNewTitle"] { | |||
width: 280px; | |||
padding: 0.4em; | |||
margin-bottom: 0.5em; | |||
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; | |||
} | |||
Revision as of 19:42, 10 May 2025
/* CSS placed here will be applied to all skins */
$(document).ready(function () {
$('form.createbox input[name="wpNewTitle"]').removeAttr('autofocus');
});
/* Center all Page Forms forminput boxes */
form.createbox {
display: flex;
flex-direction: column;
align-items: center;
margin: 0 auto;
}
/* Optional: style input and button */
form.createbox input[name="wpNewTitle"] {
width: 280px;
padding: 0.4em;
margin-bottom: 0.5em;
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;
}