diff --git a/pagure/static/pagure.css b/pagure/static/pagure.css index f2a026c..1c2cd28 100644 --- a/pagure/static/pagure.css +++ b/pagure/static/pagure.css @@ -811,8 +811,37 @@ a.nav-link.btn{ font-size:0.9em; } +.opacity-100{ + opacity:1!important; +} + .autogenerated-comment p{ margin-bottom:0; } +.custom-file.comment-upload-browse{ + width:100%!important; + height:1.5em!important; +} + +.custom-file.comment-upload-browse .custom-file-control:lang(en)::before{ + content: "\f1c5\00a0\00a0 Browse"; + font-family: FontAwesome; + font-weight:bold; + color:#666; +} +.custom-file.comment-upload-browse .custom-file-control::before{ + height:1.5em; + padding:0.9em 1em; + line-height: 0.1em; + border-radius: 0.25rem; +} + +.custom-file.comment-upload-browse .custom-file-control{ + height:1.5em; + padding:0.9em 1em; + line-height: 0.1em; + color:#777; + border:0; +} diff --git a/pagure/static/upload.js b/pagure/static/upload.js index 632bdec..5d7e8ef 100644 --- a/pagure/static/upload.js +++ b/pagure/static/upload.js @@ -9,6 +9,7 @@ function doUpload(csrf_token, files) { $("#progress").show(); + $(".custom-file.comment-upload-browse").hide(); var $progressBar = $("#progress-bar"); // Gray out the form. @@ -78,12 +79,14 @@ function doUpload(csrf_token, files) { setTimeout( function(){ $("#progress").hide() + $(".custom-file.comment-upload-browse").show(); }, 1000 /* 1 000ms = 2 s */ ); }, error: function(data) { $("#progress").hide(); + $(".custom-file.comment-upload-browse").show(); var text = data.responseText; if ( !text || text === "" ) { text = '
An error occured when uploading your file. Could it be ' diff --git a/pagure/templates/_formhelper.html b/pagure/templates/_formhelper.html index 2e35fe3..ed06d4f 100644 --- a/pagure/templates/_formhelper.html +++ b/pagure/templates/_formhelper.html @@ -300,31 +300,14 @@ {{ comment.content | markdown | noJS | safe }} -