Template:CreateHub/styles.css
Appearance
/* =========================================
CONTAINER
========================================= */
.creation-row {
margin: 10px 0;
width: 100%;
}
/* =========================================
LAYOUT FIXES (The Critical Part)
========================================= */
/* 1. Target the FORM itself */
.creation-row form {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
margin: 0 !important;
}
/* 2. CRITICAL FIX: PageForms wraps inputs in a <p> tag.
We must make this <p> a flex container too, or the items will stack. */
.creation-row form p {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
gap: 15px !important; /* Space between input and button */
margin: 0 !important;
padding: 0 !important;
width: 100%;
}
/* 3. Hide the <br> tag that PageForms inserts */
.creation-row br {
display: none !important;
}
/* 4. Fix for the Blank Page wrapper (InputBox) */
.creation-row .mw-inputbox-centered {
width: auto !important;
margin: 0 !important;
display: flex !important;
align-items: center !important;
gap: 15px !important;
}
/* InputBox sometimes puts the form inside the centered div */
.creation-row .mw-inputbox-centered form {
gap: 15px !important;
}
/* =========================================
INPUT & BUTTON STYLING (Shared)
========================================= */
.creation-row input[type="text"],
.creation-row input[type="submit"],
.creation-row button {
height: 40px !important;
box-sizing: border-box !important;
font-family: sans-serif !important;
font-size: 14px !important;
margin: 0 !important;
}
/* Text Box (Left) */
.creation-row input[type="text"] {
width: 260px !important;
background-color: #fff !important;
border: 1px solid #a2a9b1 !important;
border-radius: 2px !important;
padding: 0 10px !important;
color: #000 !important;
text-align: left !important;
box-shadow: none !important;
}
.creation-row input[type="text"]:focus {
border-color: #3366cc !important;
outline: none !important;
}
/* Button (Right) */
.creation-row input[type="submit"],
.creation-row button {
width: 260px !important;
background: #fff !important;
background-color: #fff !important;
background-image: none !important;
border: 1.5px solid #000 !important;
border-radius: 2px !important;
color: #000 !important;
font-weight: 700 !important;
cursor: pointer !important;
text-shadow: none !important;
box-shadow: none !important;
transition: all 0.2s ease !important;
}
.creation-row input[type="submit"]:hover,
.creation-row button:hover {
background-color: #000 !important;
color: #fff !important;
border-color: #000 !important;
}