Skip to content

Commit

Permalink
Merge pull request #262 from csidirop/bugfix/fixDownloadIcons
Browse files Browse the repository at this point in the history
Fix missing icons and wrong styling for download menu
  • Loading branch information
beatrycze-volk authored Dec 4, 2023
2 parents a9f8dc4 + a256375 commit d0d6b61
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
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.

0 comments on commit d0d6b61

Please sign in to comment.