Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
teckids.org
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Teckids
Team PR
teckids.org
Commits
91f25ad0
Unverified
Commit
91f25ad0
authored
1 year ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Simplify figcaption
parent
90f11876
No related branches found
No related tags found
1 merge request
!37
Make figcaption visible
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
sass/_utils.scss
+2
-20
2 additions, 20 deletions
sass/_utils.scss
templates/blog/card.html
+1
-3
1 addition, 3 deletions
templates/blog/card.html
templates/blog/post.html
+1
-3
1 addition, 3 deletions
templates/blog/post.html
templates/shortcodes/further.html
+1
-3
1 addition, 3 deletions
templates/shortcodes/further.html
with
5 additions
and
29 deletions
sass/_utils.scss
+
2
−
20
View file @
91f25ad0
...
...
@@ -3,27 +3,9 @@
height
:
70%
;
}
.caption
{
.
card
>
.card-image
figure
.image
>
fig
caption
{
position
:
absolute
;
max-width
:
100%
;
opacity
:
75%
;
padding
:
4px
4px
4px
4px
;
bottom
:
0
;
}
.caption
:hover
>
figcaption
{
height
:
100%
;
text-wrap
:
wrap
;
}
.caption
>
figcaption
{
display
:
block
;
margin
:
0
0
0
0
!
important
;
padding-top
:
3px
;
padding-bottom
:
3px
;
position
:
relative
;
width
:
100%
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
text-wrap
:
nowrap
;
opacity
:
75%
;
}
This diff is collapsed.
Click to expand it.
templates/blog/card.html
+
1
−
3
View file @
91f25ad0
...
...
@@ -5,9 +5,7 @@
{% set image = resize_image(path="@/" ~ post.colocated_path ~ "/" ~ post.extra.depiction.image, width=800, height=600) -%}
<img
src=
"{{ image.url }}"
alt=
"{{ post.extra.depiction.alt }}"
/>
{% if post.extra.depiction.credits %}
<div
class=
"caption"
>
<figcaption
class=
"tag has-text-white has-background-black is-size-7 is-italic m-1"
>
{{ post.extra.depiction.credits }}
</figcaption>
</div>
<figcaption
class=
"-1 has-text-white has-background-black is-size-7 is-italic"
>
{{ post.extra.depiction.credits }}
</figcaption>
{% endif %}
</figure>
</a>
...
...
This diff is collapsed.
Click to expand it.
templates/blog/post.html
+
1
−
3
View file @
91f25ad0
...
...
@@ -15,9 +15,7 @@
{% set image = resize_image(path="@/" ~ post.colocated_path ~ "/" ~ post.extra.depiction.image, width=800, height=600) -%}
<img
src=
"{{ image.url }}"
alt=
"{{ post.extra.depiction.alt }}"
/>
{% if post.extra.depiction.credits %}
<div
class=
"caption"
>
<figcaption
class=
"tag has-text-white has-background-black is-size-7 is-italic m-1"
>
{{ post.extra.depiction.credits }}
</figcaption>
</div>
<figcaption
class=
"p-1 has-text-white has-background-black is-size-7 is-italic"
>
{{ post.extra.depiction.credits }}
</figcaption>
{% endif %}
</figure>
</div>
...
...
This diff is collapsed.
Click to expand it.
templates/shortcodes/further.html
+
1
−
3
View file @
91f25ad0
...
...
@@ -10,9 +10,7 @@
{% set image = resize_image(path="@/" ~ page.colocated_path ~ "/" ~ further.image, width=800, height=600) -%}
<img
src=
"{{image.url}}"
alt=
"{{further.alt}}"
/>
{% if further.image.credits %}
<div
class=
"caption"
>
<figcaption
class=
"tag has-text-white has-background-black is-size-7 is-italic m-1"
>
{{ further.image.credits }}
</figcaption>
</div>
<figcaption
class=
"p-1 has-text-white has-background-black is-size-7 is-italic"
>
{{ further.image.credits }}
</figcaption>
{% endif %}
</figure>
</a>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment