Skip to content
Snippets Groups Projects
Commit a7ff6bd0 authored by Olivia206's avatar Olivia206
Browse files

added style to credit

parent 455efaf2
No related branches found
No related tags found
No related merge requests found
.posts-show header figure
display: inline-block
position: relative
figcaption
display: block
font-size: 1rem
left: 0
position: absolute
right: 0
......@@ -9,11 +11,16 @@
z-index: 10
&::before
font-family: inter,sans-serif
font-size: .875rem
font-weight: 400
line-height: 150%
content: '©'
padding: calc(1rem/2)
position: absolute
right: 0
top: 0
p
display: none
font-weight: 400
padding: calc(1rem/2)
padding-right: 1.5rem
&:hover figcaption p
display: block
\ No newline at end of file
......@@ -4,11 +4,11 @@
<% if @post.featured_image.attached? %>
<figure>
<%= kamifusen_tag @post.featured_image, class: 'img-fluid', width: 300 %>
<figcaption tabindex="0">
<p>
<%= sanitize @post.featured_image_credit %>
</p>
</figcaption>
<% if !@post.featured_image_credit.blank? %>
<figcaption tabindex="0">
<%= sanitize @post.featured_image_credit %>
</figcaption>
<% end %>
</figure>
<% end %>
<% end %>
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment