Working on new search box design

This commit is contained in:
Torkel Ödegaard
2015-02-07 15:40:31 +01:00
parent 83bf68ecad
commit 8f4e440179
8 changed files with 93 additions and 68 deletions
+1 -1
View File
@@ -9,8 +9,8 @@
@import "singlestat.less";
@import "tightform.less";
@import "sidemenu.less";
@import "gfbox.less";
@import "navbar.less";
@import "gfbox.less";
@import "dashlist.less";
.row-control-inner {
+38 -22
View File
@@ -1,18 +1,29 @@
.gf-box.search-container {
left: 54px;
top: 33px;
margin: 15px;
z-index: 1000;
position: fixed;
width: 700px;
box-shadow: 0px 0px 55px 0px black;
padding: 10px;
font-size: 16px;
}
// Search
.grafana-search-panel {
.search-field-wrapper {
padding: 6px 10px;
input {
width: 100%;
}
button {
margin: 0 4px 0 0;
}
> span {
display: block;
overflow: hidden;
padding-right: 25px;
}
.search-field-wrapper {
padding-bottom: 10px;
input {
width: 100%;
padding: 18px 8px;
box-sizing: border-box;
}
button {
margin: 0 4px 0 0;
}
> span {
display: block;
overflow: hidden;
}
}
@@ -49,7 +60,7 @@
padding-right: 10px;
color: @grafanaListHighlightContrast;
}
}
}
.search-result-item:nth-child(odd) {
background-color: @grafanaListAccent;
@@ -60,7 +71,6 @@
white-space: nowrap;
border-bottom: 1px solid @grafanaListBorderBottom;
border-top: 1px solid @grafanaListBorderTop;
border-left: 1px solid @grafanaListBorderBottom;
}
.search-result-tags {
@@ -78,14 +88,20 @@
}
}
.search-tagview-switch {
.search-switches {
position: absolute;
top: 6px;
right: 24px;
color: darken(@linkColor, 30%);
&.active {
color: @linkColor;
top: 19px;
color: @textColor;
right: 21px;
a {
color: @textColor;
&.active {
color: @linkColor;
}
}
}
.search-button-row {
padding-top: 20px;
}