OBD_Logger / static /styles.css
LiamKhoaLe's picture
Initial commit: OBD Logger with RLHF training system
ff65bb4
body {
font-family: 'Segoe UI', sans-serif;
background: linear-gradient(to bottom right, #eef1f7, #f9fafe);
margin: 0;
padding: 2rem;
color: #333;
}
h1 {
text-align: center;
margin-bottom: 2rem;
font-size: 2rem;
color: #2c3e50;
}
#log-container {
display: flex;
flex-direction: column;
gap: 1.5rem;
max-width: 960px;
margin: auto;
}
/* Card display */
.card {
border-radius: 10px;
padding: 1.2rem 1.5rem;
color: white;
position: relative;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
transition: transform 0.3s ease, background-color 0.3s ease;
overflow: hidden;
}
.card:hover {
transform: translateY(-3px);
}
.status {
font-weight: 600;
font-size: 1.1rem;
}
.timestamp {
font-size: 0.95rem;
opacity: 0.9;
margin-top: 4px;
display: flex;
align-items: center;
gap: 8px;
}
.icon-edit {
width: 18px;
height: 18px;
cursor: pointer;
margin-left: 4px;
}
.label-input {
font-size: 1rem;
padding: 2px 6px;
border-radius: 4px;
border: 1px solid #ccc;
width: 160px;
}
/* All buttons */
.btn-expand,
.btn-remove {
margin-top: 1rem;
padding: 0.4rem 1.2rem;
cursor: pointer;
font-size: 0.9rem;
border: none;
border-radius: 4px;
transition: background-color 0.2s ease;
}
.btn-expand {
background-color: rgba(255, 255, 255, 0.25);
color: white;
}
.btn-expand:hover {
background-color: rgba(255, 255, 255, 0.4);
}
.btn-remove {
position: absolute;
top: 10px;
right: 14px;
background: rgba(255, 255, 255, 0.15);
color: white;
}
.btn-remove:hover {
background: rgba(255, 255, 255, 0.3);
}
/* Expanded content */
.expanded-content {
margin-top: 1.2rem;
animation: fadeIn 0.3s ease-in-out;
max-height: 0; /* You can adjust this limit */
overflow-y: auto; /* Allow vertical scroll */
transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
opacity: 0;
padding-right: 5px; /* Optional: give room for scrollbar */
}
.expanded-content.show {
max-height: 1000px;
opacity: 1;
}
.expanded-content img {
margin-top: 1rem;
border-radius: 6px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* Colors */
.card.red {
background-color: #e74c3c;
}
.card.green {
background-color: #27ae60;
}
.card.purple {
background-color: #8e44ad;
}
/* Animation */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}