Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance CSS for display of external links / iframe preview #58

Merged
merged 1 commit into from
Oct 31, 2024
Merged
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
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