Template:CreateHub/styles.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* Container: Ensures the row holds the items properly */ | ||
.creation-row { | .creation-row { | ||
margin: 10px 0; | |||
width: 100%; | |||
margin: | |||
width: 100% | |||
} | } | ||
/* UNIVERSAL | /* UNIVERSAL LAYOUT | ||
Target the form inside the creation row. | |||
We use 'display: flex' to force the input and button to sit side-by-side. | |||
*/ | */ | ||
.creation-row form { | .creation-row form { | ||
display: flex; | display: flex !important; | ||
align-items: center; | flex-direction: row !important; | ||
gap: | align-items: center !important; | ||
gap: 10px !important; /* Space between input and button */ | |||
margin: 0 !important; | margin: 0 !important; | ||
} | } | ||
/* | /* FIX FOR EXTRA WRAPPERS | ||
InputBox sometimes adds extra divs or paragraphs. | |||
This ensures flexbox applies even if there are wrappers. | |||
*/ | */ | ||
.creation-row .mw-inputbox-centered { | .creation-row .mw-inputbox-centered { | ||
width: | width: auto !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
} | } | ||
/* | /* ============================ | ||
.creation-row | 1. INPUT FIELDS (The Text Box) | ||
============================ */ | |||
width: 260px; | .creation-row input[type="text"] { | ||
height: 40px; | /* Match the Clean "Blank Page" Look */ | ||
width: 260px !important; | |||
height: 40px !important; | |||
padding: 0 10px !important; | |||
/* Standard Grey Border */ | |||
border: 1px solid #a2a9b1 !important; | |||
border-radius: 2px !important; | |||
background-color: #fff !important; | |||
/* Text Styles */ | |||
font-family: sans-serif !important; | |||
font-size: 14px !important; | |||
color: #000 !important; | |||
text-align: left !important; /* Left align, not centered */ | |||
font-style: normal !important; /* Normal, not italic */ | |||
box-shadow: inset 0 0 0 1px transparent !important; | |||
} | } | ||
.creation-row input[type="text"]:focus { | |||
.creation-row | border-color: #3366cc !important; | ||
box-shadow: inset 0 0 0 1px #3366cc !important; | |||
border- | outline: none !important; | ||
} | } | ||
/* | /* ============================ | ||
.creation-row | 2. BUTTONS (The Clickable Part) | ||
============================ */ | |||
/* We target multiple selectors to catch both PageForms and InputBox buttons */ | |||
.creation-row input[type="submit"], | |||
.creation-row button, | |||
.creation-row .mw-ui-button { | |||
/* | /* Match the Bold "Blank Page" Look */ | ||
width: 260px !important; | |||
height: 40px !important; | |||
padding: 0 10px !important; | |||
/* White Background, Black Border */ | |||
background: #fff !important; | |||
background-color: #fff !important; | |||
border: 1.5px solid #000 !important; | border: 1.5px solid #000 !important; | ||
border-radius: 2px !important; | border-radius: 2px !important; | ||
/* Text Styles */ | |||
color: #000 !important; | color: #000 !important; | ||
font-weight: | font-weight: 700 !important; /* Bold text */ | ||
font-size: | font-size: 14px !important; | ||
cursor: pointer; | cursor: pointer !important; | ||
text-shadow: none !important; | |||
box-shadow: none !important; | box-shadow: none !important; | ||
/* | /* Transitions */ | ||
transition: background-color 0.2s, color 0.2s !important; | |||
transition: | |||
} | } | ||
/* Hover | /* Hover Effect */ | ||
.creation-row | .creation-row input[type="submit"]:hover, | ||
.creation-row button:hover, | |||
.creation-row .mw-ui-button:hover { | |||
background-color: #000 !important; | |||
color: #fff !important; | |||
border-color: #000 !important; | |||
.creation-row | |||
.creation-row | |||
color: #000 !important | |||
} | } | ||