- Added HTTP server with CORS support and various endpoints - Introduced http_tx/http_rx channels for HTTP server control - Cleaned up build.rs by removing commented code - Updated .gitignore to use *.rdb pattern instead of .rdb - Simplified capabilities.json to empty object - Improved UI initialization with better error handling - Reorganized module imports in main.rs - Added worker count configuration for HTTP server The changes introduce a new HTTP server capability while cleaning up and improving existing code structure. The HTTP server includes authentication, session management, and websocket support.
112 lines
1.7 KiB
CSS
112 lines
1.7 KiB
CSS
:root {
|
|
--navbar-height: 60px;
|
|
--primary-color: #0066ff;
|
|
--text-color: #333;
|
|
--bg-color: #fff;
|
|
--border-color: #e0e0e0;
|
|
--hover-bg: #f5f5f5;
|
|
}
|
|
|
|
.navbar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
height: var(--navbar-height);
|
|
padding: 0 20px;
|
|
background: var(--bg-color);
|
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.navbar-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-weight: bold;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.logo {
|
|
height: 30px;
|
|
width: 30px;
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.nav-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
text-decoration: none;
|
|
color: var(--text-color);
|
|
padding: 5px 10px;
|
|
border-radius: 4px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.nav-link:hover {
|
|
background: var(--hover-bg);
|
|
}
|
|
|
|
.nav-link.active {
|
|
color: var(--primary-color);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.nav-user {
|
|
position: relative;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
background: var(--hover-bg);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.user-menu {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 100%;
|
|
background: var(--bg-color);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
padding: 5px 0;
|
|
min-width: 150px;
|
|
display: none;
|
|
}
|
|
|
|
.user-menu-item {
|
|
display: block;
|
|
padding: 8px 15px;
|
|
color: var(--text-color);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.user-menu-item:hover {
|
|
background: var(--hover-bg);
|
|
}
|
|
|
|
.nav-user:hover .user-menu {
|
|
display: block;
|
|
}
|
|
|
|
[data-theme="dark"] {
|
|
--text-color: #fff;
|
|
--bg-color: #1a1a1a;
|
|
--border-color: #333;
|
|
--hover-bg: #333;
|
|
}
|