reformatted index.css for consistent indentation and structure, improving readability and maintainability of styles

Signed-off-by: Matthias Puchstein <matthias@puchstein.bayern>
This commit is contained in:
2025-07-09 23:52:23 +02:00
parent 98f587ccbc
commit 9bb8196ed0

View File

@@ -1,362 +1,366 @@
@import "tailwindcss"; @import "tailwindcss";
:root { :root {
--bg: #f9f6ff; --bg: #f9f6ff;
--container: #eee8fc; --container: #eee8fc;
--card: #e5dcff; --card: #e5dcff;
--text: #1a0d29; --text: #1a0d29;
--text-muted: #3d2a5c; --text-muted: #3d2a5c;
--accent: #a64dff; --accent: #a64dff;
--accent-gradient: linear-gradient(135deg, #a64dff, #d500f9); --accent-gradient: linear-gradient(135deg, #a64dff, #d500f9);
--accent-soft: #c9a4ff; --accent-soft: #c9a4ff;
--accent-dark: #6a0dad; --accent-dark: #6a0dad;
--shadow: rgba(166, 77, 255, 0.2); --shadow: rgba(166, 77, 255, 0.2);
--text-shadow: rgba(0, 0, 0, 0.5); --text-shadow: rgba(0, 0, 0, 0.5);
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5; line-height: 1.5;
font-weight: 400; font-weight: 400;
color-scheme: light dark; color-scheme: light dark;
color: var(--text); color: var(--text);
background-color: var(--bg); background-color: var(--bg);
font-synthesis: none; font-synthesis: none;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
[data-theme="dark"] { [data-theme="dark"] {
--bg: #150830; --bg: #150830;
--container: #2a1050; --container: #2a1050;
--card: #3d1a6e; --card: #3d1a6e;
--text: #f8eeff; --text: #f8eeff;
--text-muted: #d4b8f0; --text-muted: #d4b8f0;
--accent: #c490ff; --accent: #c490ff;
--accent-gradient: linear-gradient(135deg, #c490ff, #d500f9); --accent-gradient: linear-gradient(135deg, #c490ff, #d500f9);
--accent-soft: #a64dff; --accent-soft: #a64dff;
--accent-dark: #6a0dad; --accent-dark: #6a0dad;
--shadow: rgba(196, 144, 255, 0.3); --shadow: rgba(196, 144, 255, 0.3);
--text-shadow: rgba(255, 255, 255, 0.5); --text-shadow: rgba(255, 255, 255, 0.5);
} }
.border-background { .border-background {
border-color: var(--accent); border-color: var(--accent);
} }
.page { .page {
background-color: var(--bg); background-color: var(--bg);
color: var(--text); color: var(--text);
transition: background-color 0.3s, color 0.3s; transition: background-color 0.3s, color 0.3s;
position: relative; position: relative;
} }
.page::before { .page::before {
content: ""; content: "";
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-image: radial-gradient(var(--accent-soft) 1px, transparent 1px); background-image: radial-gradient(var(--accent-soft) 1px, transparent 1px);
background-size: 40px 40px; background-size: 40px 40px;
opacity: 0.05; opacity: 0.05;
pointer-events: none; pointer-events: none;
z-index: 0; z-index: 0;
} }
.pageTitle { .pageTitle {
color: var(--accent); color: var(--accent);
font-weight: bold; font-weight: bold;
font-size: 1.25em; font-size: 1.25em;
} }
.dreamPanel { .dreamPanel {
background: linear-gradient(135deg, rgba(166, 77, 255, 0.35), rgba(213, 0, 249, 0.35)); background: linear-gradient(135deg, rgba(166, 77, 255, 0.35), rgba(213, 0, 249, 0.35));
border-radius: 10px; border-radius: 10px;
padding: 1em; padding: 1em;
color: var(--text); color: var(--text);
backdrop-filter: blur(5px); backdrop-filter: blur(5px);
box-shadow: 0 0 15px var(--shadow); box-shadow: 0 0 15px var(--shadow);
border: none; border: none;
} }
a { a {
font-weight: 500; font-weight: 500;
color: var(--accent); color: var(--accent);
text-decoration: inherit; text-decoration: inherit;
} }
a:hover { a:hover {
color: var(--text-muted); color: var(--text-muted);
} }
body { body {
margin: 0; margin: 0;
display: flex; display: flex;
min-width: 320px; min-width: 320px;
min-height: 100vh; min-height: 100vh;
width: 100%; width: 100%;
background-color: var(--bg); background-color: var(--bg);
color: var(--text); color: var(--text);
transition: background-color 0.3s, color 0.3s; transition: background-color 0.3s, color 0.3s;
overflow-x: hidden; overflow-x: hidden;
} }
h1 { h1 {
font-size: 3.2em; font-size: 3.2em;
line-height: 1.1; line-height: 1.1;
} }
button { button {
border-radius: 8px; border-radius: 8px;
border: 1px solid transparent; border: 1px solid transparent;
padding: 0.6em 1.2em; padding: 0.6em 1.2em;
font-size: 1em; font-size: 1em;
font-weight: 500; font-weight: 500;
font-family: inherit; font-family: inherit;
background-color: var(--container); background-color: var(--container);
color: var(--text); color: var(--text);
cursor: pointer; cursor: pointer;
transition: border-color 0.25s, background-color 0.3s, color 0.3s; transition: border-color 0.25s, background-color 0.3s, color 0.3s;
} }
button:hover { button:hover {
border-color: var(--accent); border-color: var(--accent);
} }
button:focus, button:focus,
button:focus-visible { button:focus-visible {
outline: 4px auto -webkit-focus-ring-color; outline: 4px auto -webkit-focus-ring-color;
} }
.feed-container { .feed-container {
padding: 1.5em; padding: 1.5em;
transition: all 0.3s ease; transition: all 0.3s ease;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
border: none; border: none;
border-radius: 16px; border-radius: 16px;
} }
.dream-card { .dream-card {
background: linear-gradient(135deg, rgba(166, 77, 255, 0.35), rgba(213, 0, 249, 0.35)); background: linear-gradient(135deg, rgba(166, 77, 255, 0.35), rgba(213, 0, 249, 0.35));
border-radius: 12px; border-radius: 12px;
padding: 1.25em; padding: 1.25em;
color: var(--text); color: var(--text);
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
box-shadow: 0 10px 30px var(--shadow), inset 0 0 15px rgba(166, 77, 255, 0.3); box-shadow: 0 10px 30px var(--shadow), inset 0 0 15px rgba(166, 77, 255, 0.3);
position: relative; position: relative;
transition: all 0.3s ease; transition: all 0.3s ease;
border: none; border: none;
} }
.dream-card::before { .dream-card::before {
content: ''; content: '';
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
left: 0; left: 0;
z-index: -1; z-index: -1;
margin: -1px; margin: -1px;
border-radius: inherit; border-radius: inherit;
background: var(--accent-gradient); background: var(--accent-gradient);
opacity: 0.1; opacity: 0.1;
} }
.dream-card:hover { .dream-card:hover {
transform: translateY(-5px); transform: translateY(-5px);
box-shadow: 0 15px 35px var(--shadow), inset 0 0 20px rgba(166, 77, 255, 0.3); box-shadow: 0 15px 35px var(--shadow), inset 0 0 20px rgba(166, 77, 255, 0.3);
} }
.dream-card .title { .dream-card .title {
color: var(--accent); color: var(--accent);
font-weight: bold; font-weight: bold;
font-size: 1.25em; font-size: 1.25em;
margin-bottom: 0.5em; margin-bottom: 0.5em;
line-height: 1.3; line-height: 1.3;
} }
.dream-card .timestamp { .dream-card .timestamp {
color: var(--text-muted); color: var(--text-muted);
font-size: 0.85em; font-size: 0.85em;
font-weight: 500; font-weight: 500;
} }
.microphone-button { .microphone-button {
background: var(--accent-gradient); background: var(--accent-gradient);
color: white; color: white;
border-radius: 50%; border-radius: 50%;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
} }
/* Theme Toggle Styles */ /* Theme Toggle Styles */
.theme-toggle { .theme-toggle {
position: absolute; position: absolute;
top: 1rem; top: 1rem;
right: 1rem; right: 1rem;
display: inline-block; display: inline-block;
} }
.theme-toggle input { .theme-toggle input {
display: none; display: none;
} }
.theme-toggle .slider { .theme-toggle .slider {
width: 40px; width: 40px;
height: 20px; height: 20px;
background-color: #bbb; background-color: #bbb;
border-radius: 20px; border-radius: 20px;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
} }
.theme-toggle .slider::before { .theme-toggle .slider::before {
content: ""; content: "";
width: 16px; width: 16px;
height: 16px; height: 16px;
position: absolute; position: absolute;
left: 2px; left: 2px;
top: 2px; top: 2px;
background: white; background: white;
border-radius: 50%; border-radius: 50%;
transition: transform 0.3s; transition: transform 0.3s;
} }
.theme-toggle input:checked + .slider::before { .theme-toggle input:checked + .slider::before {
transform: translateX(20px); transform: translateX(20px);
} }
.theme-toggle input:checked + .slider { .theme-toggle input:checked + .slider {
background-color: var(--accent); background-color: var(--accent);
} }
/* Dreamy violet enhancements */ /* Dreamy violet enhancements */
.dream-title { .dream-title {
font-size: 1.5rem; font-size: 1.5rem;
font-weight: bold; font-weight: bold;
background: var(--accent-gradient); background: var(--accent-gradient);
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
text-shadow: 0 1px 2px var(--text-shadow);
text-rendering: geometricPrecision; text-rendering: geometricPrecision;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.dream-container { .dream-container {
background: linear-gradient(135deg, rgba(166, 77, 255, 0.25), rgba(213, 0, 249, 0.25)); background: linear-gradient(135deg, rgba(166, 77, 255, 0.25), rgba(213, 0, 249, 0.25));
border-radius: 16px; border-radius: 16px;
padding: 1.5rem; padding: 1.5rem;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
box-shadow: 0 10px 30px var(--shadow), inset 0 0 15px rgba(166, 77, 255, 0.2); box-shadow: 0 10px 30px var(--shadow), inset 0 0 15px rgba(166, 77, 255, 0.2);
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
transition: transform 0.3s, box-shadow 0.3s; transition: transform 0.3s, box-shadow 0.3s;
border: none; border: none;
} }
.dream-container:hover { .dream-container:hover {
transform: translateY(-5px); transform: translateY(-5px);
box-shadow: 0 15px 35px var(--shadow), inset 0 0 20px rgba(166, 77, 255, 0.3); box-shadow: 0 15px 35px var(--shadow), inset 0 0 20px rgba(166, 77, 255, 0.3);
} }
/* Scrollbar styling */ /* Scrollbar styling */
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 10px; width: 10px;
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background: var(--bg); background: var(--bg);
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background: var(--accent-soft); background: var(--accent-soft);
border-radius: 5px; border-radius: 5px;
} }
::-webkit-scrollbar-thumb:hover { ::-webkit-scrollbar-thumb:hover {
background: var(--accent); background: var(--accent);
} }
/* Dreamy Card Styling */ /* Dreamy Card Styling */
.dreamy-card { .dreamy-card {
background: linear-gradient(135deg, rgba(166, 77, 255, 0.35), rgba(213, 0, 249, 0.35)); background: linear-gradient(135deg, rgba(166, 77, 255, 0.35), rgba(213, 0, 249, 0.35));
border-radius: 12px; border-radius: 12px;
padding: 1.25em; padding: 1.25em;
color: var(--text); color: var(--text);
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
box-shadow: 0 10px 30px var(--shadow), inset 0 0 15px rgba(166, 77, 255, 0.3); box-shadow: 0 10px 30px var(--shadow), inset 0 0 15px rgba(166, 77, 255, 0.3);
transition: all 0.3s ease; transition: all 0.3s ease;
border: none; border: none;
} }
.dreamy-card:hover { .dreamy-card:hover {
transform: translateY(-5px); transform: translateY(-5px);
box-shadow: 0 15px 35px var(--shadow), inset 0 0 20px rgba(166, 77, 255, 0.3); box-shadow: 0 15px 35px var(--shadow), inset 0 0 20px rgba(166, 77, 255, 0.3);
} }
/* Animations */ /* Animations */
@keyframes dream-float { @keyframes dream-float {
0% { 0% {
transform: translateY(0); transform: translateY(0);
} }
50% { 50% {
transform: translateY(-5px); transform: translateY(-5px);
} }
100% { 100% {
transform: translateY(0); transform: translateY(0);
} }
} }
.floating { .floating {
animation: dream-float 6s ease-in-out infinite; animation: dream-float 6s ease-in-out infinite;
} }
/* Responsive adjustments */ /* Responsive adjustments */
@media (max-width: 768px) { @media (max-width: 768px) {
h1 { h1 {
font-size: 2.5em; font-size: 2.5em;
} }
h2 {
font-size: 1.8em;
}
p {
font-size: 0.95em;
}
.feed-container { h2 {
padding: 1.2em; font-size: 1.8em;
} }
.dream-card { p {
padding: 1em; font-size: 0.95em;
} }
.dream-card .title { .feed-container {
font-size: 1.1em; padding: 1.2em;
} }
.dream-card {
padding: 1em;
}
.dream-card .title {
font-size: 1.1em;
}
} }
@media (max-width: 480px) { @media (max-width: 480px) {
.page { .page {
padding: 0.75rem !important; padding: 0.75rem !important;
} }
.feed-container { .feed-container {
padding: 1em 0.75em; padding: 1em 0.75em;
} }
.dream-card { .dream-card {
padding: 0.9em; padding: 0.9em;
} }
.dream-card .title { .dream-card .title {
font-size: 1em; font-size: 1em;
} }
.dream-card img { .dream-card img {
width: 2.5rem !important; width: 2.5rem !important;
height: 2.5rem !important; height: 2.5rem !important;
} }
} }