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:27, 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 state: look the same as enabled (no grey pill) */
.creation-row .mw-inputbox-centered form > *:last-child:disabled {
  border: 1.5px solid #000;
  border-radius: 2px;
  background: transparent;
  color: #000;
  box-shadow: none;
  line-height: 40px;
  opacity: 1;              /* cancel skin's fade-out */
  cursor: not-allowed;     /* optional: still shows it's disabled */
}