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

Fix missing icons and wrong styling for download menu #262

Merged
merged 3 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion Configuration/TypoScript/Plugins/kitodo.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ plugin.tx_dlf_imagemanipulationtool {
plugin.tx_dlf_pdfdownloadtool < plugin.tx_dlf_toolbox
plugin.tx_dlf_pdfdownloadtool {
settings {
tools = pdfdownloadtool
fileGrpsImageDownload = DEFAULT
tools = pdfdownloadtool,imagedownloadtool,fulltextdownloadtool
}
}

Expand Down
19 changes: 19 additions & 0 deletions Resources/Private/Less/components/controls.less
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@
&.download-fulltext:before {
background-position: -280px -40px;
}
&.no-fulltext:before {
background-position: -280px -40px;
}
&.local-presentation:before {
background-position: -440px -80px;
}
Expand All @@ -137,9 +140,25 @@
&.persistence-page:before {
background-position: -320px -80px;
}
&.tx-dlf-tools-imagedownload:before {
background-position: -320px -40px;
}
&.tx-dlf-tools-imagedownload {
// override opacity from span
// because tx-dlf-tools-imagedownload is the only one here with span
opacity: 1;
// move over the empty space the hidden `::before` left:
a {
position: relative;
left: -40px;
}
}
}
span {
opacity: 0.5;
::before {
display: none;
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/Css/allStyles.css

Large diffs are not rendered by default.