Skip to content

Commit

Permalink
Merge pull request #58 from openzim/fix_css
Browse files Browse the repository at this point in the history
Enhance CSS for display of external links / iframe preview
  • Loading branch information
benoit74 authored Oct 31, 2024
2 parents 2e6b59a + e4f52a9 commit ea67cff
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions zimui/public/custom.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
a[href^="http://"],
a[href^="https://"]
{
/* modify all <a> tag so that the :after is centered */
display: inline-flex;
align-items: center;
}

a[href^="http://"]:after,
a[href^="https://"]:after
{
/* add an external link icon to all external links (not relative after HTML rewriting) */
content: '';
display: inline-block;
width: 10px;
Expand All @@ -9,19 +18,20 @@ a[href^="https://"]:after
background-size: contain;
background-repeat: no-repeat;
margin-left: 5px;
position: relative;
bottom: 0px;
right: 0px;
}

.zim-removed-video {
position: relative;
display: inline-block;
width: 100%;
height: auto;
display: flex;
justify-content: center;
}

.zim-removed-video a {
display: inline-flex;
position: relative;
}

.zim-removed-video::before {
.zim-removed-video a::before {
content: '';
position: absolute;
top: 0;
Expand Down

0 comments on commit ea67cff

Please sign in to comment.