Template:CreateHub/styles.css: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
/* Row container stays the same */
/* --- Row Layout --- */
.creation-row {
.creation-row {
   display: flex;
   display: flex;
   justify-content: center;
   justify-content: center;
   margin: 0.5rem 0;
  align-items: center;
  gap: 1rem;                /* uniform spacing */
   margin: 0.75rem 0;
}
}


.creation-row .inputbox form {
/* Give both elements the same fixed width */
   display: flex;
.creation-row .inputbox input[type="text"],
   align-items: center;
.creation-row input[type="submit"] {
   gap: 0.75rem;
   width: 260px !important/* <-- adjust this to fit your layout */
   box-sizing: border-box;   /* ensures borders don’t change width */
}
}


/* Text input */
/* --- Text Input --- */
.creation-row .inputbox input[type="text"] {
.creation-row .inputbox input[type="text"] {
  width: 220px;
   padding: 0.45rem 0.6rem;
   padding: 0.4rem 0.6rem;
   border: 1.5px solid #000 !important;
   border: 1.5px solid #000 !important;
   border-radius: 2px;
   border-radius: 2px;
  background: #fff;
   font-size: 0.95rem;
   font-size: 0.95rem;
   text-align: center;
   text-align: center;
  background: #fff;
}
}


Line 28: Line 30:
}
}


/* Submit button: force same look as create-button links */
/* --- Submit Button (matches Noarticletext buttons) --- */
.creation-row input[type="submit"] {
.creation-row input[type="submit"] {
  width: 220px;
   padding: 8px 0;
   padding: 8px 0;
   text-align: center;
   text-align: center;
Line 37: Line 38:
   border: 1.5px solid #000 !important;
   border: 1.5px solid #000 !important;
   border-radius: 2px !important;
   border-radius: 2px !important;
   color: #000 !important;
   color: #000 !important;
   font-weight: 600;
   font-weight: 600;
   font-size: 0.95rem;
   font-size: 0.95rem;
  text-decoration: none !important;
  box-shadow: none !important;
   cursor: pointer;
   cursor: pointer;


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


/* Hover */
/* Hover */
.creation-row input[type="submit"]:hover:not(:disabled) {
.creation-row input[type="submit"]:hover:not(:disabled) {
  border-color: #000 !important;
   background-color: #f2f2f2 !important;
   background-color: #f2f2f2 !important;
   transform: translateY(-1px);
   transform: translateY(-1px);
Line 62: Line 61:
}
}


/* Disabled state: still readable, but muted */
/* Disabled state */
.creation-row input[type="submit"]:disabled {
.creation-row input[type="submit"]:disabled {
   background-color: #f5f5f5 !important;
   background-color: #f5f5f5 !important;
   border-color: #cccccc !important;
   border-color: #ccc !important;
   color: #888888 !important;
   color: #888 !important;
  opacity: 1 !important;
  transform: none;
   cursor: not-allowed;
   cursor: not-allowed;
}
}