Template:CreateHub/styles.css: Difference between revisions

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


/* InputBox 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;
    font-style: italic;
}
}


/* Placeholder styling */
/* Button */
.creation-row .mw-inputbox-centered form input[type="text"]::placeholder {
.creation-row input[type="submit"] {
    text-align: center;
  width: 260px !important;
    color: #777;
  background: #fff !important;
    font-style: italic;
  border: 1.5px solid #000 !important;
  color: #000 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border-radius: 2px !important;
}
}


/* Button (right side) */
.creation-row input[type="submit"]:hover {
.creation-row .mw-inputbox-centered form input[type="submit"] {
  background-color: #f2f2f2 !important;
    border: 1.5px solid #000;
  color: #000 !important;
    border-radius: 2px;
    background: transparent;
    color: #000;
 
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
 
    box-shadow: none;
    transition:
        background-color 0.2s ease,
        transform 0.15s ease,
        border-color 0.15s ease;
}
 
/* Hover */
.creation-row .mw-inputbox-centered form input[type="submit"]:hover {
    background-color: #f2f2f2;
    transform: translateY(-1px);
}
 
/* Active */
.creation-row .mw-inputbox-centered form input[type="submit"]:active {
    transform: translateY(0);
}
 
/* Disabled */
.creation-row .mw-inputbox-centered form input[type="submit"]:disabled {
    border: 1.5px solid #000;
    background: transparent;
    color: #000;
    cursor: not-allowed;
    opacity: 1;
}
}