Skip to content

Commit 8d7c15d

Browse files
committed
wp site home dark page
1 parent 7fa2521 commit 8d7c15d

File tree

3 files changed

+124
-66
lines changed

3 files changed

+124
-66
lines changed

.idea/workspace.xml

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

websiteFunctions/templates/websiteFunctions/launchChild.html

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
<style>
1313
/* Ultra-Modern CyberPanel Design System */
14+
/* :root block commented out to allow dark mode variables from base template
1415
:root {
1516
--primary-color: #6366f1;
1617
--primary-hover: #5558e3;
@@ -49,14 +50,15 @@
4950
5051
--transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
5152
}
53+
*/
5254

5355
/* Container Styling */
5456
.container {
5557
max-width: 1200px;
5658
margin: 0 auto;
5759
padding: 20px;
5860
min-height: 100vh;
59-
background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
61+
background: linear-gradient(180deg, var(--bg-secondary, #f8fafc) 0%, var(--border-light, #e2e8f0) 100%);
6062
}
6163

6264
/* Page Title Section */
@@ -110,7 +112,7 @@
110112

111113
/* Main Panel */
112114
.panel {
113-
background: var(--bg-card);
115+
background: var(--bg-primary, #ffffff);
114116
border-radius: var(--radius-xl);
115117
box-shadow: var(--shadow-lg);
116118
border: 1px solid var(--border-color);
@@ -129,7 +131,7 @@
129131

130132
/* Content Box */
131133
.content-box {
132-
background: var(--bg-card);
134+
background: var(--bg-primary, #ffffff);
133135
border-radius: var(--radius-xl);
134136
box-shadow: var(--shadow-lg);
135137
border: 1px solid var(--border-color);
@@ -138,7 +140,7 @@
138140

139141
/* Content Box Header */
140142
.content-box-header {
141-
background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-light) 100%);
143+
background: linear-gradient(135deg, var(--primary-light, #eef2ff) 0%, var(--bg-secondary, #f8fafc) 100%);
142144
padding: 25px 30px;
143145
margin: 0;
144146
font-size: 20px;
@@ -211,7 +213,7 @@
211213
}
212214

213215
.btn-preview {
214-
background: linear-gradient(135deg, var(--accent-color) 0%, #db2777 100%);
216+
background: linear-gradient(135deg, var(--accent-color, #ec4899) 0%, #db2777 100%);
215217
color: white;
216218
box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
217219
}
@@ -223,12 +225,12 @@
223225
}
224226

225227
.btn-git {
226-
background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
228+
background: linear-gradient(135deg, var(--warning-color, #f59e0b) 0%, #dc2626 100%);
227229
color: white;
228230
}
229231

230232
.btn-sync {
231-
background: linear-gradient(135deg, var(--info-color) 0%, #2563eb 100%);
233+
background: linear-gradient(135deg, var(--info-color, #3b82f6) 0%, #2563eb 100%);}
232234
color: white;
233235
}
234236

@@ -240,7 +242,7 @@
240242
/* Table Styling */
241243
.table {
242244
margin: 0;
243-
background: white;
245+
background: var(--bg-primary, white);
244246
border-radius: var(--radius-lg);
245247
overflow: hidden;
246248
box-shadow: var(--shadow-sm);
@@ -270,7 +272,7 @@
270272
}
271273

272274
.table tbody tr:hover {
273-
background: var(--bg-hover);
275+
background: var(--bg-hover, #f1f5f9);
274276
box-shadow: 0 2px 4px rgba(0,0,0,0.04);
275277
}
276278

@@ -291,7 +293,7 @@
291293
position: relative;
292294
width: 100%;
293295
height: 30px;
294-
background: var(--border-color);
296+
background: var(--border-light, #e2e8f0);
295297
border-radius: var(--radius-full);
296298
overflow: hidden;
297299
margin-bottom: 20px;
@@ -346,14 +348,14 @@
346348

347349
.alert-success {
348350
background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
349-
color: #065f46;
350-
border: 1px solid #6ee7b7;
351+
color: var(--success-text, #065f46);
352+
border: 1px solid var(--success-border, #6ee7b7);
351353
}
352354

353355
.alert-danger {
354356
background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
355-
color: #991b1b;
356-
border: 1px solid #fca5a5;
357+
color: var(--danger-text, #991b1b);
358+
border: 1px solid var(--danger-border, #fca5a5);
357359
}
358360

359361
/* Loading Animation */
@@ -375,7 +377,7 @@
375377
align-items: center;
376378
gap: 15px;
377379
padding: 20px;
378-
background: var(--bg-light);
380+
background: var(--bg-secondary, #f8fafc);
379381
border-radius: var(--radius-lg);
380382
transition: var(--transition-base);
381383
text-decoration: none;
@@ -426,7 +428,7 @@
426428
padding: 12px 16px;
427429
font-size: 15px;
428430
transition: var(--transition-base);
429-
background: white;
431+
background: var(--bg-primary, white);
430432
}
431433

432434
.form-control:focus {
@@ -443,7 +445,7 @@
443445

444446
/* Modal and Form Modal Styling */
445447
.form-horizontal.bordered-row {
446-
background: white;
448+
background: var(--bg-primary, white);
447449
padding: 30px;
448450
border-radius: var(--radius-xl);
449451
box-shadow: var(--shadow-lg);
@@ -461,26 +463,26 @@
461463

462464
.glyph-icon.icon-close:hover {
463465
transform: scale(1.2);
464-
color: #dc2626;
466+
color: var(--danger-color, #dc2626);
465467
}
466468

467469
/* Rewrite Rules and Config Specific Styling */
468470
textarea[ng-model="rewriteRules"],
469471
textarea[ng-model="configData"] {
470-
background: #f8fafc;
471-
border: 2px solid #e2e8f0;
472+
background: var(--bg-secondary, #f8fafc);
473+
border: 2px solid var(--border-light, #e2e8f0);
472474
border-radius: var(--radius-lg);
473475
padding: 16px;
474476
font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
475477
font-size: 14px;
476478
line-height: 1.6;
477-
color: #1e293b;
479+
color: var(--text-primary, #1e293b);
478480
min-height: 300px;
479481
}
480482

481483
textarea[ng-model="rewriteRules"]:focus,
482484
textarea[ng-model="configData"]:focus {
483-
background: white;
485+
background: var(--bg-primary, white);
484486
border-color: var(--primary-color);
485487
box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
486488
}

0 commit comments

Comments
 (0)