Template:CreateHub/styles.css: Difference between revisions

No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* =========================================
  CONTAINER & LAYOUT
  ========================================= */
.creation-row {
.creation-row {
   margin: 10px 0;
   margin: 10px 0;
   width: 100%;
   width: 100%;
  display: flex; /* Ensures the row itself behaves predictably */
}
}


/* Force the form inside to be a flex row.
/* Force InputBox to align horizontally */
  Note: InputBox adds a wrapper div (.mw-inputbox-centered).
.creation-row .mw-inputbox-centered {
  We target both the direct form AND the nested form.
  margin: 0 !important;
*/
  white-space: nowrap !important; /* Prevents wrapping */
.creation-row form,
.creation-row .mw-inputbox-centered form {
   display: flex !important;
   display: flex !important;
   align-items: center !important;
   align-items: center !important;
   gap: 15px !important; /* The space between the text box and button */
   gap: 15px !important;
  margin: 0 !important;
}
}


/* Fix for InputBox wrapper to not break flex flow */
.creation-row form {
.creation-row .mw-inputbox-centered {
   display: flex !important;
   margin: 0 !important;
   gap: 15px !important;
   width: auto !important;
  align-items: center !important;
}
}


/* =========================================
/* Shared Styling */
  SHARED SIZING (Both Text & Button)
  ========================================= */
/* Target ANY text input and ANY submit button inside the row */
.creation-row input[type="text"],
.creation-row input[type="text"],
.creation-row input[type="submit"] {
.creation-row input[type="submit"] {
Line 35: Line 25:
   box-sizing: border-box !important;
   box-sizing: border-box !important;
   font-size: 14px !important;
   font-size: 14px !important;
  font-family: sans-serif !important;
}
}


/* =========================================
/* Text Box */
  THE TEXT BOX (Left Side)
  ========================================= */
.creation-row input[type="text"] {
.creation-row input[type="text"] {
   width: 260px !important; /* Force width */
   width: 260px !important;
   background-color: #fff !important;
   background: #fff !important;
   border: 1px solid #a2a9b1 !important; /* Standard Grey Border */
   border: 1px solid #a2a9b1 !important;
  border-radius: 2px !important;
   padding: 0 10px !important;
   padding: 0 10px !important;
  color: #000 !important;
  box-shadow: none !important;
  text-align: left !important;
}
/* Blue border on focus */
.creation-row input[type="text"]:focus {
  border-color: #3366cc !important;
  outline: none !important;
}
}


/* =========================================
/* Button */
  THE BUTTON (Right Side)
  ========================================= */
.creation-row input[type="submit"] {
.creation-row input[type="submit"] {
   width: 260px !important; /* Force width */
   width: 260px !important;
 
  /* FORCE THE WHITE & BLACK STYLE */
   background: #fff !important;
   background: #fff !important;
  background-color: #fff !important; /* Doubled for safety */
  background-image: none !important; /* Kill any gradients */
 
   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; /* Bold */
   font-weight: 700 !important;
 
   cursor: pointer !important;
   cursor: pointer !important;
   text-shadow: none !important;
   border-radius: 2px !important;
  padding: 0 10px !important;
  margin: 0 !important;
 
  transition: all 0.2s ease !important;
}
}


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