Template:CreateHub/styles.css: Difference between revisions

No edit summary
No edit summary
Line 8: Line 8:


/* =========================================
/* =========================================
   THE NUCLEAR OPTION
   LAYOUT FIXES (The "Ghost" Method)
   ========================================= */
   ========================================= */


/* 1. Force the row to Flex */
/* 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. Target EVERYTHING inside the creation row form.
/* 2. CRITICAL: Make the <p> invisible to the layout.
   The '*' selector means "I don't care if you are a <p>, <div>, or <form>".
   'display: contents' makes the browser treat the children of <p>
  We strip all margins and padding from the wrappers.  
  as if they were direct children of <form>. This kills margins/padding automatically. */
*/
.creation-row p {
.creation-row form,
   display: contents !important;
.creation-row form > * {
  margin: 0 !important;
  padding: 0 !important;
   display: flex !important; /* Forces nested wrappers to behave like rows */
  align-items: center !important;
  gap: 15px !important; /* Ensures the gap persists through wrappers */
}
}


/* 3. Hide the <br> explicitly */
/* 3. Hide the <br> line break */
.creation-row br {
.creation-row br {
   display: none !important;
   display: none !important;
}
}


/* 4. Reset the Blank Page wrapper so it plays nice with the rule above */
/* 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;
}
}


/* =========================================
/* =========================================
   INPUTS & BUTTONS (The Visuals)
   INPUT & BUTTON SIZING
   ========================================= */
   ========================================= */
/* We target the inputs specifically to give them their shape back,
  overriding the 'display: flex' we set on the containers above */
.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 {
  display: block !important; /* Behaves like a solid box */
   height: 40px !important;
   height: 40px !important;
   box-sizing: border-box !important;
   box-sizing: border-box !important;
Line 57: Line 52:
}
}


/* --- Text Box --- */
/* =========================================
  TEXT BOX (Left)
  ========================================= */
.creation-row input[type="text"] {
.creation-row input[type="text"] {
   width: 260px !important;
   width: 260px !important;
Line 74: Line 71:
}
}


/* --- Button --- */
/* =========================================
  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;
  text-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: #000 !important;
   background-color: #f2f2f2 !important; /* Light Grey */
   color: #fff !important;
   color: #000 !important; /* Text stays black */
   border-color: #000 !important;
   border-color: #000 !important;
}
}