Jump to content

This site is currently in alpha, so you will run into rough edges.

Please send feedback or ideas to connect@deeptech.wiki

Template:CreateHub/styles.css

From The Deep Tech Wiki
Revision as of 23:22, 13 November 2025 by C (talk | contribs)
/* Row wrapper: centers each pair horizontally */
.creation-row {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0;
}

/* The InputBox output wrapper */
.creation-row .mw-inputbox-centered {
  display: flex;
  justify-content: center;
}

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

/* FIXED, MATCHING SIZE for both controls */
.creation-row .mw-inputbox-centered form > *:first-child,
.creation-row .mw-inputbox-centered form > *:last-child {
  width: 260px;
  height: 40px;
  box-sizing: border-box;
}

/* --- INPUT (first child) --- */
.creation-row .mw-inputbox-centered form > *:first-child {
  border: 1.5px solid #000;
  border-radius: 2px;
  background: #fff;
  font-size: 0.95rem;
  text-align: center;
  font-style: italic;
}

/* Placeholder styling for any text input inside the row */
.creation-row input::placeholder {
  text-align: center;
  color: #777;
  font-style: italic;
}

/* --- BUTTON (last child) --- */
.creation-row .mw-inputbox-centered form > *:last-child {
  /* wipe inherited UI look as much as possible */
  border: 1.5px solid #000;
  border-radius: 2px;
  background: transparent;
  color: #000;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;

  box-shadow: none;
  padding: 0;                 /* height is controlled above */
  line-height: 40px;          /* vertical centering */

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

/* Hover (enabled only) */
.creation-row .mw-inputbox-centered form > *:last-child:hover:not(:disabled) {
  background-color: #f2f2f2;
  transform: translateY(-1px);
}

/* Active */
.creation-row .mw-inputbox-centered form > *:last-child:active:not(:disabled) {
  transform: translateY(0);
}

/* Disabled look */
.creation-row .mw-inputbox-centered form > *:last-child:disabled {
  background-color: #f5f5f5;
  border-color: #ccc;
  color: #888;
  cursor: not-allowed;
}

/* Force disabled create buttons in CreateHub to match outline aesthetic */
.creation-row .mw-inputbox-centered input[disabled],
.creation-row .mw-inputbox-centered button[disabled] {
  width: 260px;
  height: 40px;
  box-sizing: border-box;

  border: 1.5px solid #000;      /* black border even when disabled */
  border-radius: 2px;
  background-color: #f5f5f5;     /* light grey fill */
  color: #888;                   /* readable grey text */

  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;

  box-shadow: none;
  cursor: not-allowed;
}

/* When enabled, keep the outline + hover behaviour */
.creation-row .mw-inputbox-centered input:not([disabled]),
.creation-row .mw-inputbox-centered button:not([disabled]) {
  border: 1.5px solid #000;
  border-radius: 2px;
  background: transparent;
  color: #000;
}

.creation-row .mw-inputbox-centered input:not([disabled]):hover,
.creation-row .mw-inputbox-centered button:not([disabled]):hover {
  background-color: #f2f2f2;
  transform: translateY(-1px);
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    border-color 0.15s ease;
}