scss: force height of file input when it displays a thumbnail (#40712)
gitea-wip/publik-base-theme/pipeline/head There was a failure building this commit Details
gitea/publik-base-theme/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Frédéric Péters 2020-03-13 10:00:21 +01:00
parent 41caec29f5
commit dffc069e34
1 changed files with 9 additions and 1 deletions

View File

@ -439,7 +439,6 @@ span.geoloc-error {
.fileinfo {
line-height: 1.5em;
height: 100%;
}
div.fileinfo a.remove {
@ -595,6 +594,15 @@ div.file-upload-widget {
}
&.widget-readonly {
div.file-button {
// sizing is a bit complicated for image thumbnails, we have
// .file-button > .fileinfo > img
// .file-button is set to a fixed height
// .fileinfo is set to use all of it (height: 100%)
// img is set to fill whatever is possible (max-height: 100%)
height: 150px;
.fileinfo.thumbnail {
height: 100%;
}
div.widget-message {
display: none;
}