Template:CreateHub/styles.css: Difference between revisions

No edit summary
No edit summary
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* --- Row Layout --- */
.creation-row {
.creation-row {
   display: flex;
   margin: 10px 0;
   justify-content: center;
   width: 100%;
  align-items: center;
  gap: 1rem;
  margin: 0.75rem 0;
}
}


/* Fixed, matching widths */
/* Force InputBox to align horizontally */
.creation-row .inputbox input[type="text"],
.creation-row .mw-inputbox-centered {
.creation-row input[type="submit"] {
   margin: 0 !important;
   width: 260px !important;
   white-space: nowrap !important; /* Prevents wrapping */
   height: 42px !important;         /* <-- equal height for both */
   display: flex !important;
   box-sizing: border-box;
  align-items: center !important;
  gap: 15px !important;
}
}


/* --- Input Styling --- */
.creation-row form {
.creation-row .inputbox input[type="text"] {
   display: flex !important;
   padding: 0 0.6rem;
   gap: 15px !important;
   border: 1.5px solid #000 !important;
   align-items: center !important;
   border-radius: 2px;
}
  font-size: 0.95rem;
  background: #fff;


   text-align: center;             /* center typing */
/* Shared Styling */
   font-style: italic;             /* italic input text too */
.creation-row input[type="text"],
.creation-row input[type="submit"] {
  height: 40px !important;
   box-sizing: border-box !important;
   font-size: 14px !important;
}
}


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


/* --- Button Styling (matches create-button aesthetic) --- */
/* Button */
.creation-row input[type="submit"] {
.creation-row input[type="submit"] {
   background: transparent !important;
  width: 260px !important;
   background: #fff !important;
   border: 1.5px solid #000 !important;
   border: 1.5px solid #000 !important;
  border-radius: 2px;
   color: #000 !important;
   color: #000 !important;
   font-weight: 600;
   font-weight: 700 !important;
  font-size: 0.95rem;
   cursor: pointer !important;
   cursor: pointer;
   border-radius: 2px !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 input[type="submit"]:hover:not(:disabled) {
   background-color: #f2f2f2 !important;
   background-color: #f2f2f2 !important;
   transform: translateY(-1px);
   color: #000 !important;
}
 
/* Active */
.creation-row input[type="submit"]:active:not(:disabled) {
  transform: translateY(0);
}
 
/* Disabled */
.creation-row input[type="submit"]:disabled {
  background-color: #f5f5f5 !important;
  border-color: #ccc !important;
  color: #888 !important;
  cursor: not-allowed;
}
}