From 2ff32c2c792c3ac4a7dc5b7409536cd310cd3445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 26 Sep 2018 23:08:56 +0200 Subject: [PATCH] Make input file fit in the parent box issue7734 review49601002 --- src/sao.less | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/sao.less b/src/sao.less index 730024e0e6..19ce4a641a 100644 --- a/src/sao.less +++ b/src/sao.less @@ -125,10 +125,19 @@ input[type='color'] { } .input-file { - & input[type='file'] { + > input[type='file'] { position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; opacity: 0; cursor: pointer; + + li& { + top: auto; + height: auto; + } } }