Spaces:
Sleeping
Sleeping
File size: 2,409 Bytes
ff65bb4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
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);
}
}
|