230 lines
4.5 KiB
CSS
230 lines
4.5 KiB
CSS
body {
|
|
font-family: Arial, sans-serif;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
text-align: center; /* Center align elements */
|
|
background-color: #f4f4f4; /* Light background */
|
|
}
|
|
|
|
.playlist-container {
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
border: 1px solid #ccc;
|
|
padding: 10px;
|
|
margin-top: 20px;
|
|
text-align: left; /* Align playlist text to the left */
|
|
}
|
|
|
|
li {
|
|
cursor: pointer;
|
|
list-style-type: none;
|
|
}
|
|
|
|
.play-button, .next-button, .prev-button {
|
|
border: 0;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease; /* Smooth transition for hover */
|
|
}
|
|
|
|
.play-button {
|
|
box-sizing: border-box;
|
|
margin: 5% auto;
|
|
height: 50px; /* Consistent size for play button */
|
|
border-color: transparent transparent transparent #007bff;
|
|
border-style: solid;
|
|
border-width: 25px 0 25px 40px; /* Adjusted size */
|
|
}
|
|
|
|
.play-button.paused {
|
|
border-style: double;
|
|
border-width: 25px 0 25px 40px; /* Same size for pause button */
|
|
height: 50px; /* Consistent height */
|
|
}
|
|
|
|
.play-button:hover {
|
|
border-color: transparent transparent transparent #0056b3; /* Darker blue on hover */
|
|
}
|
|
|
|
.next-button, .prev-button {
|
|
padding: 0;
|
|
margin: 10px;
|
|
border-color: transparent #007bff transparent #007bff;
|
|
border-style: solid;
|
|
}
|
|
|
|
.next-button {
|
|
border-width: 15px 0 15px 25px;
|
|
box-shadow: 8px 0 0 0 #007bff;
|
|
}
|
|
|
|
.next-button:hover {
|
|
border-color: transparent #0056b3 transparent #0056b3;
|
|
box-shadow: 8px 0 0 0 #0056b3;
|
|
}
|
|
|
|
.prev-button {
|
|
border-width: 15px 25px 15px 0;
|
|
box-shadow: -8px 0 0 0 #007bff;
|
|
}
|
|
|
|
.prev-button:hover {
|
|
border-color: transparent #0056b3 transparent #0056b3;
|
|
box-shadow: -8px 0 0 0 #0056b3;
|
|
}
|
|
|
|
.slider {
|
|
width: 90%; /* Make slider wider for easier interaction */
|
|
margin: 10px auto; /* Center align the slider */
|
|
}
|
|
|
|
.slidecontainer {
|
|
margin: 20px 0; /* Space out elements */
|
|
}
|
|
|
|
/* Upload progress bar styles */
|
|
.progress-bar {
|
|
width: 100%;
|
|
height: 20px;
|
|
background-color: #e0e0e0;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
margin: 10px 0;
|
|
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #007bff, #0056b3);
|
|
width: 0%;
|
|
transition: width 0.3s ease;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
#uploadProgress {
|
|
margin: 15px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
#progressText {
|
|
font-weight: bold;
|
|
color: #007bff;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
#uploadStatus {
|
|
margin: 10px 0;
|
|
padding: 8px;
|
|
border-radius: 4px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
#uploadStatus:not(:empty) {
|
|
background-color: #e7f3ff;
|
|
border: 1px solid #007bff;
|
|
color: #0056b3;
|
|
}
|
|
|
|
/* Form styling improvements */
|
|
#uploadForm {
|
|
background-color: white;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
margin: 20px 0;
|
|
}
|
|
|
|
#uploadButton {
|
|
background-color: #007bff;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
margin-left: 10px;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
#uploadButton:hover:not(:disabled) {
|
|
background-color: #0056b3;
|
|
}
|
|
|
|
#uploadButton:disabled {
|
|
background-color: #6c757d;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
#uploadFile {
|
|
padding: 8px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
/* RFID mapping form styling */
|
|
#editMappingForm {
|
|
background-color: white;
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
margin: 20px 0;
|
|
text-align: left;
|
|
}
|
|
|
|
#editMappingForm label {
|
|
display: block;
|
|
margin: 10px 0 5px 0;
|
|
font-weight: bold;
|
|
}
|
|
|
|
#editMappingForm input[type="text"] {
|
|
width: 100%;
|
|
padding: 8px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
margin-bottom: 10px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
#editMappingForm button {
|
|
background-color: #28a745;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 20px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
margin-top: 10px;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
#editMappingForm button:hover {
|
|
background-color: #218838;
|
|
}
|
|
|
|
/* Responsive design improvements */
|
|
@media (max-width: 600px) {
|
|
body {
|
|
padding: 10px;
|
|
}
|
|
|
|
.slider {
|
|
width: 95%;
|
|
}
|
|
|
|
#uploadForm, #editMappingForm {
|
|
padding: 15px;
|
|
}
|
|
|
|
#uploadButton, #editMappingForm button {
|
|
width: 100%;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
#uploadFile {
|
|
width: 100%;
|
|
margin: 10px 0;
|
|
}
|
|
}
|