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 14:14, 24 November 2025 by C (talk | contribs)
/* Row wrapper: centers each pair horizontally */
.creation-row {
  display: flex !important;
  justify-content: flex-start !important;
  margin: 0.75rem 0;
  width: 100% !important;
}

/* UNIVERSAL FORM STYLING 
   This works for both PageForms (Ecosystem buttons) and InputBox (Blank Page)
   because we target 'form' directly inside '.creation-row'
*/
.creation-row form {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 !important;
  justify-content: flex-start !important;
  width: 100%; /* Ensures the form takes up the row space */
}

/* Handle the legacy wrapper for the "Blank Page" button 
   (InputBox adds this extra div, so we ensure it doesn't break layout) 
*/
.creation-row .mw-inputbox-centered {
  width: 100% !important;
  margin: 0 !important;
  display: flex !important;
}

/* FIXED, MATCHING SIZE for both controls */
.creation-row form input[type="text"],
.creation-row form input[type="submit"] {
  width: 260px;
  height: 40px;
  box-sizing: border-box;
}

/* --- INPUT (left side) --- */
.creation-row 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;
  padding: 0 10px; /* Added padding for better text positioning */
}

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

/* --- BUTTON (right side) --- */
.creation-row 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 form input[type="submit"]:hover {
  background-color: #f2f2f2 !important;
  transform: translateY(-1px);
}

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

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