Template:CreateHub/styles.css: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
/* Row wrapper: centers each pair horizontally */
/* Container: Ensures the row holds the items properly */
.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
/* UNIVERSAL LAYOUT
   This works for both PageForms (Ecosystem buttons) and InputBox (Blank Page)
   Target the form inside the creation row.
   because we target 'form' directly inside '.creation-row'
   We use 'display: flex' to force the input and button to sit side-by-side.
*/
*/
.creation-row form {
.creation-row form {
   display: flex;
   display: flex !important;
   align-items: center;
  flex-direction: row !important;
   gap: 1rem;
   align-items: center !important;
   gap: 10px !important; /* Space between input and button */
   margin: 0 !important;
   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
/* FIX FOR EXTRA WRAPPERS
   (InputBox adds this extra div, so we ensure it doesn't break layout)
   InputBox sometimes adds extra divs or paragraphs.
  This ensures flexbox applies even if there are wrappers.
*/
*/
.creation-row .mw-inputbox-centered {
.creation-row .mw-inputbox-centered {
   width: 100% !important;
   width: auto !important;
   margin: 0 !important;
   margin: 0 !important;
  display: flex !important;
}
}


/* FIXED, MATCHING SIZE for both controls */
/* ============================
.creation-row form input[type="text"],
  1. INPUT FIELDS (The Text Box)
.creation-row form input[type="submit"] {
  ============================ */
   width: 260px;
.creation-row input[type="text"] {
   height: 40px;
  /* Match the Clean "Blank Page" Look */
   box-sizing: border-box;
   width: 260px !important;
   height: 40px !important;
  padding: 0 10px !important;
 
  /* Standard Grey Border */
  border: 1px solid #a2a9b1 !important;
  border-radius: 2px !important;
   background-color: #fff !important;
 
  /* Text Styles */
  font-family: sans-serif !important;
  font-size: 14px !important;
  color: #000 !important;
  text-align: left !important; /* Left align, not centered */
  font-style: normal !important; /* Normal, not italic */
  box-shadow: inset 0 0 0 1px transparent !important;
}
}


/* --- INPUT (left side) --- */
.creation-row input[type="text"]:focus {
.creation-row form input[type="text"] {
   border-color: #3366cc !important;
  border: 1.5px solid #000;
   box-shadow: inset 0 0 0 1px #3366cc !important;
   border-radius: 2px;
   outline: none !important;
  background: #fff;
   font-size: 0.95rem;
   text-align: center !important;
  font-style: italic;
  padding: 0 10px; /* Added padding for better text positioning */
}
}


/* Placeholder styling */
/* ============================
.creation-row form input[type="text"]::placeholder {
  2. BUTTONS (The Clickable Part)
   text-align: center !important;
  ============================ */
   color: #777;
/* We target multiple selectors to catch both PageForms and InputBox buttons */
   font-style: italic;
.creation-row input[type="submit"],
}
.creation-row button,
 
.creation-row .mw-ui-button {
/* --- BUTTON (right side) --- */
   /* Match the Bold "Blank Page" Look */
.creation-row form input[type="submit"] {
  width: 260px !important;
   height: 40px !important;
   padding: 0 10px !important;
 
  /* White Background, Black Border */
  background: #fff !important;
  background-color: #fff !important;
   border: 1.5px solid #000 !important;
   border: 1.5px solid #000 !important;
   border-radius: 2px !important;
   border-radius: 2px !important;
   background: transparent !important;
    
  /* Text Styles */
   color: #000 !important;
   color: #000 !important;
   font-weight: 600;
   font-weight: 700 !important; /* Bold text */
   font-size: 0.95rem;
   font-size: 14px !important;
   cursor: pointer;
   cursor: pointer !important;
  text-shadow: none !important;
   box-shadow: none !important;
   box-shadow: none !important;
 
 
   /* Matching height fix */
   /* Transitions */
  height: 40px !important;
   transition: background-color 0.2s, color 0.2s !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 */
/* Hover Effect */
.creation-row form input[type="submit"]:hover {
.creation-row input[type="submit"]:hover,
  background-color: #f2f2f2 !important;
.creation-row button:hover,
  transform: translateY(-1px);
.creation-row .mw-ui-button:hover {
}
   background-color: #000 !important;
 
   color: #fff !important;
/* Active state */
   border-color: #000 !important;
.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;
  cursor: not-allowed;
  opacity: 1;
}
}