Created
January 9, 2026 21:53
-
-
Save solariz/ffab01b7e9fc85c14b8a9bc3d6e63259 to your computer and use it in GitHub Desktop.
hugo photos based on pixelfed CSS File
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Photos page styles */ | |
| .post-description a { | |
| color: var(--primary); | |
| text-decoration: none; | |
| border-bottom: 1px solid var(--primary); | |
| transition: border-color 0.2s; | |
| } | |
| .post-description a:hover { | |
| border-bottom-color: transparent; | |
| } | |
| .photo-gallery { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 2rem; | |
| margin: 2rem 0; | |
| } | |
| .year-section { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .year-header { | |
| font-size: 1.3rem; | |
| font-weight: 600; | |
| color: var(--secondary); | |
| margin: 0; | |
| } | |
| .year-photos { | |
| display: grid; | |
| grid-template-columns: repeat(3, 1fr); | |
| gap: 3px; | |
| } | |
| .photo-item { | |
| position: relative; | |
| aspect-ratio: 1; | |
| overflow: hidden; | |
| cursor: pointer; | |
| background: #1a1a1a; | |
| border-radius: 8px; | |
| } | |
| .photo-item::after { | |
| content: ''; | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%) scale(0.8); | |
| width: 48px; | |
| height: 48px; | |
| background: rgba(0, 0, 0, 0.6); | |
| border-radius: 50%; | |
| opacity: 0; | |
| transition: opacity 0.2s, transform 0.2s; | |
| background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3Cpath d='M11 8v6M8 11h6'/%3E%3C/svg%3E"); | |
| background-size: 28px; | |
| background-position: center; | |
| background-repeat: no-repeat; | |
| z-index: 2; | |
| pointer-events: none; | |
| } | |
| .photo-item:hover::after { | |
| opacity: 1; | |
| transform: translate(-50%, -50%) scale(1); | |
| } | |
| .photo-item img { | |
| transition: opacity 0.2s; | |
| } | |
| .photo-item:hover img { | |
| opacity: 0.75; | |
| } | |
| .photo-item img { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| } | |
| .photo-time { | |
| position: absolute; | |
| bottom: 8px; | |
| right: 8px; | |
| font-size: 0.75rem; | |
| font-weight: 500; | |
| color: #fff; | |
| text-shadow: 0 1px 3px rgba(0,0,0,0.8); | |
| } | |
| /* Mobile: 3 columns still but smaller */ | |
| @media (max-width: 600px) { | |
| .year-photos { | |
| gap: 2px; | |
| } | |
| .photo-time { | |
| font-size: 0.65rem; | |
| bottom: 4px; | |
| right: 4px; | |
| } | |
| } | |
| /* Lightbox styles */ | |
| .lightbox { | |
| display: none; | |
| position: fixed; | |
| z-index: 999; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0, 0, 0, 0.95); | |
| justify-content: center; | |
| align-items: center; | |
| padding: 1rem; | |
| } | |
| .lightbox.active { | |
| display: flex; | |
| } | |
| .lightbox-content { | |
| max-width: 95vw; | |
| max-height: 95vh; | |
| position: relative; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: stretch; | |
| } | |
| .lightbox-image-wrapper { | |
| position: relative; | |
| cursor: pointer; | |
| display: flex; | |
| justify-content: center; | |
| } | |
| .lightbox-image-wrapper picture { | |
| display: flex; | |
| } | |
| .lightbox-content img { | |
| max-width: 90vw; | |
| max-height: calc(85vh - 80px); | |
| object-fit: contain; | |
| display: block; | |
| border-radius: 4px; | |
| } | |
| .lightbox-close { | |
| position: fixed; | |
| top: 1rem; | |
| right: 1.5rem; | |
| color: rgba(255, 255, 255, 0.7); | |
| font-size: 2rem; | |
| font-weight: 300; | |
| cursor: pointer; | |
| z-index: 1001; | |
| transition: color 0.2s, transform 0.2s; | |
| line-height: 1; | |
| width: 2.5rem; | |
| height: 2.5rem; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .lightbox-close:hover { | |
| color: #fff; | |
| transform: scale(1.1); | |
| } | |
| .lightbox-info { | |
| color: white; | |
| width: 100%; | |
| margin-top: 0.75rem; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.35rem; | |
| background: rgba(0, 0, 0, 0.6); | |
| padding: 0.75rem 1rem; | |
| border-radius: 4px; | |
| } | |
| .lightbox-header { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: baseline; | |
| gap: 1rem; | |
| } | |
| .lightbox-title { | |
| font-size: 1rem; | |
| font-weight: 600; | |
| text-align: left; | |
| flex: 1; | |
| color: #fff; | |
| } | |
| .lightbox-date { | |
| font-size: 0.8rem; | |
| color: rgba(255, 255, 255, 0.3); | |
| text-align: right; | |
| white-space: nowrap; | |
| } | |
| .lightbox-description { | |
| font-size: 0.9rem; | |
| color: rgba(255, 255, 255, 0.65); | |
| line-height: 1.4; | |
| font-weight: 400; | |
| } | |
| .lightbox-copyright { | |
| font-size: 0.65rem; | |
| color: rgba(255, 255, 255, 0.3); | |
| text-align: center; | |
| margin-top: 0.5rem; | |
| } | |
| .lightbox-copyright a { | |
| color: rgba(255, 255, 255, 0.45); | |
| text-decoration: none; | |
| } | |
| .lightbox-copyright a:hover { | |
| color: rgba(255, 255, 255, 0.6); | |
| } | |
| .lightbox-footer { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| margin-top: 0.5rem; | |
| gap: 1rem; | |
| } | |
| .lightbox-footer .lightbox-copyright { | |
| margin-top: 0; | |
| text-align: left; | |
| flex-shrink: 0; | |
| } | |
| .lightbox-comment-btn { | |
| display: none; | |
| align-items: center; | |
| gap: 0.3rem; | |
| padding: 0.3rem 0.6rem; | |
| background: rgba(255, 255, 255, 0.15); | |
| border-radius: 16px; | |
| color: rgba(255, 255, 255, 0.85); | |
| text-decoration: none; | |
| font-size: 0.6rem; | |
| font-weight: 500; | |
| transition: background 0.2s, color 0.2s; | |
| white-space: nowrap; | |
| } | |
| .lightbox-comment-btn:hover { | |
| background: rgba(255, 255, 255, 0.25); | |
| color: #fff; | |
| } | |
| .lightbox-comment-btn svg { | |
| flex-shrink: 0; | |
| } | |
| /* Mobile adjustments */ | |
| @media (max-width: 600px) { | |
| .lightbox-content img { | |
| max-height: calc(80vh - 100px); | |
| } | |
| .lightbox-info { | |
| padding: 0.6rem 0.8rem; | |
| } | |
| .lightbox-title { | |
| font-size: 0.9rem; | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment