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: Difference between revisions

From The Deep Tech Wiki
No edit summary
No edit summary
Line 2: Line 2:
.creation-row {
.creation-row {
   display: flex;
   display: flex;
   justify-content: center;
   justify-content: flex-start;
   margin: 0.75rem 0;
   margin: 0.75rem 0;
}
}
Line 9: Line 9:
.creation-row .mw-inputbox-centered {
.creation-row .mw-inputbox-centered {
   display: flex;
   display: flex;
   justify-content: center;
   justify-content: flex-start;
}
}



Revision as of 09:46, 22 November 2025

/* Row wrapper: centers each pair horizontally */
.creation-row {
  display: flex;
  justify-content: flex-start;
  margin: 0.75rem 0;
}

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

/* 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 input[type="text"],
.creation-row .mw-inputbox-centered form input[type="submit"] {
  width: 260px;
  height: 40px;
  box-sizing: border-box;
}

/* --- INPUT (left side) --- */
.creation-row .mw-inputbox-centered form input[type="text"] {
  border: 1.5px solid #000;
  border-radius: 2px;
  background: #fff;
  font-size: 0.95rem;
  text-align: center !important;
  font-style: italic;
}

/* Placeholder styling */
.creation-row .mw-inputbox-centered form input[type="text"]::placeholder {
  text-align: center !important;
  color: #777;
  font-style: italic;
}

/* --- BUTTON (right side) --- */
.creation-row .mw-inputbox-centered form input[type="submit"] {
  border: 1.5px solid #000 !important;
  border-radius: 2px !important;
  background: transparent !important;
  color: #000 !important;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: none !important;

  /* Matching height fix */
  height: 40px !important;
  padding: 0 !important;
  line-height: 40px !important;

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

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

/* Active state */
.creation-row .mw-inputbox-centered form input[type="submit"]:active {
  transform: translateY(0);
}

/* Disabled state */
.creation-row .mw-inputbox-centered form input[type="submit"]:disabled {
  border: 1.5px solid #000 !important;
  background: transparent !important;
  color: #000 !important;
  cursor: not-allowed;
  opacity: 1;
}