Template:CreateHub/styles.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
/* ========================================= | /* ========================================= | ||
LAYOUT | THE FIX: RECURSIVE FLEX LAYOUT | ||
========================================= */ | ========================================= */ | ||
/* 1. | /* 1. Hide the Line Break <br> */ | ||
.creation-row form { | .creation-row br { | ||
display: none !important; | |||
} | |||
/* 2. Force the Form AND any immediate children (p, div) to be Flex Rows. | |||
This handles the nesting: Form -> Paragraph -> Inputs */ | |||
.creation-row form, | |||
.creation-row form > p, | |||
.creation-row form > div { | |||
display: flex !important; | display: flex !important; | ||
flex-direction: row !important; | flex-direction: row !important; | ||
align-items: center !important; | align-items: center !important; | ||
/* Kill the indentation */ | |||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
/* Space between items */ | |||
gap: 15px !important; | |||
} | } | ||
/* 3. Handle the Blank Page wrapper specifically | |||
(InputBox adds an extra div that needs to behave) */ | |||
/* 3. | |||
.creation-row .mw-inputbox-centered { | .creation-row .mw-inputbox-centered { | ||
display: flex !important; | |||
align-items: center !important; | |||
width: auto !important; | |||
margin: 0 !important; | margin: 0 !important; | ||
} | } | ||
/* ========================================= | /* ========================================= | ||
VISUALS: INPUTS & BUTTONS | |||
========================================= */ | ========================================= */ | ||
/* Shared Sizing & Reset */ | |||
.creation-row input[type="text"], | .creation-row input[type="text"], | ||
.creation-row input[type="submit"], | .creation-row input[type="submit"], | ||
| Line 49: | Line 54: | ||
font-family: sans-serif !important; | font-family: sans-serif !important; | ||
font-size: 14px !important; | font-size: 14px !important; | ||
margin: 0 !important; | margin: 0 !important; /* Remove individual margins so gap handles spacing */ | ||
} | } | ||
/* | /* --- TEXT BOX (Left) --- */ | ||
.creation-row input[type="text"] { | .creation-row input[type="text"] { | ||
width: 260px !important; | width: 260px !important; | ||
| Line 66: | Line 69: | ||
} | } | ||
/* Focus State */ | |||
.creation-row input[type="text"]:focus { | .creation-row input[type="text"]:focus { | ||
border-color: #3366cc !important; | border-color: #3366cc !important; | ||
| Line 71: | Line 75: | ||
} | } | ||
/* | /* --- 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 */ | /* Theme: White Background, Black Border */ | ||
background: #fff !important; | background: #fff !important; | ||
background-color: #fff !important; | background-color: #fff !important; | ||
background-image: none !important; | background-image: none !important; /* Removes default gradient */ | ||
border: 1.5px solid #000 !important; | border: 1.5px solid #000 !important; | ||
| Line 87: | Line 89: | ||
color: #000 !important; | color: #000 !important; | ||
font-weight: 700 !important; | font-weight: 700 !important; /* Bold */ | ||
cursor: pointer !important; | cursor: pointer !important; | ||
| Line 95: | Line 97: | ||
} | } | ||
/* | /* HOVER STATE: Light Grey */ | ||
.creation-row input[type="submit"]:hover, | .creation-row input[type="submit"]:hover, | ||
.creation-row button:hover { | .creation-row button:hover { | ||
background-color: #f2f2f2 !important; /* Light Grey */ | background-color: #f2f2f2 !important; /* Light Grey */ | ||
color: #000 !important; | color: #000 !important; | ||
border-color: #000 !important; | border-color: #000 !important; | ||
} | } | ||
Revision as of 15:05, 24 November 2025
/* =========================================
CONTAINER
========================================= */
.creation-row {
margin: 10px 0;
width: 100%;
}
/* =========================================
THE FIX: RECURSIVE FLEX LAYOUT
========================================= */
/* 1. Hide the Line Break <br> */
.creation-row br {
display: none !important;
}
/* 2. Force the Form AND any immediate children (p, div) to be Flex Rows.
This handles the nesting: Form -> Paragraph -> Inputs */
.creation-row form,
.creation-row form > p,
.creation-row form > div {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
/* Kill the indentation */
margin: 0 !important;
padding: 0 !important;
/* Space between items */
gap: 15px !important;
}
/* 3. Handle the Blank Page wrapper specifically
(InputBox adds an extra div that needs to behave) */
.creation-row .mw-inputbox-centered {
display: flex !important;
align-items: center !important;
width: auto !important;
margin: 0 !important;
}
/* =========================================
VISUALS: INPUTS & BUTTONS
========================================= */
/* Shared Sizing & Reset */
.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 individual margins so gap handles spacing */
}
/* --- 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;
}
/* Focus State */
.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;
/* Theme: White Background, Black Border */
background: #fff !important;
background-color: #fff !important;
background-image: none !important; /* Removes default gradient */
border: 1.5px solid #000 !important;
border-radius: 2px !important;
color: #000 !important;
font-weight: 700 !important; /* Bold */
cursor: pointer !important;
text-shadow: none !important;
box-shadow: none !important;
transition: all 0.2s ease !important;
}
/* HOVER STATE: Light Grey */
.creation-row input[type="submit"]:hover,
.creation-row button:hover {
background-color: #f2f2f2 !important; /* Light Grey */
color: #000 !important;
border-color: #000 !important;
}