Redesigns main elements, menu, and CSS
parent
b9d883fe41
commit
0f5f7a03e0
|
|
@ -1,82 +1,82 @@
|
||||||
|
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
|
|
||||||
<!-- Menu -->
|
<!-- Modern Menu -->
|
||||||
<div class="menu-container">
|
<div class="menu-container">
|
||||||
<ul class="menu-left">
|
<div class="modern-header-content">
|
||||||
<div class="container">
|
<div class="logo-section">
|
||||||
<div class="row">
|
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>" class="modern-logo-link">
|
||||||
<a href="<?= htmlspecialchars($app_root) ?>?platform=<?= htmlspecialchars($platform_id) ?>" class="logo-link">
|
<div class="modern-logo">
|
||||||
<div class="col-4">
|
<img src="<?= htmlspecialchars($app_root) ?>static/jilo-logo.png" alt="<?= htmlspecialchars($config['site_name']); ?>"/>
|
||||||
<img class="logo" src="<?= htmlspecialchars($app_root) ?>static/jilo-logo.png" alt="JILO"/>
|
</div>
|
||||||
|
<div class="brand-info">
|
||||||
|
<h1 class="brand-name"><?= htmlspecialchars($config['site_name']); ?></h1>
|
||||||
|
<?php if (!empty($config['site_slogan'])): ?>
|
||||||
|
<div class="brand-slogan"><?= htmlspecialchars($config['site_slogan']); ?></div>
|
||||||
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<li class="font-weight-light text-uppercase" style="font-size: 0.5em; color: whitesmoke; margin-right: 70px; align-content: center;">
|
|
||||||
version <?= htmlspecialchars($config['version'] ?? '1.0.0') ?>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<?php if (Session::isValidSession()) { ?>
|
<?php if (Session::isValidSession()) { ?>
|
||||||
|
|
||||||
<?php foreach ($platformsAll as $platform) {
|
<?php foreach ($platformsAll as $platform) {
|
||||||
$platform_switch_url = switchPlatform($platform['id']);
|
$platform_switch_url = switchPlatform($platform['id']);
|
||||||
?>
|
?>
|
||||||
<li style="margin-right: 3px;">
|
<div>
|
||||||
<?php if ((isset($_REQUEST['platform']) || empty($_SERVER['QUERY_STRING'])) && $platform['id'] == $platform_id) { ?>
|
<?php if ((isset($_REQUEST['platform']) || empty($_SERVER['QUERY_STRING'])) && $platform['id'] == $platform_id) { ?>
|
||||||
<span style="background-color: #fff; border: 1px solid #111; color: #111; border-bottom-color: #fff; padding-bottom: 12px;">
|
Jitsi platforms:
|
||||||
|
<button class="btn modern-header-btn" type="button" aria-expanded="false">
|
||||||
<?= htmlspecialchars($platform['name']) ?>
|
<?= htmlspecialchars($platform['name']) ?>
|
||||||
</span>
|
</button>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<a href="<?= htmlspecialchars($platform_switch_url) ?>">
|
<a href="<?= htmlspecialchars($platform_switch_url) ?>">
|
||||||
<?= htmlspecialchars($platform['name']) ?>
|
<?= htmlspecialchars($platform['name']) ?>
|
||||||
</a>
|
</a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</li>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</ul>
|
|
||||||
|
|
||||||
<ul class="menu-right">
|
<div class="header-actions">
|
||||||
<?php if (Session::isValidSession()) { ?>
|
<?php if (Session::isValidSession()) { ?>
|
||||||
<li class="dropdown">
|
<div class="dropdown">
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
|
<button class="btn modern-header-btn dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="false">
|
||||||
<i class="fas fa-user"></i>
|
<i class="fas fa-user-circle me-2"></i><?= htmlspecialchars($currentUser) ?>
|
||||||
</a>
|
</button>
|
||||||
<div class="dropdown-menu dropdown-menu-right">
|
<div class="dropdown-menu dropdown-menu-right modern-dropdown">
|
||||||
<h6 class="dropdown-header"><?= htmlspecialchars($currentUser) ?></h6>
|
<h6 class="dropdown-header modern-dropdown-header"><?= htmlspecialchars($currentUser) ?></h6>
|
||||||
<a class="dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=theme">
|
<a class="dropdown-item modern-dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=theme">
|
||||||
<i class="fas fa-paint-brush"></i>Change theme
|
<i class="fas fa-paint-brush"></i>Change theme
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
<a class="dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=profile">
|
<a class="dropdown-item modern-dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=profile">
|
||||||
<i class="fas fa-id-card"></i>Profile details
|
<i class="fas fa-id-card"></i>Profile details
|
||||||
</a>
|
</a>
|
||||||
<a class="dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=credentials">
|
<a class="dropdown-item modern-dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=credentials">
|
||||||
<i class="fas fa-shield-alt"></i>Login credentials
|
<i class="fas fa-shield-alt"></i>Login credentials
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-divider"></div>
|
<div class="dropdown-divider"></div>
|
||||||
<a class="dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=logout">
|
<a class="dropdown-item modern-dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=logout">
|
||||||
<i class="fas fa-sign-out-alt"></i>Logout
|
<i class="fas fa-sign-out-alt"></i>Logout
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</div>
|
||||||
<li class="dropdown">
|
<div class="dropdown">
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
|
<button class="btn modern-header-btn dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="false">
|
||||||
<i class="fas fa-cog"></i>
|
<i class="fas fa-cog"></i>
|
||||||
</a>
|
</button>
|
||||||
<div class="dropdown-menu dropdown-menu-right">
|
<div class="dropdown-menu dropdown-menu-right modern-dropdown">
|
||||||
<h6 class="dropdown-header">system</h6>
|
<h6 class="dropdown-header modern-dropdown-header">settings</h6>
|
||||||
<?php if ($userObject->hasRight($userId, 'superuser')) {?>
|
<?php if ($userObject->hasRight($userId, 'superuser')) {?>
|
||||||
<a class="dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=admin-tools">
|
<a class="dropdown-item modern-dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=admin-tools">
|
||||||
<i class="fas fa-toolbox"></i>Admin tools
|
<i class="fas fa-toolbox"></i>Admin tools
|
||||||
</a>
|
</a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if ($userObject->hasRight($userId, 'superuser') ||
|
<?php if ($userObject->hasRight($userId, 'superuser') ||
|
||||||
$userObject->hasRight($userId, 'view config file')) {?>
|
$userObject->hasRight($userId, 'view config file')) {?>
|
||||||
<a class="dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=config">
|
<a class="dropdown-item modern-dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=config">
|
||||||
<i class="fas fa-wrench"></i>Configuration
|
<i class="fas fa-wrench"></i>Configuration
|
||||||
</a>
|
</a>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
@ -86,31 +86,32 @@
|
||||||
$userObject->hasRight($userId, 'edit whitelist') ||
|
$userObject->hasRight($userId, 'edit whitelist') ||
|
||||||
$userObject->hasRight($userId, 'edit blacklist') ||
|
$userObject->hasRight($userId, 'edit blacklist') ||
|
||||||
$userObject->hasRight($userId, 'edit ratelimiting')) { ?>
|
$userObject->hasRight($userId, 'edit ratelimiting')) { ?>
|
||||||
<a class="dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=security">
|
<a class="dropdown-item modern-dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=security">
|
||||||
<i class="fas fa-shield-alt"></i>Security
|
<i class="fas fa-shield-alt"></i>Security
|
||||||
</a>
|
</a>
|
||||||
<?php } ?>
|
|
||||||
<?php if ($userObject->hasRight($userId, 'view app logs')) {?>
|
|
||||||
<?php do_hook('main_menu', ['app_root' => $app_root, 'section' => 'main', 'position' => 100]); ?>
|
<?php do_hook('main_menu', ['app_root' => $app_root, 'section' => 'main', 'position' => 100]); ?>
|
||||||
<?php } ?>
|
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</div>
|
||||||
|
<?php } ?>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<li><a href="<?= htmlspecialchars($app_root) ?>?page=login">login</a></li>
|
<button class="btn modern-header-btn" onclick="window.location.href='<?= htmlspecialchars($app_root) ?>?page=login'">
|
||||||
|
<i class="fas fa-sign-in-alt me-2"></i>Login
|
||||||
|
</button>
|
||||||
<?php do_hook('main_public_menu', ['app_root' => $app_root, 'section' => 'main', 'position' => 100]); ?>
|
<?php do_hook('main_public_menu', ['app_root' => $app_root, 'section' => 'main', 'position' => 100]); ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<li class="dropdown">
|
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
|
<div class="dropdown">
|
||||||
|
<button class="btn modern-header-btn dropdown-toggle" type="button" data-toggle="dropdown" aria-expanded="false">
|
||||||
<i class="fas fa-info-circle"></i>
|
<i class="fas fa-info-circle"></i>
|
||||||
</a>
|
</button>
|
||||||
<div class="dropdown-menu dropdown-menu-right">
|
<div class="dropdown-menu dropdown-menu-right modern-dropdown">
|
||||||
<h6 class="dropdown-header">resources</h6>
|
<h6 class="dropdown-header modern-dropdown-header">resources</h6>
|
||||||
<a class="dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=help">
|
<a class="dropdown-item modern-dropdown-item" href="<?= htmlspecialchars($app_root) ?>?page=help">
|
||||||
<i class="fas fa-question-circle"></i>Help
|
<i class="fas fa-question-circle"></i>Help
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /Menu -->
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- /Modern Menu -->
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,340 @@
|
||||||
html, body {
|
html, body {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
min-height: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* menu */
|
.dashboard-stats-row {
|
||||||
.menu-container {
|
margin-bottom: 1.5rem;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1200px) {
|
||||||
|
.dashboard-stats-row .dashboard-stat-col {
|
||||||
|
flex: 0 0 20%;
|
||||||
|
max-width: 20%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-stat-card {
|
||||||
|
background: rgba(255, 255, 255, 0.95);
|
||||||
|
border-radius: 0.75rem;
|
||||||
|
padding: 1rem 1.25rem;
|
||||||
|
box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.25rem;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-stat-link {
|
||||||
|
text-decoration: none;
|
||||||
|
color: inherit;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-stat-label {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.08em;
|
||||||
|
color: #6c757d;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-stat-value {
|
||||||
|
font-size: 1.6rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #0f172a;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-stat-icon {
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 50%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
list-style: none;
|
justify-content: center;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
font-size: 1rem;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-stat-icon.primary {
|
||||||
|
background: linear-gradient(135deg, #4361ee, #3f37c9);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-stat-icon.success {
|
||||||
|
background: linear-gradient(135deg, #4bb543, #2e7d32);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-stat-icon.warning {
|
||||||
|
background: linear-gradient(135deg, #f9c74f, #f57c00);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-stat-icon.info {
|
||||||
|
background: linear-gradient(135deg, #4895ef, #4361ee);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-stat-icon.danger {
|
||||||
|
background: linear-gradient(135deg, #ef476f, #d90429);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Call add form modernization */
|
||||||
|
.tm-call-form-card {
|
||||||
|
max-width: 640px;
|
||||||
|
margin-top: 2rem;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
border: none;
|
||||||
|
border-radius: 0.9rem;
|
||||||
|
box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tm-call-form-header {
|
||||||
|
background: linear-gradient(135deg, #111827, #1f2933);
|
||||||
|
color: #f9fafb;
|
||||||
|
font-size: 1.15rem;
|
||||||
|
font-weight: 600;
|
||||||
|
padding: 0.9rem 1.5rem;
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tm-call-form-body {
|
||||||
|
padding: 1.75rem 1.75rem 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tm-call-form-subtitle {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: #6b7280;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tm-call-form .form-label {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.08em;
|
||||||
|
color: #6b7280;
|
||||||
|
margin-bottom: 0.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tm-call-form .form-control {
|
||||||
|
border-radius: 0.6rem;
|
||||||
|
border: 1px solid rgba(148, 163, 184, 0.7);
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tm-call-form .form-control:focus {
|
||||||
|
border-color: #3b82f6;
|
||||||
|
box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tm-call-schedule-row,
|
||||||
|
.tm-call-now-row {
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tm-call-duration {
|
||||||
|
margin-top: 0.4rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tm-call-duration .form-check-label {
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tm-call-submit {
|
||||||
|
padding-inline: 1.75rem;
|
||||||
|
border-radius: 999px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tm-call-lobby-switch .form-check-input {
|
||||||
|
width: 2.5em;
|
||||||
|
height: 1.3em;
|
||||||
|
margin-left: -2.5em;
|
||||||
|
background-color: #e5e7eb !important;
|
||||||
|
border-color: #d1d5db !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tm-call-lobby-switch .form-check-input:checked {
|
||||||
|
background-color: #22c55e !important;
|
||||||
|
border-color: #16a34a !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-widget-table {
|
||||||
|
background-color: #ffffff;
|
||||||
|
border-radius: 0.75rem;
|
||||||
|
overflow: hidden;
|
||||||
|
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
|
||||||
|
border: none;
|
||||||
|
outline: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ensure no focus outlines/dotted radius inside dashboard widget tables */
|
||||||
|
.dashboard-widget-table * {
|
||||||
|
outline: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* overall app background like mockup */
|
||||||
|
body {
|
||||||
|
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
|
||||||
|
background-attachment: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* modern menu */
|
||||||
|
.menu-container {
|
||||||
|
background: linear-gradient(135deg, #4361ee, #3f37c9);
|
||||||
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
background-color: #777;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.modern-header-content {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
padding: 1rem 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-section {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modern-logo-link {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
|
text-decoration: none;
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modern-logo {
|
||||||
|
/* width: 40px;*/
|
||||||
|
width: 80px;
|
||||||
|
height: 40px;
|
||||||
|
/* background: white;*/
|
||||||
|
border-radius: 10px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modern-logo img {
|
||||||
|
/* width: 28px;*/
|
||||||
|
/* height: 28px;*/
|
||||||
|
height: 35px;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-info {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: baseline;
|
||||||
|
gap: 1.75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-name {
|
||||||
|
color: white;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-weight: 700;
|
||||||
|
margin: 0;
|
||||||
|
line-height: 1.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-slogan {
|
||||||
|
color: rgba(255, 255, 255, 0.8);
|
||||||
|
font-size: 0.875rem;
|
||||||
|
font-weight: 400;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 576px) {
|
||||||
|
.brand-info {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
gap: 0.1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-actions {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modern-header-btn {
|
||||||
|
background: rgba(255, 255, 255, 0.1);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||||
|
color: white;
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
font-weight: 500;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modern-header-btn:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.2);
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modern-header-btn:focus {
|
||||||
|
box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modern-dropdown {
|
||||||
|
background-color: #fff;
|
||||||
|
border: 1px solid rgba(0,0,0,.15);
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
box-shadow: 0 8px 25px rgba(0,0,0,.15);
|
||||||
|
margin-top: 0.5rem;
|
||||||
|
min-width: 220px;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modern-dropdown-header {
|
||||||
|
background-color: #f8f9fa;
|
||||||
|
padding: 0.75rem 1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
margin-bottom: 0;
|
||||||
|
border-bottom: 1px solid #e9ecef;
|
||||||
|
color: #495057;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modern-dropdown-item {
|
||||||
|
color: #495057;
|
||||||
|
padding: 0.625rem 1rem;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
white-space: nowrap;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modern-dropdown-item:hover {
|
||||||
|
background-color: #f8f9fa;
|
||||||
|
color: #4361ee;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modern-dropdown-item i {
|
||||||
|
width: 16px;
|
||||||
|
text-align: center;
|
||||||
|
color: #6c757d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modern-dropdown-item:hover i {
|
||||||
|
color: #4361ee;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* legacy menu support */
|
||||||
.menu-left, .menu-right {
|
.menu-left, .menu-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
@ -25,7 +343,7 @@ html, body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-left li, .menu-right li {
|
.menu-left li, .menu-right li {
|
||||||
margin: 0 10px;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-left a, .menu-right a {
|
.menu-left a, .menu-right a {
|
||||||
|
|
@ -37,13 +355,14 @@ html, body {
|
||||||
display: block;
|
display: block;
|
||||||
color: white;
|
color: white;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 14px 16px;
|
padding: 13px 16px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.menu-left li a:hover, .menu-right li a:hover {
|
.menu-left li a:hover, .menu-right li a:hover {
|
||||||
background-color: #111;
|
background-color: #111;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Dropdown menu styles */
|
/* Dropdown menu styles */
|
||||||
.dropdown-menu {
|
.dropdown-menu {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
|
@ -95,6 +414,26 @@ html, body {
|
||||||
border-left: 4px solid transparent;
|
border-left: 4px solid transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Position the bell icon relative to badge */
|
||||||
|
.menu-right .dropdown > a {
|
||||||
|
position: relative;
|
||||||
|
padding-right: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Quick Actions specific styles */
|
||||||
|
.menu-left .dropdown-toggle {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-left .dropdown-toggle i {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-left .dropdown-menu {
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
/* /menu */
|
/* /menu */
|
||||||
|
|
||||||
.error {
|
.error {
|
||||||
|
|
@ -157,43 +496,244 @@ html, body {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* dashboard widgets */
|
||||||
|
.dashboard-widget-header {
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
border-radius: 0.75rem;
|
||||||
|
border: none !important;
|
||||||
|
background: #ffffff !important;
|
||||||
|
box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 1rem;
|
||||||
|
color: #0f172a;
|
||||||
|
outline: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-widget-header a {
|
||||||
|
color: #4361ee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dashboard-widget-header a:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table.table-striped.table-hover.table-bordered {
|
||||||
|
background-color: transparent;
|
||||||
|
border-radius: 0;
|
||||||
|
overflow: visible;
|
||||||
|
box-shadow: none;
|
||||||
|
border: none;
|
||||||
|
outline: 0 !important;
|
||||||
|
border-collapse: separate !important;
|
||||||
|
border-spacing: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table thead.thead-dark {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table thead.thead-dark th {
|
||||||
|
border-color: transparent;
|
||||||
|
color: #0f172a;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* remove bottom border under the colored header row */
|
||||||
|
.table thead.thead-dark tr {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table tbody tr:hover {
|
||||||
|
background-color: #f8fafc;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* remove busy inner table borders for cleaner cards */
|
||||||
|
.table-bordered td,
|
||||||
|
.table-bordered th {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* also remove remaining horizontal row borders for dashboard tables */
|
||||||
|
.table.table-striped.table-hover.table-bordered tr {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* kill remaining table header borders completely */
|
||||||
|
.table thead th {
|
||||||
|
border-style: none !important;
|
||||||
|
border-width: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* extra safety for bordered headers */
|
||||||
|
.table-bordered thead th,
|
||||||
|
.table-bordered thead tr {
|
||||||
|
border-style: none !important;
|
||||||
|
border-width: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* remove any border on thead itself */
|
||||||
|
.table thead,
|
||||||
|
.table-bordered thead {
|
||||||
|
border-bottom: none !important;
|
||||||
|
border-top: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* hard reset all borders/outlines for dashboard tables to remove any remaining lines */
|
||||||
|
.table.table-striped.table-hover.table-bordered,
|
||||||
|
.table.table-striped.table-hover.table-bordered thead,
|
||||||
|
.table.table-striped.table-hover.table-bordered tbody,
|
||||||
|
.table.table-striped.table-hover.table-bordered tr,
|
||||||
|
.table.table-striped.table-hover.table-bordered th,
|
||||||
|
.table.table-striped.table-hover.table-bordered td {
|
||||||
|
border: 0 !important;
|
||||||
|
outline: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ensure table headers themselves have no radius; rounding is only on the outer card */
|
||||||
|
.table thead,
|
||||||
|
.table thead th,
|
||||||
|
.table thead.thead-dark,
|
||||||
|
.table thead.thead-dark th {
|
||||||
|
border-radius: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* time row in sidebar */
|
||||||
|
#time_now {
|
||||||
|
border-color: #e2e8f0 !important;
|
||||||
|
background-color: #f8fafc;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
height: 26px !important;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0 8px;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
transition: opacity 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
#time_now span {
|
||||||
|
font-size: 12px;
|
||||||
|
color: #0f172a;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* collapsing sidebar */
|
/* collapsing sidebar */
|
||||||
.toggle-sidebar-button {
|
.toggle-sidebar-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -10px;
|
top: -8px;
|
||||||
right: -10px;
|
right: 0px;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
width: 22px;
|
width: 22px;
|
||||||
padding-left: 2px;
|
padding: 0;
|
||||||
padding-top: 0px;
|
border-radius: 999px;
|
||||||
|
border: 1px solid #cbd5e1;
|
||||||
|
background-color: #f8fafc;
|
||||||
|
color: #64748b;
|
||||||
|
font-size: 0.7rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle-sidebar-button:hover {
|
||||||
|
background-color: #e2e8f0;
|
||||||
|
color: #0f172a;
|
||||||
}
|
}
|
||||||
.sidebar-wrapper {
|
.sidebar-wrapper {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 275px;
|
width: 275px;
|
||||||
transition: width 0.5s ease;
|
transition: width 0.5s ease;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
min-height: calc(100vh - 100px);
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
.sidebar-wrapper.collapsed {
|
.sidebar-wrapper.collapsed {
|
||||||
width: 3em;
|
width: 3.25em;
|
||||||
}
|
}
|
||||||
.sidebar-collapsed .sidebar-wrapper {
|
.sidebar-collapsed .sidebar-wrapper {
|
||||||
width: 3em;
|
width: 3.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ensure toggle stays aligned to right edge when collapsed */
|
||||||
|
.sidebar-wrapper.collapsed .toggle-sidebar-button {
|
||||||
|
right: -3px;
|
||||||
|
left: auto;
|
||||||
|
}
|
||||||
|
/* sidebar container */
|
||||||
.sidebar-content {
|
.sidebar-content {
|
||||||
width: 250px;
|
width: 250px;
|
||||||
border: none;
|
border: none;
|
||||||
|
/* border-radius: 0.75rem;*/
|
||||||
|
box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
|
||||||
|
overflow: hidden;
|
||||||
|
flex: 1 1 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* sidebar items */
|
||||||
|
.sidebar-content .list-group-item {
|
||||||
|
border: none;
|
||||||
|
padding: 0.85rem 1.1rem;
|
||||||
|
font-size: 1rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
transition: background-color 0.15s ease, transform 0.15s ease;
|
||||||
|
margin-bottom: 0.1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-content .list-group-item-action {
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-content .list-group-item-action:hover {
|
||||||
|
background-color: #f1f5f9;
|
||||||
|
transform: translateX(2px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-content .list-group-item-secondary {
|
||||||
|
background: linear-gradient(135deg, #4361ee, #3f37c9);
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-content .list-group-item-secondary i {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* sidebar section titles */
|
||||||
|
.sidebar-content .sidebar-section-title {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.05em;
|
||||||
|
color: #6c757d;
|
||||||
|
padding: 0.6rem 1.1rem 0.45rem 1.1rem;
|
||||||
|
cursor: default;
|
||||||
|
background-color: transparent;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* make section titles invisible (but keep spacing) when collapsed */
|
||||||
|
.sidebar-wrapper.collapsed .sidebar-section-title {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
.list-group-item i {
|
.list-group-item i {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
margin-left: -8px;
|
margin-left: -8px;
|
||||||
|
width: 20px;
|
||||||
|
text-align: center;
|
||||||
|
color: #64748b;
|
||||||
|
font-size: 1.05rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-content {
|
.main-content {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
transition: width 0.5s ease;
|
transition: width 0.5s ease;
|
||||||
margin-bottom: 50px;
|
/* margin-bottom: 50px;*/
|
||||||
|
padding: 2rem;
|
||||||
/* width: 80%;*/
|
/* width: 80%;*/
|
||||||
}
|
}
|
||||||
.main-content.expanded {
|
.main-content.expanded {
|
||||||
|
|
@ -208,13 +748,13 @@ html, body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
height: 36px;
|
height: 35px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo-link {
|
.logo-link {
|
||||||
border: 1px solid white;
|
border: 1px solid white;
|
||||||
margin-top: 2px;
|
/* margin-top: 2px;*/
|
||||||
margin-left: 2px;
|
margin-left: 2px;
|
||||||
background-color: lightseagreen;
|
background-color: lightseagreen;
|
||||||
}
|
}
|
||||||
|
|
@ -278,3 +818,53 @@ input[type="radio"]:disabled {
|
||||||
margin: -0.125rem -0.125rem -0.125rem auto;
|
margin: -0.125rem -0.125rem -0.125rem auto;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* modern header responsive adjustments */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.modern-header-content {
|
||||||
|
flex-direction: column;
|
||||||
|
padding: 1rem;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo-section {
|
||||||
|
width: 100%;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header-actions {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modern-header-btn {
|
||||||
|
padding: 0.375rem 0.75rem;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-name {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-slogan {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 576px) {
|
||||||
|
.header-actions {
|
||||||
|
width: 100%;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modern-header-btn {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modern-header-btn .me-2 {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue