Template:CreateHub/styles.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* Row | /* Row: center the pair horizontally */ | ||
.creation-row { | .creation-row { | ||
display: flex; | display: flex; | ||
| Line 6: | Line 6: | ||
} | } | ||
/* | /* 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 | /* SAME width + height for both input and button */ | ||
.creation-row . | .creation-row .mw-ui-input, | ||
.creation-row . | .creation-row .mw-ui-button { | ||
width: 260px !important; | width: 260px !important; | ||
height: 40px !important; | height: 40px !important; | ||
| Line 26: | Line 26: | ||
} | } | ||
/* --- | /* --- INPUT: centered, italic, outlined --- */ | ||
.creation-row . | .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; | ||
} | } | ||
.creation-row .mw-ui-input::placeholder { | |||
.creation-row . | |||
text-align: center; | text-align: center; | ||
color: #777; | color: #777; | ||
| Line 44: | Line 42: | ||
} | } | ||
/* --- | /* --- BUTTON: outline style, like noarticletext --- */ | ||
.creation-row . | .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; | ||
transition: | transition: | ||
background-color 0.2s ease, | background-color 0.2s ease, | ||
| Line 62: | Line 60: | ||
} | } | ||
/* Hover */ | /* Hover (enabled only) */ | ||
.creation-row . | .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 . | .creation-row .mw-ui-button:active:not(:disabled) { | ||
transform: translateY(0); | transform: translateY(0); | ||
} | } | ||
/* Disabled */ | /* Disabled look (before a name is entered) */ | ||
.creation-row . | .creation-row .mw-ui-button:disabled { | ||
background-color: #f5f5f5 !important; | background-color: #f5f5f5 !important; | ||
border-color: #ccc !important; | border-color: #ccc !important; | ||