Files
Media.JoshHeaps.Net/Media.JoshHeaps.Net/wwwroot/css/gallery.css
T
2025-10-09 11:35:54 -06:00

295 lines
5.1 KiB
CSS

/* Floating Add Files Button */
.floating-add-btn {
position: fixed;
bottom: 30px;
right: 30px;
width: 60px;
height: 60px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
cursor: pointer;
z-index: 1000;
transition: transform 0.2s, box-shadow 0.2s;
display: flex;
align-items: center;
justify-content: center;
font-size: 32px;
line-height: 1;
}
.floating-add-btn:hover {
transform: scale(1.1);
box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}
.floating-add-btn:active {
transform: scale(0.95);
}
.floating-add-btn .btn-icon {
transition: transform 0.3s;
}
.floating-add-btn.active .btn-icon {
transform: rotate(45deg);
}
/* Upload Form Styles */
#upload-form-card {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 1001;
max-width: 500px;
width: 90%;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
/* Upload Progress Bar */
#upload-progress {
margin: 15px 0;
}
.progress-bar {
width: 100%;
height: 30px;
background: #f0f0f0;
border-radius: 15px;
overflow: hidden;
margin-bottom: 10px;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
transition: width 0.3s ease;
width: 0%;
}
.progress-text {
text-align: center;
font-size: 14px;
color: #555;
font-weight: 500;
}
.upload-form-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
}
.close-upload-form {
background: transparent;
border: none;
font-size: 32px;
color: #999;
cursor: pointer;
padding: 0;
width: 32px;
height: 32px;
line-height: 1;
transition: color 0.2s;
}
.close-upload-form:hover {
color: #333;
}
/* Gallery Grid Layout */
.gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 20px;
padding: 20px 0;
}
.gallery-item {
position: relative;
background: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover {
transform: translateY(-4px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.gallery-item img {
width: 100%;
height: 250px;
object-fit: cover;
display: block;
cursor: pointer;
}
.gallery-item-description {
padding: 10px;
font-size: 14px;
color: #555;
background: #f9f9f9;
border-top: 1px solid #eee;
}
.gallery-item-info {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
background: #fff;
border-top: 1px solid #eee;
}
.gallery-item-date {
font-size: 12px;
color: #888;
}
.btn-delete {
background: #dc3545;
color: white;
border: none;
padding: 5px 12px;
border-radius: 4px;
font-size: 12px;
cursor: pointer;
transition: background 0.2s;
}
.btn-delete:hover {
background: #c82333;
}
/* Upload Form Styles */
.form-group {
margin-bottom: 15px;
}
.form-group label {
display: block;
margin-bottom: 5px;
font-weight: 500;
color: #333;
}
.form-group input[type="file"] {
width: 100%;
padding: 8px;
border: 2px dashed #ddd;
border-radius: 4px;
cursor: pointer;
}
.form-group textarea {
width: 100%;
padding: 10px;
border: 1px solid #ddd;
border-radius: 4px;
font-family: inherit;
resize: vertical;
}
/* Alert Messages */
.alert {
padding: 12px 16px;
border-radius: 4px;
margin-bottom: 15px;
}
.alert-success {
background: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.alert-error {
background: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
/* Image Modal */
.image-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
}
.modal-backdrop {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.8);
}
.modal-content {
position: relative;
max-width: 90vw;
max-height: 90vh;
z-index: 1001;
}
.modal-content img {
max-width: 100%;
max-height: 90vh;
display: block;
border-radius: 8px;
}
.modal-close {
position: absolute;
top: -40px;
right: 0;
background: transparent;
border: none;
color: white;
font-size: 36px;
cursor: pointer;
padding: 0;
width: 40px;
height: 40px;
line-height: 36px;
}
.modal-close:hover {
color: #ccc;
}
/* Responsive Design */
@media (max-width: 768px) {
.gallery-grid {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 10px;
}
.gallery-item img {
height: 150px;
}
}
@media (max-width: 480px) {
.gallery-grid {
grid-template-columns: 1fr;
}
.gallery-item img {
height: 200px;
}
}