Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _includes/page-intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
{% assign intro_image = intro_image | escape %}
<div class="intro-image">
<img src="{{ intro_image }}" alt="{{ page.title }}">
{% if page.image.caption %}<span class="image-caption">{{ page.image.caption | markdownify | strip_newlines | remove: "<p>" | remove: "</p>" }}</span>{% endif %}
</div>
</div>
{% endif %}

Expand Down
24 changes: 24 additions & 0 deletions _sass/basically-basic/_intro.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,30 @@
img {
width: 100%;
}
.image-caption {
position: absolute;
bottom: 0;
right: 0;
margin: 0 auto;
padding: 2px 5px;
color: #fff;
font-family: $base-font-family;
font-size: $min-font-size;
background: #000;
text-align: right;
z-index: 5;
opacity: 0.5;
border-radius: $border-radius 0 0 0;

@include breakpoint($large) {
padding: 5px 10px;
}

a {
color: #fff;
text-decoration: none;
}
}
}

.intro-text {
Expand Down
12 changes: 12 additions & 0 deletions _sass/basically-basic/_print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,18 @@
color: #000;
}

.intro-image {
.image-caption {
color: #000 !important;
background: #fff !important;
opacity: 1;

a {
color: #000 !important;
}
}
}

/*
Hide the following elements on print
========================================================================== */
Expand Down