From 50c03aaba6c4193d78258c63f67d93701680e4ea Mon Sep 17 00:00:00 2001 From: ElenaMetelitsa <ami96@list.ru> Date: Mon, 6 Jul 2015 14:33:52 +0300 Subject: [PATCH] New button style --- media/css/load.css | 23 +++++++++++++++++++ ~dev_rating/application/views/base.twig | 1 + .../application/views/popup/support.twig | 4 +++- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 media/css/load.css diff --git a/media/css/load.css b/media/css/load.css new file mode 100644 index 000000000..caca2ba7e --- /dev/null +++ b/media/css/load.css @@ -0,0 +1,23 @@ +.button-load { + width: 37px; + height: 37px; + margin: 0; + padding:0; + border: 0; + background-image: url(http://i.imgur.com/8BgaE65.png); + text-indent: -1000em; + cursor: pointer; + cursor: hand;} +#loading {/*display:none;*/ + background-image: url(http://i.imgur.com/n5JjOM9.gif); + width: 37px; + height: 37px; + margin: 0; + padding:0; + border: 0; + text-indent: -1000em; + cursor: pointer; + cursor: hand; +} + +/*url(вЂhttp://i.imgur.com/8BgaE65.png’) no-repeat center top;*/ diff --git a/~dev_rating/application/views/base.twig b/~dev_rating/application/views/base.twig index 097569f8b..ee5b5ae17 100644 --- a/~dev_rating/application/views/base.twig +++ b/~dev_rating/application/views/base.twig @@ -41,6 +41,7 @@ <link href='https://fonts.googleapis.com/css?family=PT+Sans&subset=cyrillic-ext,latin' rel='stylesheet' type='text/css'> {{ HTML.style('static/css/common.css')|raw }} + {{ HTML.style('static/css/load.css')|raw }} {# HTML.style('static/css/messages.css') DEPRECATED: diff --git a/~dev_rating/application/views/popup/support.twig b/~dev_rating/application/views/popup/support.twig index 178f4c31a..58ba1c28a 100644 --- a/~dev_rating/application/views/popup/support.twig +++ b/~dev_rating/application/views/popup/support.twig @@ -20,7 +20,9 @@ <textarea id="message" class="defaultForm FullWidth marginBetween" placeholder="Сообщение"></textarea> <form enctype="multipart/form-data" action="{{ URL.site("handler/uploader/imageupload") }}" method="POST" name="loadPicture" id="loadPicture" target="hiddenframe"> - <input id="imageFile" name="imageFile" type="file"> + <input class="button-load" id="imageFile" name="imageFile" type="file"> + <img src="http://i.imgur.com/n5JjOM9.gif"> + <div id="errormes"></div> </form> <iframe id="hiddenframe" name="hiddenframe" style="width:0px; height:0px; border:0px"></iframe> -- GitLab