From 4ce65d59ca91871cfd126497158200a818720bce Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 13:30:08 +0200 Subject: Adding upstream version 0.13.1. Signed-off-by: Daniel Baumann --- asset/css/file-element.less | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 asset/css/file-element.less (limited to 'asset/css/file-element.less') diff --git a/asset/css/file-element.less b/asset/css/file-element.less new file mode 100644 index 0000000..9d76d03 --- /dev/null +++ b/asset/css/file-element.less @@ -0,0 +1,40 @@ +form .uploaded-files { + list-style-type: none; + padding: 0; + margin: 0; + + > li:not(:last-of-type) { + margin-bottom: .5em; + } + + button[type="submit"].remove-uploaded-file { + .icon { + font-size: 1.2em; + } + + &:focus, &:hover { + cursor: pointer; + + .icon { + color: red; + } + } + } + + // text-overflow: ellipsis layout rules, yes, exclusively + > li { + display: flex; + + > button[type="submit"].remove-uploaded-file { + display: inline-flex; + flex: 1 1 auto; + width: 0; + + > span { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + } + } +} -- cgit v1.2.3