Krusty Planet website - static HTML with Bulma
Theme system: dark, light, forest, coffee localStorage persistence for theme preference
This commit is contained in:
commit
cbecb8c96e
14 changed files with 1347 additions and 0 deletions
188
css/style.css
Normal file
188
css/style.css
Normal file
|
|
@ -0,0 +1,188 @@
|
|||
@import "https://cdn.jsdelivr.net/npm/bulma@1.0.2/css/bulma.min.css";
|
||||
|
||||
/* Hero gradient (dark default) */
|
||||
.hero.is-kp {
|
||||
background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #111111 100%);
|
||||
}
|
||||
|
||||
/* Card styling (dark default) */
|
||||
.kp-card {
|
||||
background-color: #1a1a1a;
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
transition: all 0.2s;
|
||||
color: #eaeaea;
|
||||
}
|
||||
|
||||
.kp-card:hover {
|
||||
border-color: #e94560;
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
/* ====== DARK THEME (explicit) ====== */
|
||||
[data-theme="dark"] {
|
||||
background-color: #0a0a0a;
|
||||
color: #fafafa;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .hero.is-kp {
|
||||
background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #111111 100%);
|
||||
}
|
||||
|
||||
[data-theme="dark"] .kp-card {
|
||||
background-color: #1a1a1a;
|
||||
border: 1px solid rgba(255,255,255,0.1);
|
||||
color: #eaeaea;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .navbar.is-dark {
|
||||
background-color: #0a0a0a;
|
||||
border-bottom-color: #262626;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .subtitle.has-text-light,
|
||||
[data-theme="dark"] .has-text-light {
|
||||
color: #a1a1a1 !important;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .title {
|
||||
color: #fafafa;
|
||||
}
|
||||
|
||||
[data-theme="dark"] .footer.has-background-dark {
|
||||
background-color: #0a0a0a !important;
|
||||
border-top: 1px solid #262626;
|
||||
}
|
||||
|
||||
/* ====== LIGHT THEME ====== */
|
||||
[data-theme="light"] .hero.is-kp {
|
||||
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
|
||||
}
|
||||
|
||||
[data-theme="light"] {
|
||||
background-color: #ffffff;
|
||||
color: #1a1a1a;
|
||||
}
|
||||
|
||||
[data-theme="light"] .kp-card {
|
||||
background-color: #ffffff;
|
||||
border: 1px solid #e5e5e5;
|
||||
color: #1a1a1a;
|
||||
}
|
||||
|
||||
[data-theme="light"] .kp-card:hover {
|
||||
border-color: #e94560;
|
||||
}
|
||||
|
||||
[data-theme="light"] .has-text-grey-light {
|
||||
color: #333333 !important;
|
||||
}
|
||||
|
||||
[data-theme="light"] .navbar.is-dark {
|
||||
background-color: #1a1a2e;
|
||||
}
|
||||
|
||||
[data-theme="light"] .subtitle.has-text-light,
|
||||
[data-theme="light"] .has-text-light {
|
||||
color: #333333 !important;
|
||||
}
|
||||
|
||||
[data-theme="light"] .title {
|
||||
color: #1a1a1a;
|
||||
}
|
||||
|
||||
[data-theme="light"] .section {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
|
||||
/* ====== FOREST THEME ====== */
|
||||
[data-theme="forest"] .hero.is-kp {
|
||||
background: linear-gradient(135deg, #0d1a0d 0%, #1a3a1a 50%, #0f2e0f 100%);
|
||||
}
|
||||
|
||||
[data-theme="forest"] {
|
||||
background-color: #0d1a0d;
|
||||
color: #e8f5e8;
|
||||
}
|
||||
|
||||
[data-theme="forest"] .kp-card {
|
||||
background-color: #1a2e1a;
|
||||
border: 1px solid rgba(74, 222, 128, 0.2);
|
||||
color: #e8f5e8;
|
||||
}
|
||||
|
||||
[data-theme="forest"] .kp-card:hover {
|
||||
border-color: #4ade80;
|
||||
}
|
||||
|
||||
[data-theme="forest"] .has-text-grey-light {
|
||||
color: #a8c8a8 !important;
|
||||
}
|
||||
|
||||
[data-theme="forest"] .navbar.is-dark {
|
||||
background-color: #0d1a0d;
|
||||
border-bottom-color: #2d4a2d;
|
||||
}
|
||||
|
||||
[data-theme="forest"] .subtitle.has-text-light,
|
||||
[data-theme="forest"] .has-text-light {
|
||||
color: #a8c8a8 !important;
|
||||
}
|
||||
|
||||
[data-theme="forest"] .title {
|
||||
color: #e8f5e8;
|
||||
}
|
||||
|
||||
[data-theme="forest"] .footer.has-background-dark {
|
||||
background-color: #0d1a0d !important;
|
||||
border-top: 1px solid #2d4a2d;
|
||||
}
|
||||
|
||||
/* ====== COFFEE THEME ====== */
|
||||
[data-theme="coffee"] .hero.is-kp {
|
||||
background: linear-gradient(135deg, #1a1410 0%, #2a2018 50%, #3d2b1a 100%);
|
||||
}
|
||||
|
||||
[data-theme="coffee"] {
|
||||
background-color: #1a1410;
|
||||
color: #f5ebe0;
|
||||
}
|
||||
|
||||
[data-theme="coffee"] .kp-card {
|
||||
background-color: #2a2018;
|
||||
border: 1px solid rgba(212, 165, 116, 0.2);
|
||||
color: #f5ebe0;
|
||||
}
|
||||
|
||||
[data-theme="coffee"] .kp-card:hover {
|
||||
border-color: #d4a574;
|
||||
}
|
||||
|
||||
[data-theme="coffee"] .has-text-grey-light {
|
||||
color: #c8b8a8 !important;
|
||||
}
|
||||
|
||||
[data-theme="coffee"] .navbar.is-dark {
|
||||
background-color: #1a1410;
|
||||
border-bottom-color: #3d3028;
|
||||
}
|
||||
|
||||
[data-theme="coffee"] .subtitle.has-text-light,
|
||||
[data-theme="coffee"] .has-text-light {
|
||||
color: #c8b8a8 !important;
|
||||
}
|
||||
|
||||
[data-theme="coffee"] .title {
|
||||
color: #f5ebe0;
|
||||
}
|
||||
|
||||
[data-theme="coffee"] .footer.has-background-dark {
|
||||
background-color: #1a1410 !important;
|
||||
border-top: 1px solid #3d3028;
|
||||
}
|
||||
|
||||
/* ====== Theme button ====== */
|
||||
#theme-toggle {
|
||||
min-width: 2.5rem;
|
||||
font-size: 1.1rem;
|
||||
padding: 0.5rem 0.75rem;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue