From 3c21ccab78375152705bcc8aa402379d493ee9d8 Mon Sep 17 00:00:00 2001 From: bjarnef Date: Tue, 9 Jun 2015 00:45:15 +0200 Subject: [PATCH] Move search field out of table header Move search field out of table header in listview to give more space for content in listview. --- .../src/less/listview.less | 38 ++++++++++++++----- .../propertyeditors/listview/listview.html | 21 +++++----- 2 files changed, 37 insertions(+), 22 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/less/listview.less b/src/Umbraco.Web.UI.Client/src/less/listview.less index f033ee2d5b..afa1864e0b 100644 --- a/src/Umbraco.Web.UI.Client/src/less/listview.less +++ b/src/Umbraco.Web.UI.Client/src/less/listview.less @@ -35,24 +35,42 @@ padding: 0 0 20px 0 } -.umb-listview table form { - position: relative; - margin: 0 +/* listview search */ +.form-search { + .inner-addon { + position: relative; + + [class^="icon-"], [class*=" icon-"] { + position: absolute; + padding: 5px 8px; + pointer-events: none; + top: 0; + } + + input[type="text"] { + width: 190px; + } + } + + /* align icon */ + .left-addon [class^="icon-"], .left-addon [class*=" icon-"] { left: 0; right: inherit; } + .right-addon [class^="icon-"], .right-addon [class*=" icon-"] { right: 0; left: inherit; } + + /* add padding */ + .left-addon input[type="text"] { padding-left: 30px !important; padding-right: 6px; } + .right-addon input[type="text"] { padding-right: 30px; padding-left: 6px !important; } } -.umb-listview table form .icon-search { - position: absolute; - top: 8px; - left:5px; - color: @gray; - cursor:pointer; +.umb-listview table form { + position: relative; + margin: 0; } .umb-listview table input[type="text"] { background: none; - border: none; -webkit-transition: all .5s; -moz-transition: all .5s; + -o-transition: all .5s; transition: all .5s; width: 60px; padding: 4px 0 4px 20px; diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html index 599d8e5569..9f59653d51 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/listview/listview.html @@ -39,6 +39,13 @@ + + @@ -60,19 +67,12 @@ - - - @@ -95,14 +95,12 @@ - - -
-
- - -
-
+

There are no items show in the list.

{{result[column.alias]}}
+
-