Skip to content

Commit 5da2642

Browse files
authored
Merge pull request #763 from jonfroehlich/long-photo-captions-get-cutoff
Long photo captions get cutoff
2 parents 2e88e23 + 8cc8106 commit 5da2642

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

website/static/website/css/project.css

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
}
5858

5959
.header-visual-title {
60-
font-family: adelle-regular;
60+
font-family: adelle-regular;
6161
font-weight: bold;
6262
color: #464D59;
6363
font-size: 15px;
@@ -94,21 +94,23 @@
9494
margin: auto;
9595
position: absolute;
9696
background: rgba(50, 50, 50, .7);
97-
display: table-cell;
98-
vertical-align: middle;
9997
opacity:0;
98+
line-height: 250px;
99+
text-align:center;
100100
}
101101

102102
.image-gallery-caption {
103103
color:white;
104104
weight:bold;
105-
font-size:2em;
106-
padding:10px;
107-
padding-top:25%;
108-
text-align:center;
105+
font-size:1.8rem;
106+
line-height: 1.5;
107+
display: inline-block;
109108
vertical-align: middle;
109+
padding-left: 5%;
110+
padding-right:5%;
110111
}
111112

113+
112114
.video-column, .talk-column {
113115
padding-left: 0;
114116
padding-right: 30px;

website/templates/website/project.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ <h3 class="news-type-label">Photo Gallery</h3>
185185
<div class="col-md-4 project-gallery-col">
186186
<img src="{% thumbnail image.picture 368x245 box=image.cropping crop detail %}" alt="{{image.alt_text}}" class="project-gallery">
187187
<div class="overlay-image">
188-
<p class="image-gallery-caption">{{image.caption}}</p>
188+
<div class="image-gallery-caption">{{image.caption}}</div>
189189
</div>
190190
</div>
191191
{% endfor %}

0 commit comments

Comments
 (0)