vcast_license_usage_server/style.css
2025-01-05 09:59:40 +08:00

217 lines
3.4 KiB
CSS
Executable File

body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #f5f5f5;
}
.container {
max-width: 1200px;
margin: 0 auto;
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
color: #333;
margin-bottom: 30px;
}
.license-bar {
display: flex;
margin-bottom: 15px;
background-color: white;
border-radius: 4px;
padding: 12px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.license-info {
margin-left: 10px;
display: flex;
flex-direction: column;
margin-right: 10px;
}
.license-name {
margin-top: 20px;
font-size: 16px;
font-weight: bold;
color: #2c3e50;
display: flex;
align-items: center;
}
.slot-info {
font-size: 12px;
color: #666;
}
.usage-bars {
display: flex;
flex-direction: column;
height: 60px;
gap: 6px;
flex-grow: 1;
margin-right: 5px;
margin-top: 5px;
margin-bottom: 5px;
}
.bar-wrapper {
position: relative;
height: 32px;
background-color: #f8f9fa;
border-radius: 4px;
overflow: visible;
/* 允许标签显示在外部 */
}
.bar-container {
flex: 1;
background-color: #eee;
border-radius: 4px;
overflow: hidden;
}
.bar {
width: 100%;
height: 100%;
background-color: #4caf50;
display: flex;
transition: width 1s ease;
white-space: nowrap;
align-items: center;
justify-content: space-between;
border-radius: 4px;
}
.bar.free {
background-color: transparent;
border: 2px dashed #4caf50;
box-sizing: border-box;
}
.label-container {
position: absolute;
display: flex;
align-items: center;
gap: 8px;
height: 100%;
transition: all 0.3s ease;
pointer-events: none;
white-space: nowrap;
}
.label-container.outside {
color: #2c3e50;
}
.label-container.inside {
right: 8px;
color: #fff;
}
.bar-label {
color: #212121;
font-size: 16px;
white-space: nowrap;
margin: 10px;
margin-left: 10%;
}
.user-label {
margin: 10px;
color: rgba(33, 33, 33, 0.7);
font-size: 14px;
display: inline;
}
.duration-label {
font-size: 12px;
opacity: 0.9;
display: inline;
}
.free .bar-label {
color: #4caf50;
width: 100%;
text-align: center;
transform: translateY(100%);
transition: transform 1s ease;
}
.update-time {
text-align: center;
color: #666;
margin-top: 20px;
font-size: 14px;
}
.dashboard-layout {
display: flex;
gap: 20px;
}
.chart-section {
flex: 3;
background-color: #f8f9fa;
border-radius: 8px;
padding: 15px;
}
.queue-section {
flex: 1;
min-width: 250px;
}
.queue-container {
background-color: #f8f9fa;
border-radius: 8px;
padding: 15px;
}
.queue-title {
font-size: 1.2em;
color: #2c3e50;
margin: 0 0 15px 0;
padding-bottom: 10px;
border-bottom: 1px solid #e1e4e8;
}
.queue-empty {
color: #666;
text-align: center;
font-style: italic;
margin: 20px 0;
}
.queue-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.queue-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 12px;
background-color: white;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.queue-user {
font-weight: 500;
color: #2c3e50;
}
.queue-time {
color: #666;
font-size: 0.9em;
}