Jump to content
This site is currently in alpha, so you will run into rough edges.

Template:CreateHub/styles.css: Difference between revisions

From The Deep Tech Wiki
No edit summary
No edit summary
Line 1: Line 1:
/* Row container: one input + one button */
/* Row: center the pair horizontally */
.creation-row {
.creation-row {
   display: flex;
   display: flex;
Line 6: Line 6:
}
}


/* Let the InputBox wrapper form act as our flex row */
/* Make the inner InputBox container a row as well */
.creation-row .mw-inputbox-centered {
.creation-row .mw-inputbox-centered {
   display: flex;
   display: flex;
Line 18: Line 18:
}
}


/* SAME SIZE for input and button */
/* SAME width + height for both input and button */
.creation-row .createboxInput,
.creation-row .mw-ui-input,
.creation-row .createboxButton {
.creation-row .mw-ui-button {
   width: 260px !important;
   width: 260px !important;
   height: 40px !important;
   height: 40px !important;
Line 26: Line 26:
}
}


/* --- Text input styling --- */
/* --- INPUT: centered, italic, outlined --- */
.creation-row .createboxInput {
.creation-row .mw-ui-input {
   border: 1.5px solid #000 !important;
   border: 1.5px solid #000 !important;
   border-radius: 2px !important;
   border-radius: 2px !important;
   background: #fff !important;
   background: #fff !important;
   font-size: 0.95rem !important;
   font-size: 0.95rem !important;
   text-align: center !important;
   text-align: center !important;
   font-style: italic !important;
   font-style: italic !important;
}
}


/* Placeholder */
.creation-row .mw-ui-input::placeholder {
.creation-row .createboxInput::placeholder {
   text-align: center;
   text-align: center;
   color: #777;
   color: #777;
Line 44: Line 42:
}
}


/* --- Button styling (outline style) --- */
/* --- BUTTON: outline style, like noarticletext --- */
.creation-row .createboxButton {
.creation-row .mw-ui-button {
   border: 1.5px solid #000 !important;
   border: 1.5px solid #000 !important;
   border-radius: 2px !important;
   border-radius: 2px !important;
Line 53: Line 51:
   font-size: 0.95rem !important;
   font-size: 0.95rem !important;
   text-align: center !important;
   text-align: center !important;
  box-shadow: none !important;
   cursor: pointer;
   cursor: pointer;


  box-shadow: none !important;
   transition:
   transition:
     background-color 0.2s ease,
     background-color 0.2s ease,
Line 62: Line 60:
}
}


/* Hover */
/* Hover (enabled only) */
.creation-row .createboxButton:hover:not(:disabled) {
.creation-row .mw-ui-button:hover:not(:disabled) {
   background-color: #f2f2f2 !important;
   background-color: #f2f2f2 !important;
   transform: translateY(-1px);
   transform: translateY(-1px);
}
}


/* Active */
/* Active (enabled only) */
.creation-row .createboxButton:active:not(:disabled) {
.creation-row .mw-ui-button:active:not(:disabled) {
   transform: translateY(0);
   transform: translateY(0);
}
}


/* Disabled */
/* Disabled look (before a name is entered) */
.creation-row .createboxButton:disabled {
.creation-row .mw-ui-button:disabled {
   background-color: #f5f5f5 !important;
   background-color: #f5f5f5 !important;
   border-color: #ccc !important;
   border-color: #ccc !important;

Revision as of 14:35, 13 November 2025

/* Row: center the pair horizontally */
.creation-row {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0;
}

/* Make the inner InputBox container a row as well */
.creation-row .mw-inputbox-centered {
  display: flex;
  justify-content: center;
}

.creation-row .createbox {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* SAME width + height for both input and button */
.creation-row .mw-ui-input,
.creation-row .mw-ui-button {
  width: 260px !important;
  height: 40px !important;
  box-sizing: border-box;
}

/* --- INPUT: centered, italic, outlined --- */
.creation-row .mw-ui-input {
  border: 1.5px solid #000 !important;
  border-radius: 2px !important;
  background: #fff !important;
  font-size: 0.95rem !important;
  text-align: center !important;
  font-style: italic !important;
}

.creation-row .mw-ui-input::placeholder {
  text-align: center;
  color: #777;
  font-style: italic;
}

/* --- BUTTON: outline style, like noarticletext --- */
.creation-row .mw-ui-button {
  border: 1.5px solid #000 !important;
  border-radius: 2px !important;
  background: transparent !important;
  color: #000 !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-align: center !important;
  box-shadow: none !important;
  cursor: pointer;

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

/* Hover (enabled only) */
.creation-row .mw-ui-button:hover:not(:disabled) {
  background-color: #f2f2f2 !important;
  transform: translateY(-1px);
}

/* Active (enabled only) */
.creation-row .mw-ui-button:active:not(:disabled) {
  transform: translateY(0);
}

/* Disabled look (before a name is entered) */
.creation-row .mw-ui-button:disabled {
  background-color: #f5f5f5 !important;
  border-color: #ccc !important;
  color: #888 !important;
  cursor: not-allowed;
}