Template:CreateHub/styles.css: Difference between revisions

No edit summary
No edit summary
 
(26 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Row: center the pair horizontally */
.creation-row {
.creation-row {
   display: flex;
   margin: 10px 0;
   justify-content: center;
   width: 100%;
  margin: 0.75rem 0;
}
}


/* Make the inner InputBox container a row as well */
/* Force InputBox to align horizontally */
.creation-row .mw-inputbox-centered {
.creation-row .mw-inputbox-centered {
   display: flex;
  margin: 0 !important;
   justify-content: center;
  white-space: nowrap !important; /* Prevents wrapping */
   display: flex !important;
   align-items: center !important;
  gap: 15px !important;
}
}


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


/* SAME width + height for both input and button */
/* Shared Styling */
.creation-row .mw-ui-input,
.creation-row input[type="text"],
.creation-row .mw-ui-button {
.creation-row input[type="submit"] {
  width: 260px !important;
   height: 40px !important;
   height: 40px !important;
   box-sizing: border-box;
   box-sizing: border-box !important;
  font-size: 14px !important;
}
}


/* --- INPUT: centered, italic, outlined --- */
/* Text Box */
.creation-row .mw-ui-input {
.creation-row input[type="text"] {
   border: 1.5px solid #000 !important;
   width: 260px !important;
  border-radius: 2px !important;
   background: #fff !important;
   background: #fff !important;
   font-size: 0.95rem !important;
   border: 1px solid #a2a9b1 !important;
   text-align: center !important;
   padding: 0 10px !important;
  font-style: italic !important;
}
}


.creation-row .mw-ui-input::placeholder {
/* Button */
   text-align: center;
.creation-row input[type="submit"] {
   color: #777;
   width: 260px !important;
  font-style: italic;
   background: #fff !important;
}
 
/* --- BUTTON: outline style, like noarticletext --- */
.creation-row .mw-ui-button {
   border: 1.5px solid #000 !important;
   border: 1.5px solid #000 !important;
  color: #000 !important;
  font-weight: 700 !important;
  cursor: pointer !important;
   border-radius: 2px !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 input[type="submit"]:hover {
.creation-row .mw-ui-button:hover:not(:disabled) {
   background-color: #f2f2f2 !important;
   background-color: #f2f2f2 !important;
   transform: translateY(-1px);
   color: #000 !important;
}
 
/* 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;
}
}