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
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Container: Ensures the row holds the items properly */
.creation-row {
.creation-row {
   margin: 10px 0;
   margin: 10px 0;
Line 5: Line 4:
}
}


/* UNIVERSAL LAYOUT
/* Force InputBox to align horizontally */
  Target the form inside the creation row.
.creation-row .mw-inputbox-centered {
  We use 'display: flex' to force the input and button to sit side-by-side.
  margin: 0 !important;
*/
  white-space: nowrap !important; /* Prevents wrapping */
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}
 
.creation-row form {
.creation-row form {
   display: flex !important;
   display: flex !important;
   flex-direction: row !important;
   gap: 15px !important;
   align-items: center !important;
   align-items: center !important;
  gap: 10px !important; /* Space between input and button */
  margin: 0 !important;
}
}


/* FIX FOR EXTRA WRAPPERS
/* Shared Styling */
  InputBox sometimes adds extra divs or paragraphs.
.creation-row input[type="text"],
  This ensures flexbox applies even if there are wrappers.
.creation-row input[type="submit"] {
*/
   height: 40px !important;
.creation-row .mw-inputbox-centered {
   box-sizing: border-box !important;
   width: auto !important;
  font-size: 14px !important;
   margin: 0 !important;
}
}


/* ============================
/* Text Box */
  1. INPUT FIELDS (The Text Box)
  ============================ */
.creation-row input[type="text"] {
.creation-row input[type="text"] {
  /* Match the Clean "Blank Page" Look */
   width: 260px !important;
   width: 260px !important;
   height: 40px !important;
   background: #fff !important;
  border: 1px solid #a2a9b1 !important;
   padding: 0 10px !important;
   padding: 0 10px !important;
 
  /* Standard Grey Border */
  border: 1px solid #a2a9b1 !important;
  border-radius: 2px !important;
  background-color: #fff !important;
 
  /* Text Styles */
  font-family: sans-serif !important;
  font-size: 14px !important;
  color: #000 !important;
  text-align: left !important; /* Left align, not centered */
  font-style: normal !important; /* Normal, not italic */
  box-shadow: inset 0 0 0 1px transparent !important;
}
.creation-row input[type="text"]:focus {
  border-color: #3366cc !important;
  box-shadow: inset 0 0 0 1px #3366cc !important;
  outline: none !important;
}
}


/* ============================
/* Button */
  2. BUTTONS (The Clickable Part)
.creation-row input[type="submit"] {
  ============================ */
/* We target multiple selectors to catch both PageForms and InputBox buttons */
.creation-row input[type="submit"],
.creation-row button,
.creation-row .mw-ui-button {
  /* Match the Bold "Blank Page" Look */
   width: 260px !important;
   width: 260px !important;
  height: 40px !important;
   background: #fff !important;
  padding: 0 10px !important;
 
  /* White Background, Black Border */
   background: #fff !important;
  background-color: #fff !important;
   border: 1.5px solid #000 !important;
   border: 1.5px solid #000 !important;
  border-radius: 2px !important;
 
  /* Text Styles */
   color: #000 !important;
   color: #000 !important;
   font-weight: 700 !important; /* Bold text */
   font-weight: 700 !important;
  font-size: 14px !important;
   cursor: pointer !important;
   cursor: pointer !important;
   text-shadow: none !important;
   border-radius: 2px !important;
  box-shadow: none !important;
 
  /* Transitions */
  transition: background-color 0.2s, color 0.2s !important;
}
}


/* Hover Effect */
.creation-row input[type="submit"]:hover {
.creation-row input[type="submit"]:hover,
   background-color: #f2f2f2 !important;
.creation-row button:hover,
   color: #000 !important;
.creation-row .mw-ui-button:hover {
   background-color: #000 !important;
   color: #fff !important;
  border-color: #000 !important;
}
}

Latest revision as of 15:09, 24 November 2025

.creation-row {
  margin: 10px 0;
  width: 100%;
}

/* Force InputBox to align horizontally */
.creation-row .mw-inputbox-centered {
  margin: 0 !important;
  white-space: nowrap !important; /* Prevents wrapping */
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

.creation-row form {
  display: flex !important;
  gap: 15px !important;
  align-items: center !important;
}

/* Shared Styling */
.creation-row input[type="text"],
.creation-row input[type="submit"] {
  height: 40px !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
}

/* Text Box */
.creation-row input[type="text"] {
  width: 260px !important;
  background: #fff !important;
  border: 1px solid #a2a9b1 !important;
  padding: 0 10px !important;
}

/* Button */
.creation-row input[type="submit"] {
  width: 260px !important;
  background: #fff !important;
  border: 1.5px solid #000 !important;
  color: #000 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  border-radius: 2px !important;
}

.creation-row input[type="submit"]:hover {
  background-color: #f2f2f2 !important;
  color: #000 !important;
}