Template:CreateHub/styles.css: Difference between revisions

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


/* The InputBox output wrapper */
/* Force InputBox to align horizontally */
.creation-row .mw-inputbox-centered {
.creation-row .mw-inputbox-centered {
   display: flex;
  margin: 0 !important;
   justify-content: center;
  white-space: nowrap !important; /* Prevents wrapping */
   display: flex !important;
   align-items: center !important;
  gap: 15px !important;
}
}


/* Treat the inner form as a flex row: [input] [button] */
.creation-row form {
.creation-row .mw-inputbox-centered form {
   display: flex !important;
   display: flex;
  gap: 15px !important;
   align-items: center;
   align-items: center !important;
  gap: 1rem;
}
}


/* FIXED, MATCHING SIZE for both controls */
/* Shared Styling */
.creation-row .mw-inputbox-centered form input[type="text"],
.creation-row input[type="text"],
.creation-row .mw-inputbox-centered form input[type="submit"] {
.creation-row input[type="submit"] {
  width: 260px;
   height: 40px !important;
   height: 40px;
   box-sizing: border-box !important;
   box-sizing: border-box;
  font-size: 14px !important;
}
}


/* --- INPUT (left side) --- */
/* Text Box */
.creation-row .mw-inputbox-centered form input[type="text"] {
.creation-row input[type="text"] {
   border: 1.5px solid #000;
   width: 260px !important;
  border-radius: 2px;
   background: #fff !important;
   background: #fff;
   border: 1px solid #a2a9b1 !important;
   font-size: 0.95rem;
   padding: 0 10px !important;
   text-align: center !important;
  font-style: italic;
}
}


/* Placeholder styling */
/* Button */
.creation-row .mw-inputbox-centered form input[type="text"]::placeholder {
.creation-row input[type="submit"] {
   text-align: center !important;
   width: 260px !important;
   color: #777;
   background: #fff !important;
  font-style: italic;
}
 
/* --- BUTTON (right side) --- */
.creation-row .mw-inputbox-centered form input[type="submit"] {
   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;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  box-shadow: none !important;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    border-color 0.15s ease;
}
}


/* Hover */
.creation-row input[type="submit"]:hover {
.creation-row .mw-inputbox-centered form input[type="submit"]:hover {
   background-color: #f2f2f2 !important;
   background-color: #f2f2f2 !important;
  transform: translateY(-1px);
}
/* Active */
.creation-row .mw-inputbox-centered form input[type="submit"]:active {
  transform: translateY(0);
}
/* Disabled — same visual style, just non-clickable */
.creation-row .mw-inputbox-centered 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; /* cancel any dimming from the skin */
}
}