Template:CreateHub/styles.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Row | /* Row container: one input + one button */ | ||
.creation-row { | .creation-row { | ||
display: flex; | display: flex; | ||
justify-content: center; | justify-content: center; | ||
margin: 0.75rem 0; | |||
} | |||
/* Let the InputBox wrapper form act as our flex row */ | |||
.creation-row .mw-inputbox-centered { | |||
display: flex; | |||
justify-content: center; | |||
} | |||
.creation-row .createbox { | |||
display: flex; | |||
align-items: center; | align-items: center; | ||
gap: 1rem; | gap: 1rem; | ||
} | } | ||
/* SAME SIZE for | /* SAME SIZE for input and button */ | ||
.creation-row . | .creation-row .createboxInput, | ||
.creation-row . | .creation-row .createboxButton { | ||
width: 260px !important; | width: 260px !important; | ||
height: 40px !important; | height: 40px !important; | ||
| Line 16: | Line 26: | ||
} | } | ||
/* | /* --- Text input styling --- */ | ||
.creation-row . | .creation-row .createboxInput { | ||
border: 1.5px solid #000 !important; | border: 1.5px solid #000 !important; | ||
border-radius: 2px !important; | border-radius: 2px !important; | ||
| Line 23: | Line 33: | ||
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 | /* Placeholder */ | ||
.creation-row . | .creation-row .createboxInput::placeholder { | ||
text-align: center; | text-align: center; | ||
color: #777; | color: #777; | ||
| Line 34: | Line 44: | ||
} | } | ||
/* | /* --- Button styling (outline style) --- */ | ||
.creation-row . | .creation-row .createboxButton { | ||
border: 1.5px solid #000 !important; | border: 1.5px solid #000 !important; | ||
border-radius: 2px !important; | border-radius: 2px !important; | ||
| Line 42: | Line 52: | ||
font-weight: 600 !important; | font-weight: 600 !important; | ||
font-size: 0.95rem !important; | font-size: 0.95rem !important; | ||
text-align: center !important; | |||
cursor: pointer; | cursor: pointer; | ||
box-shadow: none !important; | |||
transition: | transition: | ||
background-color 0.2s ease, | background-color 0.2s ease, | ||
| Line 54: | Line 63: | ||
/* Hover */ | /* Hover */ | ||
.creation-row . | .creation-row .createboxButton:hover:not(:disabled) { | ||
background-color: #f2f2f2 !important; | background-color: #f2f2f2 !important; | ||
transform: translateY(-1px); | transform: translateY(-1px); | ||
| Line 60: | Line 69: | ||
/* Active */ | /* Active */ | ||
.creation-row . | .creation-row .createboxButton:active:not(:disabled) { | ||
transform: translateY(0); | transform: translateY(0); | ||
} | } | ||
/* Disabled | /* Disabled */ | ||
.creation-row . | .creation-row .createboxButton:disabled { | ||
background-color: #f5f5f5 !important; | background-color: #f5f5f5 !important; | ||
border-color: #ccc !important; | border-color: #ccc !important; | ||
Revision as of 14:31, 13 November 2025
/* Row container: one input + one button */
.creation-row {
display: flex;
justify-content: center;
margin: 0.75rem 0;
}
/* Let the InputBox wrapper form act as our flex row */
.creation-row .mw-inputbox-centered {
display: flex;
justify-content: center;
}
.creation-row .createbox {
display: flex;
align-items: center;
gap: 1rem;
}
/* SAME SIZE for input and button */
.creation-row .createboxInput,
.creation-row .createboxButton {
width: 260px !important;
height: 40px !important;
box-sizing: border-box;
}
/* --- Text input styling --- */
.creation-row .createboxInput {
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;
}
/* Placeholder */
.creation-row .createboxInput::placeholder {
text-align: center;
color: #777;
font-style: italic;
}
/* --- Button styling (outline style) --- */
.creation-row .createboxButton {
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;
cursor: pointer;
box-shadow: none !important;
transition:
background-color 0.2s ease,
transform 0.15s ease,
border-color 0.15s ease;
}
/* Hover */
.creation-row .createboxButton:hover:not(:disabled) {
background-color: #f2f2f2 !important;
transform: translateY(-1px);
}
/* Active */
.creation-row .createboxButton:active:not(:disabled) {
transform: translateY(0);
}
/* Disabled */
.creation-row .createboxButton:disabled {
background-color: #f5f5f5 !important;
border-color: #ccc !important;
color: #888 !important;
cursor: not-allowed;
}