Template:CreateHub/styles.css: Difference between revisions

No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Row wrapper: centers each pair horizontally */
.creation-row {
.creation-row {
  display: flex !important;
   margin: 10px 0;
  justify-content: flex-start !important;
   width: 100%;
   margin: 0.75rem 0;
   width: 100% !important;
}
}


/* UNIVERSAL FORM STYLING
/* Force InputBox to align horizontally */
  This works for both PageForms (Ecosystem buttons) and InputBox (Blank Page)
  because we target 'form' directly inside '.creation-row'
*/
.creation-row form {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 !important;
  justify-content: flex-start !important;
  width: 100%; /* Ensures the form takes up the row space */
}
 
/* Handle the legacy wrapper for the "Blank Page" button
  (InputBox adds this extra div, so we ensure it doesn't break layout)
*/
.creation-row .mw-inputbox-centered {
.creation-row .mw-inputbox-centered {
  width: 100% !important;
   margin: 0 !important;
   margin: 0 !important;
  white-space: nowrap !important; /* Prevents wrapping */
   display: flex !important;
   display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}
}


/* FIXED, MATCHING SIZE for both controls */
.creation-row form {
.creation-row form input[type="text"],
   display: flex !important;
.creation-row form input[type="submit"] {
   gap: 15px !important;
   width: 260px;
   align-items: center !important;
   height: 40px;
   box-sizing: border-box;
}
}


/* --- INPUT (left side) --- */
/* Shared Styling */
.creation-row form input[type="text"] {
.creation-row input[type="text"],
  border: 1.5px solid #000;
.creation-row input[type="submit"] {
  border-radius: 2px;
   height: 40px !important;
   background: #fff;
   box-sizing: border-box !important;
   font-size: 0.95rem;
   font-size: 14px !important;
  text-align: center !important;
   font-style: italic;
  padding: 0 10px; /* Added padding for better text positioning */
}
}


/* Placeholder styling */
/* Text Box */
.creation-row form input[type="text"]::placeholder {
.creation-row input[type="text"] {
   text-align: center !important;
  width: 260px !important;
   color: #777;
   background: #fff !important;
   font-style: italic;
   border: 1px solid #a2a9b1 !important;
   padding: 0 10px !important;
}
}


/* --- BUTTON (right side) --- */
/* Button */
.creation-row form input[type="submit"] {
.creation-row input[type="submit"] {
  width: 260px !important;
  background: #fff !important;
   border: 1.5px solid #000 !important;
   border: 1.5px solid #000 !important;
  color: #000 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
   border-radius: 2px !important;
   border-radius: 2px !important;
  background: transparent !important;
  color: #000 !important;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: none !important;
  /* Matching height fix */
  height: 40px !important;
  padding: 0 !important;
  line-height: 40px !important;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    border-color 0.15s ease;
}
}


/* Hover state */
.creation-row input[type="submit"]:hover {
.creation-row form input[type="submit"]:hover {
   background-color: #f2f2f2 !important;
   background-color: #f2f2f2 !important;
  transform: translateY(-1px);
}
/* Active state */
.creation-row form input[type="submit"]:active {
  transform: translateY(0);
}
/* Disabled state */
.creation-row form input[type="submit"]:disabled {
  border: 1.5px solid #000 !important;
  background: transparent !important;
   color: #000 !important;
   color: #000 !important;
  cursor: not-allowed;
  opacity: 1;
}
}