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 1: Line 1:
/* =========================================
  CONTAINER
  ========================================= */
.creation-row {
.creation-row {
   margin: 10px 0;
   margin: 10px 0;
   width: 100%;
   width: 100%;
  text-align: left; /* <-- add this line */
}
}


/* =========================================
/* Force InputBox to align horizontally */
  THE FIX: RECURSIVE FLEX LAYOUT
.creation-row .mw-inputbox-centered {
  ========================================= */
   margin: 0 !important;
 
  white-space: nowrap !important; /* Prevents wrapping */
/* 1. Hide the Line Break <br> */
.creation-row br {
   display: none !important;
}
 
/* 2. Force the Form AND any immediate children (p, div) to be Flex Rows.
  This handles the nesting: Form -> Paragraph -> Inputs */
.creation-row form,
.creation-row form > p,
.creation-row form > div {
   display: flex !important;
   display: flex !important;
  flex-direction: row !important;
   align-items: center !important;
   align-items: center !important;
 
  /* Kill the indentation */
  margin: 0 !important;
  padding: 0 !important;
 
  /* Space between items */
   gap: 15px !important;
   gap: 15px !important;
}
}


/* 3. Handle the Blank Page wrapper specifically
.creation-row form {
  (InputBox adds an extra div that needs to behave) */
.creation-row .mw-inputbox-centered {
  margin: 0 !important;
  width: auto !important;
 
  /* make the blank page input + button sit in one row */
   display: flex !important;
   display: flex !important;
   flex-direction: row !important;
   gap: 15px !important;
   align-items: center !important;
   align-items: center !important;
  gap: 15px !important;
}
}


 
/* Shared Styling */
/* =========================================
  VISUALS: INPUTS & BUTTONS
  ========================================= */
 
/* Shared Sizing & Reset */
.creation-row input[type="text"],
.creation-row input[type="text"],
.creation-row input[type="submit"],
.creation-row input[type="submit"] {
.creation-row button {
   height: 40px !important;
   height: 40px !important;
   box-sizing: border-box !important;
   box-sizing: border-box !important;
  font-family: sans-serif !important;
   font-size: 14px !important;
   font-size: 14px !important;
  margin: 0 !important; /* Remove individual margins so gap handles spacing */
}
}


/* --- TEXT BOX (Left) --- */
/* Text Box */
.creation-row input[type="text"] {
.creation-row input[type="text"] {
   width: 260px !important;
   width: 260px !important;
   background-color: #fff !important;
   background: #fff !important;
   border: 1px solid #a2a9b1 !important;
   border: 1px solid #a2a9b1 !important;
  border-radius: 2px !important;
   padding: 0 10px !important;
   padding: 0 10px !important;
  color: #000 !important;
  text-align: left !important;
  box-shadow: none !important;
}
}


/* Focus State */
/* Button */
.creation-row input[type="text"]:focus {
.creation-row input[type="submit"] {
  border-color: #3366cc !important;
  outline: none !important;
}
 
/* --- BUTTON (Right) --- */
.creation-row input[type="submit"],
.creation-row button {
   width: 260px !important;
   width: 260px !important;
 
  /* Theme: White Background, Black Border */
   background: #fff !important;
   background: #fff !important;
  background-color: #fff !important;
  background-image: none !important; /* Removes default gradient */
 
   border: 1.5px solid #000 !important;
   border: 1.5px solid #000 !important;
  border-radius: 2px !important;
 
   color: #000 !important;
   color: #000 !important;
   font-weight: 700 !important; /* Bold */
   font-weight: 700 !important;
   cursor: pointer !important;
   cursor: pointer !important;
    
   border-radius: 2px !important;
  text-shadow: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}
}


/* HOVER STATE: Light Grey */
.creation-row input[type="submit"]:hover {
.creation-row input[type="submit"]:hover,
   background-color: #f2f2f2 !important;
.creation-row button:hover {
   background-color: #f2f2f2 !important; /* Light Grey */
   color: #000 !important;
   color: #000 !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;
}