Template:CreateHub/styles.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
} | } | ||
/* --- Card Styling ( | /* --- Card Styling (simple, in line with site aesthetic) --- */ | ||
.creation-card { | .creation-card { | ||
width: | width: 420px; | ||
padding: 1.5rem; | padding: 1.5rem; | ||
border: 1.5px solid #000000; | |||
border: 1.5px solid #000000; | border-radius: 2px; | ||
border-radius: 2px; | |||
background: #fafafa; | background: #fafafa; | ||
transition: | transition: | ||
background-color 0.2s ease, | background-color 0.2s ease, | ||
box-shadow 0.2s ease, | box-shadow 0.2s ease, | ||
| Line 30: | Line 29: | ||
.creation-card h3 { | .creation-card h3 { | ||
margin-top: 0; | margin-top: 0; | ||
margin-bottom: 0.25rem; | |||
font-size: 1.2em; | font-size: 1.2em; | ||
color: #111; | color: #111; | ||
font-weight: 600; | font-weight: 600; | ||
} | } | ||
/* --- InputBox | .creation-card p { | ||
.creation-card .inputbox { | margin-top: 0; | ||
margin-top: | margin-bottom: 0.75rem; | ||
} | |||
/* --- InputBox inline layout: input on left, button on right --- */ | |||
.creation-card .inputbox form { | |||
display: flex; | |||
align-items: center; | |||
gap: 0.75rem; | |||
margin-top: 0.5rem; | |||
} | } | ||
/* | /* Text input */ | ||
.creation-card input { | .creation-card .inputbox input[type="text"] { | ||
flex: 1 1 auto; | |||
padding: 0.4rem 0.6rem; | padding: 0.4rem 0.6rem; | ||
border: 1.5px solid #000; | border: 1.5px solid #000; | ||
border-radius: 2px; | border-radius: 2px; | ||
font-size: 0. | font-size: 0.9rem; | ||
background: #fff; | background: #fff; | ||
} | } | ||
.creation-card input::placeholder { | /* Placeholder styling */ | ||
.creation-card .inputbox input[type="text"]::placeholder { | |||
color: #777; | color: #777; | ||
font-style: italic; | font-style: italic; | ||
} | } | ||
/* | /* Submit button — visually aligned with .create-button style */ | ||
.creation-card input[type="submit"] { | .creation-card .inputbox input[type="submit"] { | ||
flex: 0 0 180px; | |||
padding: 8px 0; | padding: 8px 0; | ||
text-align: center; | |||
background: transparent !important; | background: transparent !important; | ||
border: 1.5px solid #000; | border: 1.5px solid #000; | ||
border-radius: 2px; | border-radius: 2px; | ||
color: inherit; | color: inherit; | ||
font-weight: 600; | font-weight: 600; | ||
font-size: 0.9rem; | |||
cursor: pointer; | cursor: pointer; | ||
transition: | transition: | ||
transform 0.15s ease, | transform 0.15s ease, | ||
border-color 0.2s ease; | border-color 0.15s ease, | ||
background-color 0.2s ease; | |||
} | } | ||
.creation-card input[type="submit"]:hover { | .creation-card .inputbox input[type="submit"]:hover { | ||
border-color: #000; | border-color: #000; | ||
background-color: #e6e6e6 !important; | |||
transform: translateY(-1px); | transform: translateY(-1px); | ||
} | } | ||
.creation-card input[type="submit"]:active { | .creation-card .inputbox input[type="submit"]:active { | ||
transform: translateY(0); | transform: translateY(0); | ||
} | } | ||