wp site home dark page

This commit is contained in:
usmannasir 2025-08-05 13:59:26 +05:00
parent 7fa25212dd
commit 8d7c15d49b
3 changed files with 124 additions and 66 deletions

View File

@ -4,7 +4,11 @@
<option name="autoReloadType" value="SELECTIVE" /> <option name="autoReloadType" value="SELECTIVE" />
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="5251c5c9-f2a1-41f2-bc76-10b517091df1" name="Changes" comment="" /> <list default="true" id="5251c5c9-f2a1-41f2-bc76-10b517091df1" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/websiteFunctions/templates/websiteFunctions/launchChild.html" beforeDir="false" afterPath="$PROJECT_DIR$/websiteFunctions/templates/websiteFunctions/launchChild.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/websiteFunctions/templates/websiteFunctions/listChildDomains.html" beforeDir="false" afterPath="$PROJECT_DIR$/websiteFunctions/templates/websiteFunctions/listChildDomains.html" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />

View File

@ -11,6 +11,7 @@
<style> <style>
/* Ultra-Modern CyberPanel Design System */ /* Ultra-Modern CyberPanel Design System */
/* :root block commented out to allow dark mode variables from base template
:root { :root {
--primary-color: #6366f1; --primary-color: #6366f1;
--primary-hover: #5558e3; --primary-hover: #5558e3;
@ -49,6 +50,7 @@
--transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
} }
*/
/* Container Styling */ /* Container Styling */
.container { .container {
@ -56,7 +58,7 @@
margin: 0 auto; margin: 0 auto;
padding: 20px; padding: 20px;
min-height: 100vh; min-height: 100vh;
background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%); background: linear-gradient(180deg, var(--bg-secondary, #f8fafc) 0%, var(--border-light, #e2e8f0) 100%);
} }
/* Page Title Section */ /* Page Title Section */
@ -110,7 +112,7 @@
/* Main Panel */ /* Main Panel */
.panel { .panel {
background: var(--bg-card); background: var(--bg-primary, #ffffff);
border-radius: var(--radius-xl); border-radius: var(--radius-xl);
box-shadow: var(--shadow-lg); box-shadow: var(--shadow-lg);
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
@ -129,7 +131,7 @@
/* Content Box */ /* Content Box */
.content-box { .content-box {
background: var(--bg-card); background: var(--bg-primary, #ffffff);
border-radius: var(--radius-xl); border-radius: var(--radius-xl);
box-shadow: var(--shadow-lg); box-shadow: var(--shadow-lg);
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
@ -138,7 +140,7 @@
/* Content Box Header */ /* Content Box Header */
.content-box-header { .content-box-header {
background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-light) 100%); background: linear-gradient(135deg, var(--primary-light, #eef2ff) 0%, var(--bg-secondary, #f8fafc) 100%);
padding: 25px 30px; padding: 25px 30px;
margin: 0; margin: 0;
font-size: 20px; font-size: 20px;
@ -211,7 +213,7 @@
} }
.btn-preview { .btn-preview {
background: linear-gradient(135deg, var(--accent-color) 0%, #db2777 100%); background: linear-gradient(135deg, var(--accent-color, #ec4899) 0%, #db2777 100%);
color: white; color: white;
box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3); box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
} }
@ -223,12 +225,12 @@
} }
.btn-git { .btn-git {
background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%); background: linear-gradient(135deg, var(--warning-color, #f59e0b) 0%, #dc2626 100%);
color: white; color: white;
} }
.btn-sync { .btn-sync {
background: linear-gradient(135deg, var(--info-color) 0%, #2563eb 100%); background: linear-gradient(135deg, var(--info-color, #3b82f6) 0%, #2563eb 100%);}
color: white; color: white;
} }
@ -240,7 +242,7 @@
/* Table Styling */ /* Table Styling */
.table { .table {
margin: 0; margin: 0;
background: white; background: var(--bg-primary, white);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
overflow: hidden; overflow: hidden;
box-shadow: var(--shadow-sm); box-shadow: var(--shadow-sm);
@ -270,7 +272,7 @@
} }
.table tbody tr:hover { .table tbody tr:hover {
background: var(--bg-hover); background: var(--bg-hover, #f1f5f9);
box-shadow: 0 2px 4px rgba(0,0,0,0.04); box-shadow: 0 2px 4px rgba(0,0,0,0.04);
} }
@ -291,7 +293,7 @@
position: relative; position: relative;
width: 100%; width: 100%;
height: 30px; height: 30px;
background: var(--border-color); background: var(--border-light, #e2e8f0);
border-radius: var(--radius-full); border-radius: var(--radius-full);
overflow: hidden; overflow: hidden;
margin-bottom: 20px; margin-bottom: 20px;
@ -346,14 +348,14 @@
.alert-success { .alert-success {
background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
color: #065f46; color: var(--success-text, #065f46);
border: 1px solid #6ee7b7; border: 1px solid var(--success-border, #6ee7b7);
} }
.alert-danger { .alert-danger {
background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
color: #991b1b; color: var(--danger-text, #991b1b);
border: 1px solid #fca5a5; border: 1px solid var(--danger-border, #fca5a5);
} }
/* Loading Animation */ /* Loading Animation */
@ -375,7 +377,7 @@
align-items: center; align-items: center;
gap: 15px; gap: 15px;
padding: 20px; padding: 20px;
background: var(--bg-light); background: var(--bg-secondary, #f8fafc);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
transition: var(--transition-base); transition: var(--transition-base);
text-decoration: none; text-decoration: none;
@ -426,7 +428,7 @@
padding: 12px 16px; padding: 12px 16px;
font-size: 15px; font-size: 15px;
transition: var(--transition-base); transition: var(--transition-base);
background: white; background: var(--bg-primary, white);
} }
.form-control:focus { .form-control:focus {
@ -443,7 +445,7 @@
/* Modal and Form Modal Styling */ /* Modal and Form Modal Styling */
.form-horizontal.bordered-row { .form-horizontal.bordered-row {
background: white; background: var(--bg-primary, white);
padding: 30px; padding: 30px;
border-radius: var(--radius-xl); border-radius: var(--radius-xl);
box-shadow: var(--shadow-lg); box-shadow: var(--shadow-lg);
@ -461,26 +463,26 @@
.glyph-icon.icon-close:hover { .glyph-icon.icon-close:hover {
transform: scale(1.2); transform: scale(1.2);
color: #dc2626; color: var(--danger-color, #dc2626);
} }
/* Rewrite Rules and Config Specific Styling */ /* Rewrite Rules and Config Specific Styling */
textarea[ng-model="rewriteRules"], textarea[ng-model="rewriteRules"],
textarea[ng-model="configData"] { textarea[ng-model="configData"] {
background: #f8fafc; background: var(--bg-secondary, #f8fafc);
border: 2px solid #e2e8f0; border: 2px solid var(--border-light, #e2e8f0);
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
padding: 16px; padding: 16px;
font-family: 'Monaco', 'Consolas', 'Courier New', monospace; font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
font-size: 14px; font-size: 14px;
line-height: 1.6; line-height: 1.6;
color: #1e293b; color: var(--text-primary, #1e293b);
min-height: 300px; min-height: 300px;
} }
textarea[ng-model="rewriteRules"]:focus, textarea[ng-model="rewriteRules"]:focus,
textarea[ng-model="configData"]:focus { textarea[ng-model="configData"]:focus {
background: white; background: var(--bg-primary, white);
border-color: var(--primary-color); border-color: var(--primary-color);
box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
} }

View File

@ -31,22 +31,22 @@
.page-title { .page-title {
font-size: 28px; font-size: 28px;
font-weight: 700; font-weight: 700;
color: #2f3640; color: var(--text-primary, #2f3640);
margin-bottom: 8px; margin-bottom: 8px;
} }
.page-subtitle { .page-subtitle {
font-size: 14px; font-size: 14px;
color: #8893a7; color: var(--text-secondary, #8893a7);
} }
/* Search and Filter Section */ /* Search and Filter Section */
.search-section { .search-section {
background: white; background: var(--bg-primary, white);
border-radius: 12px; border-radius: 12px;
padding: 20px; padding: 20px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08); box-shadow: var(--shadow-md, 0 2px 8px rgba(0,0,0,0.08));
border: 1px solid #e8e9ff; border: 1px solid var(--border-primary, #e8e9ff);
margin-bottom: 25px; margin-bottom: 25px;
} }
@ -63,14 +63,33 @@
.form-control { .form-control {
width: 100%; width: 100%;
padding: 10px 14px; padding: 10px 14px;
border: 1px solid #e8e9ff; border: 1px solid var(--border-primary, #e8e9ff);
border-radius: 8px; border-radius: 8px;
font-size: 14px; font-size: 14px;
color: #2f3640; color: var(--text-primary, #2f3640);
background: white; background: var(--bg-primary, white);
transition: all 0.2s ease; transition: all 0.2s ease;
} }
/* Select dropdown Windows compatibility */
select.form-control {
background-color: var(--bg-primary, white) !important;
color: var(--text-primary, #2f3640) !important;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f3640' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
background-repeat: no-repeat;
background-position: right 12px center;
background-size: 20px;
padding-right: 40px;
}
select.form-control option {
background-color: var(--bg-primary, white);
color: var(--text-primary, #2f3640);
}
.form-control:hover { .form-control:hover {
border-color: #5b5fcf; border-color: #5b5fcf;
} }
@ -84,28 +103,28 @@
.form-select { .form-select {
width: 120px; width: 120px;
padding: 10px 14px; padding: 10px 14px;
border: 1px solid #e8e9ff; border: 1px solid var(--border-primary, #e8e9ff);
border-radius: 8px; border-radius: 8px;
font-size: 14px; font-size: 14px;
color: #2f3640; color: var(--text-primary, #2f3640);
background: white; background: var(--bg-primary, white);
transition: all 0.2s ease; transition: all 0.2s ease;
cursor: pointer; cursor: pointer;
} }
/* Domain Cards */ /* Domain Cards */
.domain-card { .domain-card {
background: white; background: var(--bg-primary, white);
border-radius: 12px; border-radius: 12px;
padding: 20px; padding: 20px;
box-shadow: 0 2px 8px rgba(0,0,0,0.08); box-shadow: var(--shadow-md, 0 2px 8px rgba(0,0,0,0.08));
border: 1px solid #e8e9ff; border: 1px solid var(--border-primary, #e8e9ff);
margin-bottom: 20px; margin-bottom: 20px;
transition: all 0.3s ease; transition: all 0.3s ease;
} }
.domain-card:hover { .domain-card:hover {
box-shadow: 0 4px 16px rgba(0,0,0,0.12); box-shadow: var(--shadow-lg, 0 4px 16px rgba(0,0,0,0.12));
border-color: #5b5fcf; border-color: #5b5fcf;
} }
@ -115,7 +134,7 @@
align-items: center; align-items: center;
margin-bottom: 20px; margin-bottom: 20px;
padding-bottom: 20px; padding-bottom: 20px;
border-bottom: 1px solid #e8e9ff; border-bottom: 1px solid var(--border-primary, #e8e9ff);
} }
.domain-info { .domain-info {
@ -125,7 +144,7 @@
.domain-name { .domain-name {
font-size: 20px; font-size: 20px;
font-weight: 700; font-weight: 700;
color: #2f3640; color: var(--text-primary, #2f3640);
text-decoration: none; text-decoration: none;
display: inline-block; display: inline-block;
margin-bottom: 5px; margin-bottom: 5px;
@ -138,7 +157,7 @@
.master-domain { .master-domain {
font-size: 13px; font-size: 13px;
color: #8893a7; color: var(--text-secondary, #8893a7);
margin-top: 5px; margin-top: 5px;
} }
@ -189,7 +208,7 @@
.detail-icon { .detail-icon {
width: 36px; width: 36px;
height: 36px; height: 36px;
background: #f8f9ff; background: var(--bg-secondary, #f8f9ff);
border-radius: 8px; border-radius: 8px;
display: flex; display: flex;
align-items: center; align-items: center;
@ -205,7 +224,7 @@
.detail-label { .detail-label {
font-size: 11px; font-size: 11px;
color: #8893a7; color: var(--text-secondary, #8893a7);
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.5px; letter-spacing: 0.5px;
margin-bottom: 2px; margin-bottom: 2px;
@ -213,7 +232,7 @@
.detail-value { .detail-value {
font-size: 14px; font-size: 14px;
color: #2f3640; color: var(--text-primary, #2f3640);
font-weight: 600; font-weight: 600;
} }
@ -233,7 +252,7 @@
gap: 12px; gap: 12px;
margin-top: 20px; margin-top: 20px;
padding-top: 20px; padding-top: 20px;
border-top: 1px solid #e8e9ff; border-top: 1px solid var(--border-primary, #e8e9ff);
} }
.action-btn { .action-btn {
@ -248,7 +267,7 @@
transition: all 0.2s ease; transition: all 0.2s ease;
cursor: pointer; cursor: pointer;
border: none; border: none;
background: #f8f9ff; background: var(--bg-secondary, #f8f9ff);
color: #5b5fcf; color: #5b5fcf;
} }
@ -270,7 +289,7 @@
} }
.action-btn.convert:hover { .action-btn.convert:hover {
background: #fff3e0; background: var(--bg-warning-light, #fff3e0);
} }
/* Pagination */ /* Pagination */
@ -283,41 +302,59 @@
.pagination-select { .pagination-select {
width: 120px; width: 120px;
padding: 10px 14px; padding: 10px 14px;
border: 1px solid #e8e9ff; border: 1px solid var(--border-primary, #e8e9ff);
border-radius: 8px; border-radius: 8px;
font-size: 14px; font-size: 14px;
color: #2f3640; color: var(--text-primary, #2f3640);
background: white; background: var(--bg-primary, white);
cursor: pointer; cursor: pointer;
background-color: var(--bg-primary, white) !important;
}
select.pagination-select option {
background-color: var(--bg-primary, white);
color: var(--text-primary, #2f3640);
} }
/* Modal Styles */ /* Modal Styles */
.modal-content { .modal-content {
background: var(--bg-primary, white);
border-radius: 12px; border-radius: 12px;
border: none; border: none;
box-shadow: 0 8px 32px rgba(0,0,0,0.1); box-shadow: 0 8px 32px rgba(0,0,0,0.1);
} }
.modal-header { .modal-header {
background: #f8f9ff; background: var(--bg-secondary, #f8f9ff);
border-bottom: 1px solid #e8e9ff; border-bottom: 1px solid var(--border-primary, #e8e9ff);
border-radius: 12px 12px 0 0; border-radius: 12px 12px 0 0;
padding: 20px 25px; padding: 20px 25px;
} }
.modal-header .close {
color: var(--text-primary, #2f3640);
opacity: 0.8;
}
.modal-header .close:hover {
color: var(--text-primary, #2f3640);
opacity: 1;
}
.modal-title { .modal-title {
font-size: 18px; font-size: 18px;
font-weight: 700; font-weight: 700;
color: #2f3640; color: var(--text-primary, #2f3640);
} }
.modal-body { .modal-body {
padding: 25px; padding: 25px;
background: var(--bg-primary, white);
} }
.modal-footer { .modal-footer {
background: #f8f9ff; background: var(--bg-secondary, #f8f9ff);
border-top: 1px solid #e8e9ff; border-top: 1px solid var(--border-primary, #e8e9ff);
border-radius: 0 0 12px 12px; border-radius: 0 0 12px 12px;
padding: 15px 25px; padding: 15px 25px;
display: flex; display: flex;
@ -363,9 +400,9 @@
} }
.btn-secondary { .btn-secondary {
background: #f8f9ff; background: var(--bg-secondary, #f8f9ff);
color: #5b5fcf; color: #5b5fcf;
border: 1px solid #e8e9ff; border: 1px solid var(--border-primary, #e8e9ff);
} }
.btn-secondary:hover { .btn-secondary:hover {
@ -382,7 +419,7 @@
display: block; display: block;
font-size: 13px; font-size: 13px;
font-weight: 600; font-weight: 600;
color: #64748b; color: var(--text-secondary, #64748b);
margin-bottom: 8px; margin-bottom: 8px;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.5px; letter-spacing: 0.5px;
@ -394,15 +431,15 @@
align-items: center; align-items: center;
gap: 10px; gap: 10px;
padding: 12px 16px; padding: 12px 16px;
background: #f8f9ff; background: var(--bg-secondary, #f8f9ff);
border: 1px solid #e8e9ff; border: 1px solid var(--border-primary, #e8e9ff);
border-radius: 8px; border-radius: 8px;
cursor: pointer; cursor: pointer;
} }
.checkbox-wrapper:hover { .checkbox-wrapper:hover {
border-color: #5b5fcf; border-color: #5b5fcf;
background: #f0f1ff; background: var(--bg-hover, #f0f1ff);
} }
.checkbox-wrapper input[type="checkbox"] { .checkbox-wrapper input[type="checkbox"] {
@ -415,7 +452,7 @@
.checkbox-label { .checkbox-label {
font-size: 14px; font-size: 14px;
color: #2f3640; color: var(--text-primary, #2f3640);
font-weight: 500; font-weight: 500;
cursor: pointer; cursor: pointer;
user-select: none; user-select: none;
@ -423,7 +460,7 @@
/* Progress styles */ /* Progress styles */
.progress-section { .progress-section {
background: #f8f9ff; background: var(--bg-secondary, #f8f9ff);
border-radius: 10px; border-radius: 10px;
padding: 25px; padding: 25px;
margin-top: 20px; margin-top: 20px;
@ -432,7 +469,7 @@
.progress-status { .progress-status {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: #2f3640; color: var(--text-primary, #2f3640);
text-align: center; text-align: center;
margin-bottom: 20px; margin-bottom: 20px;
} }
@ -457,7 +494,7 @@
display: inline-block; display: inline-block;
width: 16px; width: 16px;
height: 16px; height: 16px;
border: 2px solid #f3f3f3; border: 2px solid var(--border-light, #f3f3f3);
border-top: 2px solid #5b5fcf; border-top: 2px solid #5b5fcf;
border-radius: 50%; border-radius: 50%;
animation: spin 1s linear infinite; animation: spin 1s linear infinite;
@ -492,6 +529,21 @@
} }
/* Responsive */ /* Responsive */
/* Ensure modal form controls have proper backgrounds */
.modal-body .form-control,
.modal-body select {
background-color: var(--bg-primary, white) !important;
color: var(--text-primary, #2f3640) !important;
}
/* Additional fixes for select dropdowns in dark mode */
select.form-select option,
select.pagination-select option,
.modal-body select option {
background-color: var(--bg-primary, white) !important;
color: var(--text-primary, #2f3640) !important;
}
@media (max-width: 768px) { @media (max-width: 768px) {
.domain-header { .domain-header {
flex-direction: column; flex-direction: column;
@ -678,7 +730,7 @@
{% trans "Delete Document Root" %} {% trans "Delete Document Root" %}
</label> </label>
</div> </div>
<p style="margin-top: 10px; font-size: 13px; color: #8893a7;"> <p style="margin-top: 10px; font-size: 13px; color: var(--text-secondary, #8893a7);">
{% trans "Warning: This will permanently delete all files in the document root directory." %} {% trans "Warning: This will permanently delete all files in the document root directory." %}
</p> </p>
</div> </div>