mirror of
https://github.com/Viren070/MediaFusion.git
synced 2025-12-01 23:21:11 +01:00
361b6ba74a
Introduced new visualizations to display the top 20 torrent uploaders and their weekly activity. Enhanced the styling for metrics sections and updated backend logic to support these additions, ensuring cleaner and more focused data retrieval.
270 lines
5.0 KiB
CSS
270 lines
5.0 KiB
CSS
body, html {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-family: 'OpenSans', Arial, sans-serif;
|
|
font-weight: 300;
|
|
color: white;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image: url('https://dl.strem.io/addon-background.jpg');
|
|
background-size: cover;
|
|
background-position: center center;
|
|
background-repeat: no-repeat;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
h4 {
|
|
color: #ffffff;
|
|
font-weight: 600;
|
|
margin-bottom: 1.5rem;
|
|
border-bottom: 2px solid rgba(74, 71, 163, 0.5);
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
.config-container {
|
|
margin: 2% auto;
|
|
padding: 2%;
|
|
background: rgba(0, 0, 0, 0.85);
|
|
border-radius: 10px;
|
|
max-height: 95vh;
|
|
overflow-y: auto;
|
|
transition: padding 0.3s ease;
|
|
}
|
|
|
|
.torrent-sources-wrapper {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 0;
|
|
/* Increase padding-bottom for taller chart */
|
|
padding-bottom: 80%; /* Increased from 50% to give more vertical space */
|
|
}
|
|
|
|
.torrent-sources-wrapper canvas {
|
|
position: absolute;
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
}
|
|
|
|
.chart-section {
|
|
background: rgba(0, 0, 0, 0.5);
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
margin-bottom: 30px;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.chart-section:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
.date-info {
|
|
background: rgba(129,87,208,0.6);
|
|
padding: 8px 16px;
|
|
border-radius: 4px;
|
|
text-align: center;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.chart-wrapper {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 400px;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.chart-wrapper canvas {
|
|
position: absolute;
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
}
|
|
|
|
.chart-container {
|
|
padding: 1rem;
|
|
background: rgba(0, 0, 0, 0.37);
|
|
border-radius: 8px;
|
|
transition: margin-bottom 0.3s ease, padding 0.3s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.logo {
|
|
max-width: 300px;
|
|
display: block;
|
|
margin: 0 auto 1.5rem;
|
|
}
|
|
|
|
.card {
|
|
background: linear-gradient(145deg, #4a47a3, #2d2a6a);
|
|
border: none;
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
|
|
.card-text {
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.skeleton-loader {
|
|
width: 100%;
|
|
height: 20vh; /* Dynamic height based on viewport */
|
|
background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
|
|
background-size: 200% 100%;
|
|
animation: skeleton-loading 1.5s infinite;
|
|
border-radius: 8px;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
@keyframes skeleton-loading {
|
|
0% {
|
|
background-position: 200% 0;
|
|
}
|
|
100% {
|
|
background-position: -200% 0;
|
|
}
|
|
}
|
|
|
|
.card-scheduler {
|
|
background: rgba(0, 0, 0, 0.37);
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
margin: 1rem 0;
|
|
transition: background 0.3s ease;
|
|
}
|
|
|
|
.card-scheduler.enabled {
|
|
background: #4a47a3;
|
|
border-left: 5px solid #fff;
|
|
}
|
|
|
|
.card-scheduler.disabled {
|
|
background: #808080;
|
|
border-left: 5px solid #fff;
|
|
}
|
|
|
|
.card-scheduler.log-info {
|
|
border-left: 5px solid #4caf50; /* Green */
|
|
}
|
|
|
|
.card-scheduler.log-warning {
|
|
border-left: 5px solid #ffeb3b; /* Yellow */
|
|
}
|
|
|
|
.card-scheduler.log-error {
|
|
border-left: 5px solid #f44336; /* Red */
|
|
}
|
|
|
|
.scheduler-section {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.scheduler-section h5 {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.section-divider {
|
|
border: 0;
|
|
height: 2px;
|
|
background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(74, 71, 163, 0.75), rgba(0, 0, 0, 0));
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.btn, button {
|
|
border: none;
|
|
outline: none;
|
|
color: white;
|
|
background: #4a47a3;
|
|
padding: 0.8rem 1.5rem;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
text-align: center;
|
|
font-size: 1rem;
|
|
font-weight: 300;
|
|
cursor: pointer;
|
|
opacity: 0.9;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn:hover, button:hover {
|
|
opacity: 1;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.form-check-input:checked + .form-check-label {
|
|
background: #4a47a3;
|
|
border-color: #4a47a3;
|
|
color: white;
|
|
position: relative;
|
|
}
|
|
|
|
.large-number {
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
|
|
@media (max-width: 768px) {
|
|
.chart-wrapper {
|
|
height: 300px;
|
|
}
|
|
|
|
.chart-section {
|
|
padding: 15px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.card-text {
|
|
font-size: 1.2rem;
|
|
}
|
|
.config-container {
|
|
padding: 10px;
|
|
}
|
|
|
|
.chart-container {
|
|
margin-bottom: 15px;
|
|
padding: 10px;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.torrent-sources-wrapper {
|
|
padding-bottom: 60%; /* Slightly smaller for larger screens */
|
|
}
|
|
}
|
|
|
|
@media (min-width: 769px) and (max-width: 1200px) {
|
|
.config-container {
|
|
padding: 30px;
|
|
}
|
|
|
|
.chart-container {
|
|
margin-bottom: 20px;
|
|
padding: 20px;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.4rem;
|
|
}
|
|
}
|
|
|
|
@media (min-width: 1201px) {
|
|
.config-container {
|
|
padding: 50px;
|
|
}
|
|
|
|
.chart-container {
|
|
margin-bottom: 30px;
|
|
padding: 30px;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.6rem;
|
|
}
|
|
}
|