Template:CreateHub/styles.css
Appearance
/* Container: Ensures the row holds the items properly */
.creation-row {
margin: 10px 0;
width: 100%;
}
/* UNIVERSAL LAYOUT
Target the form inside the creation row.
We use 'display: flex' to force the input and button to sit side-by-side.
*/
.creation-row form {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
gap: 10px !important; /* Space between input and button */
margin: 0 !important;
}
/* FIX FOR EXTRA WRAPPERS
InputBox sometimes adds extra divs or paragraphs.
This ensures flexbox applies even if there are wrappers.
*/
.creation-row .mw-inputbox-centered {
width: auto !important;
margin: 0 !important;
}
/* ============================
1. INPUT FIELDS (The Text Box)
============================ */
.creation-row input[type="text"] {
/* Match the Clean "Blank Page" Look */
width: 260px !important;
height: 40px !important;
padding: 0 10px !important;
/* Standard Grey Border */
border: 1px solid #a2a9b1 !important;
border-radius: 2px !important;
background-color: #fff !important;
/* Text Styles */
font-family: sans-serif !important;
font-size: 14px !important;
color: #000 !important;
text-align: left !important; /* Left align, not centered */
font-style: normal !important; /* Normal, not italic */
box-shadow: inset 0 0 0 1px transparent !important;
}
.creation-row input[type="text"]:focus {
border-color: #3366cc !important;
box-shadow: inset 0 0 0 1px #3366cc !important;
outline: none !important;
}
/* ============================
2. BUTTONS (The Clickable Part)
============================ */
/* We target multiple selectors to catch both PageForms and InputBox buttons */
.creation-row input[type="submit"],
.creation-row button,
.creation-row .mw-ui-button {
/* Match the Bold "Blank Page" Look */
width: 260px !important;
height: 40px !important;
padding: 0 10px !important;
/* White Background, Black Border */
background: #fff !important;
background-color: #fff !important;
border: 1.5px solid #000 !important;
border-radius: 2px !important;
/* Text Styles */
color: #000 !important;
font-weight: 700 !important; /* Bold text */
font-size: 14px !important;
cursor: pointer !important;
text-shadow: none !important;
box-shadow: none !important;
/* Transitions */
transition: background-color 0.2s, color 0.2s !important;
}
/* Hover Effect */
.creation-row input[type="submit"]:hover,
.creation-row button:hover,
.creation-row .mw-ui-button:hover {
background-color: #000 !important;
color: #fff !important;
border-color: #000 !important;
}