Template:CreateHub/styles.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
} | } | ||
/* | /* UNIVERSAL FORM STYLING | ||
.creation-row | This works for both PageForms (Ecosystem buttons) and InputBox (Blank Page) | ||
because we target 'form' directly inside '.creation-row' | |||
*/ | |||
.creation-row form { | |||
.creation-row | |||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
| Line 23: | Line 17: | ||
margin: 0 !important; | margin: 0 !important; | ||
justify-content: flex-start !important; | justify-content: flex-start !important; | ||
width: 100%; /* Ensures the form takes up the row space */ | |||
} | |||
/* Handle the legacy wrapper for the "Blank Page" button | |||
(InputBox adds this extra div, so we ensure it doesn't break layout) | |||
*/ | |||
.creation-row .mw-inputbox-centered { | |||
width: 100% !important; | |||
margin: 0 !important; | |||
display: flex !important; | |||
} | } | ||
/* FIXED, MATCHING SIZE for both controls */ | /* FIXED, MATCHING SIZE for both controls */ | ||
.creation-row | .creation-row form input[type="text"], | ||
.creation-row | .creation-row form input[type="submit"] { | ||
width: 260px; | width: 260px; | ||
height: 40px; | height: 40px; | ||
| Line 34: | Line 38: | ||
/* --- INPUT (left side) --- */ | /* --- INPUT (left side) --- */ | ||
.creation-row | .creation-row form input[type="text"] { | ||
border: 1.5px solid #000; | border: 1.5px solid #000; | ||
border-radius: 2px; | border-radius: 2px; | ||
| Line 41: | Line 45: | ||
text-align: center !important; | text-align: center !important; | ||
font-style: italic; | font-style: italic; | ||
padding: 0 10px; /* Added padding for better text positioning */ | |||
} | } | ||
/* Placeholder styling */ | /* Placeholder styling */ | ||
.creation-row | .creation-row form input[type="text"]::placeholder { | ||
text-align: center !important; | text-align: center !important; | ||
color: #777; | color: #777; | ||
| Line 51: | Line 56: | ||
/* --- BUTTON (right side) --- */ | /* --- BUTTON (right side) --- */ | ||
.creation-row | .creation-row form input[type="submit"] { | ||
border: 1.5px solid #000 !important; | border: 1.5px solid #000 !important; | ||
border-radius: 2px !important; | border-radius: 2px !important; | ||
| Line 73: | Line 78: | ||
/* Hover state */ | /* Hover state */ | ||
.creation-row | .creation-row form input[type="submit"]:hover { | ||
background-color: #f2f2f2 !important; | background-color: #f2f2f2 !important; | ||
transform: translateY(-1px); | transform: translateY(-1px); | ||
| Line 79: | Line 84: | ||
/* Active state */ | /* Active state */ | ||
.creation-row | .creation-row form input[type="submit"]:active { | ||
transform: translateY(0); | transform: translateY(0); | ||
} | } | ||
/* Disabled state */ | /* Disabled state */ | ||
.creation-row | .creation-row form input[type="submit"]:disabled { | ||
border: 1.5px solid #000 !important; | border: 1.5px solid #000 !important; | ||
background: transparent !important; | background: transparent !important; | ||
Revision as of 14:14, 24 November 2025
/* Row wrapper: centers each pair horizontally */
.creation-row {
display: flex !important;
justify-content: flex-start !important;
margin: 0.75rem 0;
width: 100% !important;
}
/* UNIVERSAL FORM STYLING
This works for both PageForms (Ecosystem buttons) and InputBox (Blank Page)
because we target 'form' directly inside '.creation-row'
*/
.creation-row form {
display: flex;
align-items: center;
gap: 1rem;
margin: 0 !important;
justify-content: flex-start !important;
width: 100%; /* Ensures the form takes up the row space */
}
/* Handle the legacy wrapper for the "Blank Page" button
(InputBox adds this extra div, so we ensure it doesn't break layout)
*/
.creation-row .mw-inputbox-centered {
width: 100% !important;
margin: 0 !important;
display: flex !important;
}
/* FIXED, MATCHING SIZE for both controls */
.creation-row form input[type="text"],
.creation-row form input[type="submit"] {
width: 260px;
height: 40px;
box-sizing: border-box;
}
/* --- INPUT (left side) --- */
.creation-row form input[type="text"] {
border: 1.5px solid #000;
border-radius: 2px;
background: #fff;
font-size: 0.95rem;
text-align: center !important;
font-style: italic;
padding: 0 10px; /* Added padding for better text positioning */
}
/* Placeholder styling */
.creation-row form input[type="text"]::placeholder {
text-align: center !important;
color: #777;
font-style: italic;
}
/* --- BUTTON (right side) --- */
.creation-row form input[type="submit"] {
border: 1.5px solid #000 !important;
border-radius: 2px !important;
background: transparent !important;
color: #000 !important;
font-weight: 600;
font-size: 0.95rem;
cursor: pointer;
box-shadow: none !important;
/* Matching height fix */
height: 40px !important;
padding: 0 !important;
line-height: 40px !important;
transition:
background-color 0.2s ease,
transform 0.15s ease,
border-color 0.15s ease;
}
/* Hover state */
.creation-row form input[type="submit"]:hover {
background-color: #f2f2f2 !important;
transform: translateY(-1px);
}
/* Active state */
.creation-row form input[type="submit"]:active {
transform: translateY(0);
}
/* Disabled state */
.creation-row form input[type="submit"]:disabled {
border: 1.5px solid #000 !important;
background: transparent !important;
color: #000 !important;
cursor: not-allowed;
opacity: 1;
}