Skip to content

Commit 7b4d822

Browse files
committed
fixes
1 parent 3cae66b commit 7b4d822

2 files changed

Lines changed: 17 additions & 33 deletions

File tree

assets/gallery.css

Lines changed: 16 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,45 @@
1-
/* BREAK Alembic typography constraints safely */
2-
.gallery-page {
3-
width: 100%;
1+
/* HARD ISOLATION RESET (this is the fix) */
2+
3+
body.gallery-page main.container {
4+
display: block !important;
45
}
56

6-
/* neutralize typeset interference */
7-
.gallery-page * {
8-
box-sizing: border-box;
7+
body.gallery-page article {
8+
display: block !important;
9+
height: auto !important;
10+
overflow: visible !important;
911
}
1012

11-
/* sections */
12-
.gallery-section {
13-
margin: 2.5rem 0;
13+
/* disable layout interference completely */
14+
body.gallery-page .typeset {
15+
max-width: none !important;
1416
}
1517

16-
/* GRID ISOLATION LAYER */
18+
/* gallery only */
1719
.gallery {
1820
display: grid;
1921
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
2022
gap: 1.2rem;
21-
width: 100%;
2223
}
2324

24-
/* ensure no inheritance weirdness from .typeset */
2525
.gallery figure {
2626
margin: 0;
27-
padding: 0;
2827
}
2928

30-
/* image containment */
31-
.gallery figure img {
29+
.gallery img {
3230
width: 100%;
3331
display: block;
34-
border: 1px solid #e5e5e5;
3532
border-radius: 6px;
36-
transition: transform 0.2s ease, box-shadow 0.2s ease;
33+
transition: transform 0.2s ease;
3734
}
3835

39-
.gallery figure img:hover {
36+
.gallery img:hover {
4037
transform: scale(1.03);
41-
box-shadow: 0 6px 18px rgba(0,0,0,0.12);
4238
}
4339

44-
/* captions */
4540
.gallery figcaption {
46-
margin-top: 0.5rem;
4741
text-align: center;
4842
font-size: 0.9em;
4943
color: #666;
50-
}
51-
52-
article.article--page {
53-
display: block !important;
54-
height: auto !important;
55-
overflow: visible !important;
56-
}
57-
58-
main.container {
59-
display: block !important;
44+
margin-top: 0.4rem;
6045
}

gallery.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22
layout: page
33
title: Gallery
44
permalink: /gallery/
5+
body_class: gallery-page
56
---
67

78
Photographs from the Bioinformatics Technologies Lab over the years, including lab gatherings, conferences, workshops, and other memorable moments.
89

9-
<link rel="stylesheet" href="/assets/gallery.css">
10-
1110
<div class="gallery-page">
1211

1312
<div class="gallery-section">

0 commit comments

Comments
 (0)