Template:CreateHub/styles.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
/* ========================================= | /* ========================================= | ||
LAYOUT FIXES (The "Ghost" Method) | |||
========================================= */ | ========================================= */ | ||
/* 1. | /* 1. The Form becomes the master Flex container */ | ||
.creation-row { | .creation-row form { | ||
display: flex !important; | display: flex !important; | ||
flex-direction: row !important; | |||
align-items: center !important; | align-items: center !important; | ||
gap: 15px !important; /* Space between input and button */ | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | } | ||
/* 2. | /* 2. CRITICAL: Make the <p> invisible to the layout. | ||
'display: contents' makes the browser treat the children of <p> | |||
as if they were direct children of <form>. This kills margins/padding automatically. */ | |||
*/ | .creation-row p { | ||
.creation-row | display: contents !important; | ||
display: | |||
} | } | ||
/* 3. Hide the <br> | /* 3. Hide the <br> line break */ | ||
.creation-row br { | .creation-row br { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* 4. | /* 4. Fix for the Blank Page (InputBox) wrapper */ | ||
.creation-row .mw-inputbox-centered { | .creation-row .mw-inputbox-centered { | ||
margin: 0 !important; | |||
width: auto !important; | width: auto !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 { | .creation-row button { | ||
height: 40px !important; | height: 40px !important; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
| Line 57: | Line 52: | ||
} | } | ||
/* | /* ========================================= | ||
TEXT BOX (Left) | |||
========================================= */ | |||
.creation-row input[type="text"] { | .creation-row input[type="text"] { | ||
width: 260px !important; | width: 260px !important; | ||
| Line 74: | Line 71: | ||
} | } | ||
/* | /* ========================================= | ||
BUTTON (Right) | |||
========================================= */ | |||
.creation-row input[type="submit"], | .creation-row input[type="submit"], | ||
.creation-row button { | .creation-row button { | ||
width: 260px !important; | width: 260px !important; | ||
/* White Background, Black Border */ | |||
background: #fff !important; | background: #fff !important; | ||
background-color: #fff !important; | background-color: #fff !important; | ||
| Line 88: | Line 89: | ||
font-weight: 700 !important; | font-weight: 700 !important; | ||
cursor: pointer !important; | cursor: pointer !important; | ||
text-shadow: none !important; | |||
box-shadow: none !important; | box-shadow: none !important; | ||
transition: all 0.2s ease !important; | transition: all 0.2s ease !important; | ||
} | } | ||
/* NEW HOVER STYLE: Light Grey */ | |||
.creation-row input[type="submit"]:hover, | .creation-row input[type="submit"]:hover, | ||
.creation-row button:hover { | .creation-row button:hover { | ||
background-color: # | background-color: #f2f2f2 !important; /* Light Grey */ | ||
color: # | color: #000 !important; /* Text stays black */ | ||
border-color: #000 !important; | border-color: #000 !important; | ||
} | } | ||
Revision as of 15:03, 24 November 2025
/* =========================================
CONTAINER
========================================= */
.creation-row {
margin: 10px 0;
width: 100%;
}
/* =========================================
LAYOUT FIXES (The "Ghost" Method)
========================================= */
/* 1. The Form becomes the master Flex container */
.creation-row form {
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;
}
/* 2. CRITICAL: Make the <p> invisible to the layout.
'display: contents' makes the browser treat the children of <p>
as if they were direct children of <form>. This kills margins/padding automatically. */
.creation-row p {
display: contents !important;
}
/* 3. Hide the <br> line break */
.creation-row br {
display: none !important;
}
/* 4. Fix for the Blank Page (InputBox) wrapper */
.creation-row .mw-inputbox-centered {
margin: 0 !important;
width: auto !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;
}
/* =========================================
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;
/* White Background, Black Border */
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;
}
/* NEW HOVER STYLE: Light Grey */
.creation-row input[type="submit"]:hover,
.creation-row button:hover {
background-color: #f2f2f2 !important; /* Light Grey */
color: #000 !important; /* Text stays black */
border-color: #000 !important;
}