Template:CreateHub/styles.css: Difference between revisions

No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* =========================================
  CONTAINER
  ========================================= */
.creation-row {
.creation-row {
   margin: 10px 0;
   margin: 10px 0;
Line 7: Line 4:
}
}


/* =========================================
/* Force InputBox to align horizontally */
  THE NUCLEAR OPTION
.creation-row .mw-inputbox-centered {
  ========================================= */
  margin: 0 !important;
 
  white-space: nowrap !important; /* Prevents wrapping */
/* 1. Force the row to Flex */
.creation-row {
   display: flex !important;
   display: flex !important;
   align-items: center !important;
   align-items: center !important;
  gap: 15px !important;
}
}


/* 2. Target EVERYTHING inside the creation row form.
.creation-row form {
  The '*' selector means "I don't care if you are a <p>, <div>, or <form>".
   display: flex !important;
  We strip all margins and padding from the wrappers.
   gap: 15px !important;
*/
.creation-row form,
.creation-row form > * {
   margin: 0 !important;
  padding: 0 !important;
   display: flex !important; /* Forces nested wrappers to behave like rows */
   align-items: center !important;
   align-items: center !important;
  gap: 15px !important; /* Ensures the gap persists through wrappers */
}
}


/* 3. Hide the <br> explicitly */
/* Shared Styling */
.creation-row br {
  display: none !important;
}
 
/* 4. Reset the Blank Page wrapper so it plays nice with the rule above */
.creation-row .mw-inputbox-centered {
  width: auto !important;
}
 
/* =========================================
  INPUTS & BUTTONS (The Visuals)
  ========================================= */
 
/* 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 {
  display: block !important; /* Behaves like a solid box */
   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;
}
}


/* --- Text Box --- */
/* Text Box */
.creation-row input[type="text"] {
.creation-row input[type="text"] {
   width: 260px !important;
   width: 260px !important;
   background-color: #fff !important;
   background: #fff !important;
   border: 1px solid #a2a9b1 !important;
   border: 1px solid #a2a9b1 !important;
  border-radius: 2px !important;
   padding: 0 10px !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 --- */
/* Button */
.creation-row input[type="submit"],
.creation-row input[type="submit"] {
.creation-row button {
   width: 260px !important;
   width: 260px !important;
   background: #fff !important;
   background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
 
   border: 1.5px solid #000 !important;
   border: 1.5px solid #000 !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;
   box-shadow: none !important;
   border-radius: 2px !important;
  text-shadow: none !important;
 
  transition: all 0.2s ease !important;
}
}


.creation-row input[type="submit"]:hover,
.creation-row input[type="submit"]:hover {
.creation-row button:hover {
   background-color: #f2f2f2 !important;
   background-color: #000 !important;
   color: #000 !important;
  color: #fff !important;
   border-color: #000 !important;
}
}