Template:CreateHub/styles.css: Difference between revisions
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; | ||