Skip to content

Commit

Permalink
added unfolding captions on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-ev committed Dec 30, 2019
1 parent 1244470 commit 17904ad
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion public/src/vue/components/subcomponents/MediaCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
:preview_size="preview_size"
/>
<figcaption class="m_media--caption" v-if="!!media.caption">
{{ media.caption }}
<span>{{ media.caption }}</span>
</figcaption>

<transition name="slideright" :duration="400">
Expand Down
26 changes: 20 additions & 6 deletions public/src/vue/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -1741,17 +1741,31 @@ small {
// bottom: 0;

width: 100%;
border-top: 1px solid @c-gris_clair;
.font-verysmall;
.c-noir;
.padding-sides-verysmall;
.bg-blanc;
// .bg-gris_tresclair;
line-height: 1.2;
height: 1.1rem;
overflow: hidden;
// padding-top: @t-skipline/4;
// margin-bottom: @t-skipline/4;

span {
display: block;
width: 100%;
padding-left: 2px;
padding-right: 2px;
border-top: 1px solid @c-gris_clair;
.font-verysmall;
.c-noir;
.bg-blanc;
position: absolute;
bottom: 0;
max-height: 4.9rem;
// text-overflow: ellipsis;
// white-space: nowrap;
// overflow: hidden;
}
}

&:not(.is--hovered) .m_media--caption span {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
Expand Down

0 comments on commit 17904ad

Please sign in to comment.