mirror of
https://github.com/Cametendo/devil-fruit-encyclopedia.git
synced 2026-03-18 07:10:21 +01:00
added more fruits and images
This commit is contained in:
248
styles.css
248
styles.css
@@ -1,5 +1,14 @@
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
--bg: #081018;
|
||||
--bg-accent: #101b27;
|
||||
--panel: rgba(10, 21, 35, 0.9);
|
||||
--panel-border: rgba(141, 182, 214, 0.18);
|
||||
--text: #edf4ff;
|
||||
--muted: #b6c7dd;
|
||||
--highlight: #8fd3ff;
|
||||
--highlight-strong: #ffd36e;
|
||||
--shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
|
||||
}
|
||||
|
||||
* {
|
||||
@@ -8,111 +17,232 @@
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
background: #0f1320;
|
||||
color: #f0f4ff;
|
||||
min-height: 100vh;
|
||||
font-family: "Trebuchet MS", "Segoe UI", sans-serif;
|
||||
line-height: 1.5;
|
||||
color: var(--text);
|
||||
background:
|
||||
radial-gradient(circle at top, rgba(71, 134, 181, 0.3), transparent 28%),
|
||||
linear-gradient(180deg, #102133 0%, var(--bg) 55%, #050b11 100%);
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.page-header {
|
||||
padding: 4.5rem 1.2rem 3rem;
|
||||
text-align: center;
|
||||
padding: 2.5rem 1rem 2rem;
|
||||
background: #171d2d;
|
||||
border-bottom: 1px solid #2f3953;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 0;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.32rem;
|
||||
font-size: 0.76rem;
|
||||
color: var(--highlight);
|
||||
}
|
||||
|
||||
.page-header h1 {
|
||||
margin: 0;
|
||||
margin: 0.65rem 0 0;
|
||||
font-size: clamp(2.5rem, 5vw, 4.75rem);
|
||||
line-height: 0.95;
|
||||
}
|
||||
|
||||
.page-header p {
|
||||
margin: 0.5rem 0 0;
|
||||
color: #c6d3ef;
|
||||
.hero-copy {
|
||||
width: min(46rem, 92%);
|
||||
margin: 1rem auto 0;
|
||||
color: var(--muted);
|
||||
font-size: 1.05rem;
|
||||
}
|
||||
|
||||
.content {
|
||||
width: min(1080px, 94%);
|
||||
margin: 1.5rem auto 2rem;
|
||||
width: min(1180px, calc(100% - 2rem));
|
||||
margin: 0 auto 2.5rem;
|
||||
display: grid;
|
||||
gap: 1.25rem;
|
||||
}
|
||||
|
||||
.card,
|
||||
.fruit-card,
|
||||
.section-heading {
|
||||
border: 1px solid var(--panel-border);
|
||||
background: var(--panel);
|
||||
backdrop-filter: blur(10px);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.card,
|
||||
.section-heading {
|
||||
border-radius: 22px;
|
||||
padding: 1.2rem 1.35rem;
|
||||
}
|
||||
|
||||
.overview {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
|
||||
gap: 1rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.card {
|
||||
background: #161d2d;
|
||||
border: 1px solid #2f3953;
|
||||
border-radius: 12px;
|
||||
padding: 1rem 1.25rem;
|
||||
.overview h2,
|
||||
.section-heading h2 {
|
||||
margin: 0 0 0.35rem;
|
||||
}
|
||||
|
||||
.toolbar h2 {
|
||||
margin: 0 0 0.25rem;
|
||||
.overview p,
|
||||
.section-heading p,
|
||||
.credits p {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.toolbar p {
|
||||
margin: 0 0 0.75rem;
|
||||
color: #c6d3ef;
|
||||
}
|
||||
|
||||
.toolbar-actions {
|
||||
.stat-row {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem;
|
||||
gap: 0.75rem;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
button {
|
||||
border: 1px solid #4b5c85;
|
||||
background: #263453;
|
||||
color: #f0f4ff;
|
||||
padding: 0.5rem 0.8rem;
|
||||
border-radius: 8px;
|
||||
font: inherit;
|
||||
cursor: pointer;
|
||||
.stat-pill {
|
||||
min-width: 10.5rem;
|
||||
padding: 0.85rem 1rem;
|
||||
border-radius: 16px;
|
||||
background: rgba(143, 211, 255, 0.08);
|
||||
border: 1px solid rgba(143, 211, 255, 0.16);
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background: #32456d;
|
||||
}
|
||||
|
||||
button.danger {
|
||||
background: #593040;
|
||||
border-color: #80465d;
|
||||
}
|
||||
|
||||
button.danger:hover {
|
||||
background: #6c394d;
|
||||
.stat-label {
|
||||
display: block;
|
||||
margin-bottom: 0.25rem;
|
||||
color: var(--muted);
|
||||
font-size: 0.82rem;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08rem;
|
||||
}
|
||||
|
||||
.fruit-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||||
grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.fruit-card {
|
||||
background: #161d2d;
|
||||
border: 1px solid #2f3953;
|
||||
border-radius: 12px;
|
||||
border-radius: 22px;
|
||||
overflow: hidden;
|
||||
display: grid;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
.fruit-card img {
|
||||
width: 100%;
|
||||
height: 160px;
|
||||
aspect-ratio: 4 / 3;
|
||||
object-fit: cover;
|
||||
display: block;
|
||||
background: linear-gradient(135deg, rgba(255, 211, 110, 0.16), rgba(143, 211, 255, 0.08));
|
||||
}
|
||||
|
||||
.fruit-info {
|
||||
padding: 0.8rem 0.9rem 1rem;
|
||||
display: grid;
|
||||
gap: 0.75rem;
|
||||
padding: 1rem 1rem 1.1rem;
|
||||
}
|
||||
|
||||
.fruit-info h3 {
|
||||
margin: 0 0 0.45rem;
|
||||
font-size: 1.05rem;
|
||||
.title-row {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.fruit-info p {
|
||||
margin: 0.2rem 0;
|
||||
color: #dbe4fa;
|
||||
font-size: 0.95rem;
|
||||
.title-row h3 {
|
||||
margin: 0;
|
||||
font-size: 1.18rem;
|
||||
line-height: 1.15;
|
||||
}
|
||||
|
||||
.fruit-type {
|
||||
flex-shrink: 0;
|
||||
padding: 0.28rem 0.55rem;
|
||||
border-radius: 999px;
|
||||
background: rgba(255, 211, 110, 0.16);
|
||||
color: var(--highlight-strong);
|
||||
font-size: 0.78rem;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05rem;
|
||||
}
|
||||
|
||||
.subtitle,
|
||||
.description,
|
||||
.extra-detail {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
color: var(--highlight);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.description,
|
||||
.extra-detail {
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.fruit-meta {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: grid;
|
||||
gap: 0.42rem;
|
||||
}
|
||||
|
||||
.fruit-meta li {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.fruit-meta strong {
|
||||
color: var(--highlight-strong);
|
||||
}
|
||||
|
||||
.source-link {
|
||||
width: fit-content;
|
||||
color: var(--highlight);
|
||||
text-decoration: none;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.source-link:hover,
|
||||
.source-link:focus-visible {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
@media (max-width: 820px) {
|
||||
.overview {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.stat-row {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.page-header {
|
||||
padding-top: 3.4rem;
|
||||
}
|
||||
|
||||
.content {
|
||||
width: min(100% - 1rem, 1180px);
|
||||
}
|
||||
|
||||
.card,
|
||||
.section-heading,
|
||||
.fruit-info {
|
||||
padding-left: 0.95rem;
|
||||
padding-right: 0.95rem;
|
||||
}
|
||||
|
||||
.fruit-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user