Template:CreateHub/styles.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* ========================================= | /* ========================================= | ||
CONTAINER | CONTAINER | ||
========================================= */ | ========================================= */ | ||
.creation-row { | .creation-row { | ||
margin: 10px 0; | margin: 10px 0; | ||
width: 100%; | width: 100%; | ||
} | } | ||
/* | /* ========================================= | ||
LAYOUT FIXES (The "Nuclear" Option) | |||
========================================= */ | |||
*/ | /* 1. Force the form to behave as a row */ | ||
. | .creation-row form { | ||
.creation-row | |||
display: flex !important; | display: flex !important; | ||
flex-direction: row !important; | |||
align-items: center !important; | align-items: center !important; | ||
gap: 15px !important; | gap: 15px !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
} | } | ||
/* Fix for InputBox wrapper | /* 2. CRITICAL: PageForms often wraps inputs in <p> tags. | ||
'display: contents' makes the <p> invisible to the layout, | |||
so the inputs inside it sit side-by-side. */ | |||
.creation-row p { | |||
display: contents !important; | |||
} | |||
/* 3. CRITICAL: Hide the line breaks PageForms inserts */ | |||
.creation-row br { | |||
display: none !important; | |||
} | |||
/* 4. Fix for InputBox wrapper (Blank Page) */ | |||
.creation-row .mw-inputbox-centered { | .creation-row .mw-inputbox-centered { | ||
width: auto !important; | |||
margin: 0 !important; | margin: 0 !important; | ||
} | } | ||
/* ========================================= | /* ========================================= | ||
INPUT & BUTTON SIZING | |||
========================================= */ | ========================================= */ | ||
.creation-row input[type="text"], | .creation-row input[type="text"], | ||
.creation-row input[type="submit"] { | .creation-row input[type="submit"], | ||
.creation-row button { | |||
height: 40px !important; | height: 40px !important; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
font-family: sans-serif !important; | |||
font-size: 14px !important; | font-size: 14px !important; | ||
margin: 0 !important; /* Remove default margins to ensure alignment */ | |||
} | } | ||
/* ========================================= | /* ========================================= | ||
TEXT INPUT (Left Side) | |||
========================================= */ | ========================================= */ | ||
.creation-row input[type="text"] { | .creation-row input[type="text"] { | ||
width: 260px !important; | width: 260px !important; | ||
background-color: #fff !important; | background-color: #fff !important; | ||
border: 1px solid #a2a9b1 !important; | border: 1px solid #a2a9b1 !important; | ||
border-radius: 2px !important; | border-radius: 2px !important; | ||
padding: 0 10px !important; | padding: 0 10px !important; | ||
color: #000 !important; | color: #000 !important; | ||
text-align: left !important; | |||
box-shadow: none !important; | box-shadow: none !important; | ||
} | } | ||
.creation-row input[type="text"]:focus { | .creation-row input[type="text"]:focus { | ||
border-color: #3366cc !important; | border-color: #3366cc !important; | ||
| Line 59: | Line 70: | ||
/* ========================================= | /* ========================================= | ||
BUTTON (Right Side) | |||
========================================= */ | ========================================= */ | ||
.creation-row input[type="submit"] { | /* We target 'button' too, just in case PageForms switches tags */ | ||
width: 260px !important; | .creation-row input[type="submit"], | ||
.creation-row button { | |||
width: 260px !important; | |||
/* FORCE | /* FORCE WHITE & BLACK STYLE */ | ||
background: #fff !important; | background: #fff !important; | ||
background-color: #fff !important; | background-color: #fff !important; | ||
background-image: none !important; /* | background-image: none !important; /* Removes the grey gradient seen in your screenshot */ | ||
border: 1.5px solid #000 !important; | border: 1.5px solid #000 !important; | ||
border-radius: 2px !important; | border-radius: 2px !important; | ||
color: #000 !important; | color: #000 !important; | ||
font-weight: 700 !important; | font-weight: 700 !important; | ||
cursor: pointer !important; | cursor: pointer !important; | ||
text-shadow: none !important; | text-shadow: none !important; | ||
box-shadow: none !important; | |||
transition: all 0.2s ease !important; | transition: all 0.2s ease !important; | ||
} | } | ||
/* Hover | /* Hover Effect */ | ||
.creation-row input[type="submit"]:hover { | .creation-row input[type="submit"]:hover, | ||
.creation-row button:hover { | |||
background-color: #000 !important; | background-color: #000 !important; | ||
color: #fff !important; | color: #fff !important; | ||
border-color: #000 !important; | border-color: #000 !important; | ||
} | } | ||
Revision as of 14:40, 24 November 2025
/* =========================================
CONTAINER
========================================= */
.creation-row {
margin: 10px 0;
width: 100%;
}
/* =========================================
LAYOUT FIXES (The "Nuclear" Option)
========================================= */
/* 1. Force the form to behave as a row */
.creation-row form {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
gap: 15px !important;
margin: 0 !important;
}
/* 2. CRITICAL: PageForms often wraps inputs in <p> tags.
'display: contents' makes the <p> invisible to the layout,
so the inputs inside it sit side-by-side. */
.creation-row p {
display: contents !important;
}
/* 3. CRITICAL: Hide the line breaks PageForms inserts */
.creation-row br {
display: none !important;
}
/* 4. Fix for InputBox wrapper (Blank Page) */
.creation-row .mw-inputbox-centered {
width: auto !important;
margin: 0 !important;
}
/* =========================================
INPUT & BUTTON SIZING
========================================= */
.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; /* Remove default margins to ensure alignment */
}
/* =========================================
TEXT INPUT (Left Side)
========================================= */
.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 Side)
========================================= */
/* We target 'button' too, just in case PageForms switches tags */
.creation-row input[type="submit"],
.creation-row button {
width: 260px !important;
/* FORCE WHITE & BLACK STYLE */
background: #fff !important;
background-color: #fff !important;
background-image: none !important; /* Removes the grey gradient seen in your screenshot */
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;
}
/* Hover Effect */
.creation-row input[type="submit"]:hover,
.creation-row button:hover {
background-color: #000 !important;
color: #fff !important;
border-color: #000 !important;
}