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: Ensures the row holds the items properly */
/* =========================================
  CONTAINER & LAYOUT
  ========================================= */
.creation-row {
.creation-row {
   margin: 10px 0;
   margin: 10px 0;
   width: 100%;
   width: 100%;
  display: flex; /* Ensures the row itself behaves predictably */
}
}


/* UNIVERSAL LAYOUT
/* Force the form inside to be a flex row.
  Target the form inside the creation row.
   Note: InputBox adds a wrapper div (.mw-inputbox-centered).
   We use 'display: flex' to force the input and button to sit side-by-side.
  We target both the direct form AND the nested form.
*/
*/
.creation-row form {
.creation-row form,
.creation-row .mw-inputbox-centered form {
   display: flex !important;
   display: flex !important;
  flex-direction: row !important;
   align-items: center !important;
   align-items: center !important;
   gap: 10px !important; /* Space between input and button */
   gap: 15px !important; /* The space between the text box and button */
   margin: 0 !important;
   margin: 0 !important;
}
}


/* FIX FOR EXTRA WRAPPERS
/* Fix for InputBox wrapper to not break flex flow */
  InputBox sometimes adds extra divs or paragraphs.
  This ensures flexbox applies even if there are wrappers.
*/
.creation-row .mw-inputbox-centered {
.creation-row .mw-inputbox-centered {
  margin: 0 !important;
   width: auto !important;
   width: auto !important;
  margin: 0 !important;
}
}


/* ============================
/* =========================================
   1. INPUT FIELDS (The Text Box)
   SHARED SIZING (Both Text & Button)
   ============================ */
  ========================================= */
/* Target ANY text input and ANY submit button inside the row */
.creation-row input[type="text"],
.creation-row input[type="submit"] {
  height: 40px !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  font-family: sans-serif !important;
}
 
/* =========================================
  THE TEXT BOX (Left Side)
   ========================================= */
.creation-row input[type="text"] {
.creation-row input[type="text"] {
   /* Match the Clean "Blank Page" Look */
   width: 260px !important; /* Force width */
   width: 260px !important;
   background-color: #fff !important;
   height: 40px !important;
  border: 1px solid #a2a9b1 !important; /* Standard Grey Border */
   border-radius: 2px !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;
   color: #000 !important;
   text-align: left !important; /* Left align, not centered */
   box-shadow: none !important;
   font-style: normal !important; /* Normal, not italic */
   text-align: left !important;
  box-shadow: inset 0 0 0 1px transparent !important;
}
}


/* Blue border on focus */
.creation-row input[type="text"]:focus {
.creation-row input[type="text"]:focus {
   border-color: #3366cc !important;
   border-color: #3366cc !important;
  box-shadow: inset 0 0 0 1px #3366cc !important;
   outline: none !important;
   outline: none !important;
}
}


/* ============================
/* =========================================
   2. BUTTONS (The Clickable Part)
   THE BUTTON (Right Side)
   ============================ */
   ========================================= */
/* We target multiple selectors to catch both PageForms and InputBox buttons */
.creation-row input[type="submit"] {
.creation-row input[type="submit"],
  width: 260px !important; /* Force width */
.creation-row button,
 
.creation-row .mw-ui-button {
   /* FORCE THE WHITE & BLACK STYLE */
   /* Match the Bold "Blank Page" Look */
   background: #fff !important;
   width: 260px !important;
   background-color: #fff !important; /* Doubled for safety */
   height: 40px !important;
   background-image: none !important; /* Kill any gradients */
   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;
   border-radius: 2px !important;
  color: #000 !important;
  font-weight: 700 !important; /* Bold */
    
    
  /* Text Styles */
  color: #000 !important;
  font-weight: 700 !important; /* Bold text */
  font-size: 14px !important;
   cursor: pointer !important;
   cursor: pointer !important;
   text-shadow: none !important;
   text-shadow: none !important;
   box-shadow: none !important;
   padding: 0 10px !important;
  margin: 0 !important;
    
    
  /* Transitions */
   transition: all 0.2s ease !important;
   transition: background-color 0.2s, color 0.2s !important;
}
}


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

Revision as of 14:28, 24 November 2025

/* =========================================
   CONTAINER & LAYOUT
   ========================================= */
.creation-row {
  margin: 10px 0;
  width: 100%;
  display: flex; /* Ensures the row itself behaves predictably */
}

/* Force the form inside to be a flex row.
   Note: InputBox adds a wrapper div (.mw-inputbox-centered).
   We target both the direct form AND the nested form.
*/
.creation-row form,
.creation-row .mw-inputbox-centered form {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important; /* The space between the text box and button */
  margin: 0 !important;
}

/* Fix for InputBox wrapper to not break flex flow */
.creation-row .mw-inputbox-centered {
  margin: 0 !important;
  width: auto !important;
}

/* =========================================
   SHARED SIZING (Both Text & Button)
   ========================================= */
/* Target ANY text input and ANY submit button inside the row */
.creation-row input[type="text"],
.creation-row input[type="submit"] {
  height: 40px !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  font-family: sans-serif !important;
}

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

/* Blue border on focus */
.creation-row input[type="text"]:focus {
  border-color: #3366cc !important;
  outline: none !important;
}

/* =========================================
   THE BUTTON (Right Side)
   ========================================= */
.creation-row input[type="submit"] {
  width: 260px !important; /* Force width */
  
  /* FORCE THE WHITE & BLACK STYLE */
  background: #fff !important;
  background-color: #fff !important; /* Doubled for safety */
  background-image: none !important; /* Kill any gradients */
  
  border: 1.5px solid #000 !important;
  border-radius: 2px !important;
  color: #000 !important;
  font-weight: 700 !important; /* Bold */
  
  cursor: pointer !important;
  text-shadow: none !important;
  padding: 0 10px !important;
  margin: 0 !important;
  
  transition: all 0.2s ease !important;
}

/* Hover State */
.creation-row input[type="submit"]:hover {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}