Update assets/style.css
This commit is contained in:
parent
15bf074e4c
commit
a2b4a12cd2
1 changed files with 95 additions and 30 deletions
125
assets/style.css
125
assets/style.css
|
|
@ -1,13 +1,31 @@
|
||||||
/* Public Domain - Radioplayer Stylesheet */
|
/* Public Domain - Radioplayer Stylesheet */
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter Tight';
|
||||||
|
src: url('fonts/InterTight-Regular.woff2') format('woff2');
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
font-display: swap; /* Verhindert, dass Text unsichtbar ist, während die Schrift lädt */
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Inter Tight';
|
||||||
|
src: url('fonts/InterTight-Bold.woff2') format('woff2');
|
||||||
|
font-weight: 600;
|
||||||
|
font-style: normal;
|
||||||
|
font-display: swap;
|
||||||
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
/* Farben */
|
/* Farben */
|
||||||
--primary-color: #ff9999;
|
--primary-color: #ff9999;
|
||||||
--primary-color-hover: #ff7777;
|
--primary-color-hover: #ff7777;
|
||||||
|
--success-text: #1a5c1a;
|
||||||
--success-color: #d2f8d2;
|
--success-color: #d2f8d2;
|
||||||
--success-color-hover: #b8e9b8;
|
--success-color-hover: #b8e9b8;
|
||||||
--background-color: #fafafa;
|
--background-color: #fafafa;
|
||||||
--header-background: #FFFFE3;
|
--header-background: #FFFFE3;
|
||||||
|
--header-color: #000;
|
||||||
--modal-background: #fff;
|
--modal-background: #fff;
|
||||||
--modal-background-export: #f9f9f9;
|
--modal-background-export: #f9f9f9;
|
||||||
--item-background: #f1f1f1;
|
--item-background: #f1f1f1;
|
||||||
|
|
@ -19,40 +37,60 @@
|
||||||
--text-color: #333;
|
--text-color: #333;
|
||||||
--text-color-light: #666;
|
--text-color-light: #666;
|
||||||
--text-color-lighter: #ccc;
|
--text-color-lighter: #ccc;
|
||||||
|
--table-header-bg: #f8f8f8;
|
||||||
|
--search-button-bg: #ffffff;
|
||||||
|
--input-bg: #ffffff;
|
||||||
--shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
--shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||||
--modal-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
|
--modal-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
|
||||||
|
|
||||||
/* 1. Schrift definieren */
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Inter Tight';
|
|
||||||
src: url('fonts/InterTight-Regular.woff2') format('woff2');
|
|
||||||
font-weight: 400;
|
|
||||||
font-style: normal;
|
|
||||||
font-display: swap; /* Verhindert, dass Text unsichtbar ist, während die Schrift lädt */
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Inter Tight';
|
|
||||||
src: url('fonts/InterTight-Bold.woff2') format('woff2');
|
|
||||||
font-weight: 600;
|
|
||||||
font-style: normal;
|
|
||||||
font-display: swap;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 2. Schrift anwenden */
|
|
||||||
body {
|
|
||||||
font-family: 'Inter Tight', sans-serif;
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Layout Fix */
|
/* Layout Fix */
|
||||||
--header-height: 80px;
|
--header-height: 80px;
|
||||||
--padding-top: calc(var(--header-height) + 20px);
|
--padding-top: calc(var(--header-height) + 20px);
|
||||||
|
--font-family: 'Inter Tight', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
:root {
|
||||||
|
/* --- DIESE BLEIBEN GLEICH --- */
|
||||||
|
--header-background: #FFFFE3; /* Helles Gelb */
|
||||||
|
--primary-color: #ff9999; /* Rot */
|
||||||
|
--primary-color-hover: #ff7777;
|
||||||
|
--success-color: #d2f8d2; /* Grün */
|
||||||
|
--success-color-hover: #b8e9b8;
|
||||||
|
|
||||||
|
/* --- DER REST WIRD DUNKEL --- */
|
||||||
|
--success-text: #000000;
|
||||||
|
--background-color: #121212; /* Tiefdunkler Hintergrund für die Seite */
|
||||||
|
--header-color: #000;
|
||||||
|
--modal-background: #1e1e1e; /* Dunkle Modals */
|
||||||
|
--modal-background-export: #252525;
|
||||||
|
--item-background: #242424; /* Dunkle Preset-Karten */
|
||||||
|
--item-hover: #2c2c2c;
|
||||||
|
|
||||||
|
--button-background: #333333;
|
||||||
|
--button-hover: #444444;
|
||||||
|
--button-color: #eeeeee;
|
||||||
|
|
||||||
|
--text-color: #e0e0e0; /* Heller Text auf dunklem Grund */
|
||||||
|
--text-color-light: #aaaaaa;
|
||||||
|
--text-color-lighter: #444444;
|
||||||
|
--border-color: #333333;
|
||||||
|
|
||||||
|
--table-header-bg: var(--item-background);
|
||||||
|
--search-button-bg: var(--modal-background);
|
||||||
|
--input-bg: #2a2a2a;
|
||||||
|
|
||||||
|
--shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
|
||||||
|
--modal-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- BASICS --- */
|
/* --- BASICS --- */
|
||||||
body {
|
body {
|
||||||
font-family: var(--font-family);
|
font-family: var(--font-family);
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
|
@ -68,6 +106,7 @@ body {
|
||||||
/* --- HEADER & NAVIGATION --- */
|
/* --- HEADER & NAVIGATION --- */
|
||||||
.header {
|
.header {
|
||||||
background-color: var(--header-background);
|
background-color: var(--header-background);
|
||||||
|
color: var(--header-color);
|
||||||
height: auto;
|
height: auto;
|
||||||
padding: 10px 15px 10px 15px;
|
padding: 10px 15px 10px 15px;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|
@ -173,7 +212,7 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
#current-station-name i {
|
#current-station-name i {
|
||||||
color: var(--text-color-light);
|
color: var(--header-color);
|
||||||
margin-right: 3px;
|
margin-right: 3px;
|
||||||
margin-left: 0px;
|
margin-left: 0px;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
|
|
@ -247,7 +286,9 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-link {
|
.search-link {
|
||||||
background-color: #ffffff !important;
|
background-color: var(--search-button-bg) !important; /* Nutzt jetzt die Variable */
|
||||||
|
color: var(--text-color);
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-container button:hover,
|
.button-container button:hover,
|
||||||
|
|
@ -257,14 +298,24 @@ body {
|
||||||
background-color: var(--button-hover) !important;
|
background-color: var(--button-hover) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#sleep-timer-modal .button-container {
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sleep-timer-modal .button-container:last-of-type {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* Spezial-Buttons */
|
/* Spezial-Buttons */
|
||||||
.btn-ok {
|
.btn-ok {
|
||||||
background-color: var(--success-color) !important;
|
background-color: var(--success-color) !important;
|
||||||
|
color: var(--success-text) !important;
|
||||||
font-weight: bold !important;
|
font-weight: bold !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-ok:hover {
|
.btn-ok.btn-ok:hover {
|
||||||
background-color: var(--success-color-hover) !important;
|
background-color: var(--success-color-hover) !important;
|
||||||
|
color: var(--success-text) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.delete-btn {
|
.delete-btn {
|
||||||
|
|
@ -298,9 +349,20 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
#preset-table {
|
#preset-table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
margin: 10px 0;
|
margin: 15px 0;
|
||||||
|
table-layout: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
#preset-table th:nth-child(2),
|
||||||
|
#preset-table td:nth-child(2) {
|
||||||
|
width: 40%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#preset-table th:nth-child(3),
|
||||||
|
#preset-table td:nth-child(3) {
|
||||||
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#preset-table th, #preset-table td {
|
#preset-table th, #preset-table td {
|
||||||
|
|
@ -309,10 +371,12 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
#preset-table input[type="text"] {
|
#preset-table input[type="text"] {
|
||||||
|
background-color: var(--input-bg);
|
||||||
|
color: var(--text-color);
|
||||||
|
border: 1px solid var(--border-color);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
border: 1px solid #ccc;
|
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
@ -322,7 +386,8 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
#preset-table th {
|
#preset-table th {
|
||||||
background-color: #f8f8f8;
|
background-color: var(--table-header-bg);
|
||||||
|
color: var(--text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.drag-handle {
|
.drag-handle {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue