Template:CreateHub/styles.css

Revision as of 14:28, 24 November 2025 by C (talk | contribs)
/* =========================================
   CONTAINER & LAYOUT
   ========================================= */
.creation-row {
  margin: 10px 0;
  width: 100%;
  display: flex; /* Ensures the row itself behaves predictably */
}

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

/* Fix for InputBox wrapper to not break flex flow */
.creation-row .mw-inputbox-centered {
  margin: 0 !important;
  width: auto !important;
}

/* =========================================
   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="submit"] {
  height: 40px !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  font-family: sans-serif !important;
}

/* =========================================
   THE TEXT BOX (Left Side)
   ========================================= */
.creation-row input[type="text"] {
  width: 260px !important; /* Force width */
  background-color: #fff !important;
  border: 1px solid #a2a9b1 !important; /* Standard Grey Border */
  border-radius: 2px !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;
}

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

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