Template:CreateHub/styles.css

Revision as of 14:19, 13 November 2025 by C (talk | contribs)
/* --- Row Layout --- */
.creation-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;                 /* uniform spacing */
  margin: 0.75rem 0;
}

/* Give both elements the same fixed width */
.creation-row .inputbox input[type="text"],
.creation-row input[type="submit"] {
  width: 260px !important;   /* <-- adjust this to fit your layout */
  box-sizing: border-box;    /* ensures borders don’t change width */
}

/* --- Text Input --- */
.creation-row .inputbox input[type="text"] {
  padding: 0.45rem 0.6rem;
  border: 1.5px solid #000 !important;
  border-radius: 2px;
  font-size: 0.95rem;
  text-align: center;
  background: #fff;
}

.creation-row .inputbox input[type="text"]::placeholder {
  color: #777;
  font-style: italic;
}

/* --- Submit Button (matches Noarticletext buttons) --- */
.creation-row input[type="submit"] {
  padding: 8px 0;
  text-align: center;

  background: transparent !important;
  border: 1.5px solid #000 !important;
  border-radius: 2px !important;

  color: #000 !important;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    border-color 0.15s ease;
}

/* Hover */
.creation-row input[type="submit"]:hover:not(:disabled) {
  background-color: #f2f2f2 !important;
  transform: translateY(-1px);
}

/* Active */
.creation-row input[type="submit"]:active:not(:disabled) {
  transform: translateY(0);
}

/* Disabled state */
.creation-row input[type="submit"]:disabled {
  background-color: #f5f5f5 !important;
  border-color: #ccc !important;
  color: #888 !important;
  cursor: not-allowed;
}