Template:CreateHub/styles.css
Appearance
/* Center the pair horizontally */
.creation-row {
display: flex;
justify-content: center;
margin: 0.75rem 0;
}
/* Make the inputbox output act as a flex row */
.creation-row .mw-inputbox-centered {
display: flex;
justify-content: center;
}
.creation-row .mw-inputbox-centered form {
display: flex;
align-items: center;
gap: 1rem;
}
/* Fixed, matching size */
.creation-row input[type="text"],
.creation-row input[type="submit"] {
width: 260px;
height: 40px;
box-sizing: border-box;
}
/* --- Text input styling --- */
.creation-row input[type="text"] {
border: 1.5px solid #000;
border-radius: 2px;
background: #fff;
font-size: 0.95rem;
text-align: center;
font-style: italic;
}
.creation-row input[type="text"]::placeholder {
text-align: center;
color: #777;
font-style: italic;
}
/* --- Submit button: nuke default styles, rebuild --- */
.creation-row input[type="submit"] {
all: unset; /* remove MediaWiki/UA styles */
box-sizing: border-box;
display: inline-block;
width: 260px;
height: 40px;
border: 1.5px solid #000;
border-radius: 2px;
background: transparent;
color: #000;
font-weight: 600;
font-size: 0.95rem;
text-align: center;
cursor: pointer;
transition:
background-color 0.2s ease,
transform 0.15s ease,
border-color 0.15s ease;
}
/* Hover (enabled only) */
.creation-row input[type="submit"]:hover:not(:disabled) {
background-color: #f2f2f2;
transform: translateY(-1px);
}
/* Active */
.creation-row input[type="submit"]:active:not(:disabled) {
transform: translateY(0);
}
/* Disabled state */
.creation-row input[type="submit"]:disabled {
background-color: #f5f5f5;
border-color: #ccc;
color: #888;
cursor: not-allowed;
}