Skip to content

Commit 418ebb2

Browse files
committed
List/toolbar search: Better styling for advanced search icon
1 parent d55ed95 commit 418ebb2

5 files changed

Lines changed: 78 additions & 37 deletions

File tree

‎ui/scripts/ui/widgets/listView.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@
862862
$search.append('<div id="basic_search" class="button search"></div>');
863863

864864
if (listViewData.advSearchFields != null) {
865-
$search.append(
865+
$search.prepend(
866866
$('<div>').attr({
867867
id: 'advanced_search'
868868
})

‎ui/stylesheets/_list-view.scss‎

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,27 +20,47 @@
2020
// Advanced search field
2121
#advanced_search {
2222
float: right;
23-
.icon {
24-
@include csui-sprite(61, 167);
2523

24+
$border: 1px solid #808080;
25+
26+
.icon {
2627
position: relative;
27-
width: 15px;
28-
height: 15px;
29-
left: 215px;
30-
top: 10px;
28+
width: $csui-toolbar-field-height;
29+
height: $csui-toolbar-field-height;
30+
left: -10px;
3131
cursor: pointer;
3232
z-index: 10;
33+
border-radius: 0 3px 3px 0;
34+
text-align: center;
35+
border: $border;
36+
border-left: none;
37+
38+
&:hover {
39+
box-shadow: inset 0px 0px 7px lighten(black, 30%);
40+
}
41+
42+
@include linear-gradient(white, #9E9E9E);
43+
44+
&:after {
45+
@include icon($caret-down);
46+
47+
font-size: 15px;
48+
position: relative;
49+
top: $csui-toolbar-field-height / 4;
50+
}
3351
}
3452

3553
.form-container {
3654
@include csui-dialog;
3755
@include csui-form;
3856

39-
width: 400px;
40-
margin-top: -15px;
41-
margin-left: -160px;
42-
opacity: 0.9;
57+
$width: 400px;
58+
59+
width: $width;
60+
margin-top: -$csui-toolbar-field-height;
61+
margin-left: -$width - 10;
4362
padding-top: 0px;
63+
border: $border;
4464

4565
form {
4666
display: inline-block;

‎ui/stylesheets/cloudstack.css‎

Lines changed: 42 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4990,7 +4990,7 @@ input[type=text], input[type=password] {
49904990
padding: 10px;
49914991
margin-top: 10px;
49924992
margin-bottom: 10px;
4993-
border: 2px solid gray;
4993+
border: 1px solid gray;
49944994
text-indent: 15px;
49954995
padding-right: 15px; }
49964996
input[type=text]:focus, input[type=password]:focus {
@@ -5319,20 +5319,20 @@ ul.ui-tabs-nav {
53195319
cursor: pointer;
53205320
text-align: center;
53215321
float: right;
5322-
margin-right: 10px; }
5322+
margin-left: 10px; }
53235323
.dashboard.admin .sub.alerts .top .button.action:hover {
53245324
box-shadow: inset 0 0 10px black; }
53255325
.dashboard.admin .sub.alerts .top input, .dashboard.admin .sub.alerts .top label, .dashboard.admin .sub.alerts .top select {
53265326
float: left;
53275327
margin: 0 10px 0 10px;
53285328
padding-top: 6px;
53295329
padding-bottom: 6px;
5330-
font-size: 12px; }
5330+
font-size: 12px;
5331+
height: 35px; }
53315332
.dashboard.admin .sub.alerts .top label {
53325333
margin-right: 0px; }
53335334
.dashboard.admin .sub.alerts .top .search-bar {
5334-
float: right;
5335-
margin-right: 25px; }
5335+
float: right; }
53365336
.dashboard.admin .sub.alerts .top .title {
53375337
float: left;
53385338
padding-top: 8px; }
@@ -5385,20 +5385,20 @@ ul.ui-tabs-nav {
53855385
cursor: pointer;
53865386
text-align: center;
53875387
float: right;
5388-
margin-right: 10px; }
5388+
margin-left: 10px; }
53895389
.dashboard.admin .head .top .button.action:hover {
53905390
box-shadow: inset 0 0 10px black; }
53915391
.dashboard.admin .head .top input, .dashboard.admin .head .top label, .dashboard.admin .head .top select {
53925392
float: left;
53935393
margin: 0 10px 0 10px;
53945394
padding-top: 6px;
53955395
padding-bottom: 6px;
5396-
font-size: 12px; }
5396+
font-size: 12px;
5397+
height: 35px; }
53975398
.dashboard.admin .head .top label {
53985399
margin-right: 0px; }
53995400
.dashboard.admin .head .top .search-bar {
5400-
float: right;
5401-
margin-right: 25px; }
5401+
float: right; }
54025402
.dashboard.admin .head .top .title {
54035403
float: left;
54045404
margin-top: 8px; }
@@ -6098,24 +6098,43 @@ ul.ui-tabs-nav {
60986098
.list-view #advanced_search {
60996099
float: right; }
61006100
.list-view #advanced_search .icon {
6101-
background: url(../images/sprites.png) no-repeat -61px -167px;
61026101
position: relative;
6103-
width: 15px;
6104-
height: 15px;
6105-
left: 215px;
6106-
top: 10px;
6102+
width: 35px;
6103+
height: 35px;
6104+
left: -10px;
61076105
cursor: pointer;
6108-
z-index: 10; }
6106+
z-index: 10;
6107+
border-radius: 0 3px 3px 0;
6108+
text-align: center;
6109+
border: 1px solid gray;
6110+
border-left: none;
6111+
background-color: white;
6112+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, white), color-stop(100%, #9e9e9e));
6113+
background-image: -webkit-linear-gradient(white, #9e9e9e);
6114+
background-image: linear-gradient(white, #9e9e9e); }
6115+
.list-view #advanced_search .icon:hover {
6116+
box-shadow: inset 0px 0px 7px #4d4d4d; }
6117+
.list-view #advanced_search .icon:after {
6118+
font-family: FontAwesome;
6119+
font-weight: normal;
6120+
font-style: normal;
6121+
text-decoration: inherit;
6122+
-webkit-font-smoothing: antialiased;
6123+
*margin-right: .3em;
6124+
content: "\f0d7";
6125+
font-size: 15px;
6126+
position: relative;
6127+
top: 8.75px; }
61096128
.list-view #advanced_search .form-container {
61106129
background: white;
61116130
box-shadow: 0px 2px 10px black;
61126131
position: absolute;
61136132
padding: 20px;
61146133
width: 400px;
6115-
margin-top: -15px;
6116-
margin-left: -160px;
6117-
opacity: 0.9;
6118-
padding-top: 0px; }
6134+
margin-top: -35px;
6135+
margin-left: -410px;
6136+
padding-top: 0px;
6137+
border: 1px solid gray; }
61196138
.list-view #advanced_search .form-container .ui-dialog-titlebar {
61206139
*zoom: 1;
61216140
display: block;
@@ -6976,20 +6995,20 @@ body {
69766995
cursor: pointer;
69776996
text-align: center;
69786997
float: right;
6979-
margin-right: 10px; }
6998+
margin-left: 10px; }
69806999
.toolbar .button.action:hover {
69817000
box-shadow: inset 0 0 10px black; }
69827001
.toolbar input, .toolbar label, .toolbar select {
69837002
float: left;
69847003
margin: 0 10px 0 10px;
69857004
padding-top: 6px;
69867005
padding-bottom: 6px;
6987-
font-size: 12px; }
7006+
font-size: 12px;
7007+
height: 35px; }
69887008
.toolbar label {
69897009
margin-right: 0px; }
69907010
.toolbar .search-bar {
6991-
float: right;
6992-
margin-right: 25px; }
7011+
float: right; }
69937012
.toolbar .panel-controls {
69947013
display: none; }
69957014
.toolbar .button.refresh {

‎ui/stylesheets/csui/_form.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
padding: 10px;
6161
margin-top: 10px;
6262
margin-bottom: 10px;
63-
border: 2px solid gray;
63+
border: 1px solid gray;
6464
text-indent: 15px;
6565
padding-right: 15px;
6666

‎ui/stylesheets/csui/_toolbar.scss‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
$csui-toolbar-field-height: 35px;
2+
13
@mixin csui-toolbar {
24
@include row;
35

@@ -8,7 +10,7 @@
810
@include csui-button;
911

1012
float: right;
11-
margin-right: 10px;
13+
margin-left: 10px;
1214
}
1315

1416
input, label, select {
@@ -17,6 +19,7 @@
1719
padding-top: 6px;
1820
padding-bottom: 6px;
1921
font-size: 12px;
22+
height: $csui-toolbar-field-height;
2023
}
2124

2225
label {
@@ -25,6 +28,5 @@
2528

2629
.search-bar {
2730
float: right;
28-
margin-right: 25px;
2931
}
3032
}

0 commit comments

Comments
 (0)