sass refactoring and updating styles for list item elements

This commit is contained in:
Torkel Ödegaard
2017-11-23 12:54:12 +01:00
parent a1d47d36f6
commit 458f6fc4b2
13 changed files with 60 additions and 95 deletions

View File

@@ -14,11 +14,10 @@
.filter-table {
width: 100%;
border-collapse: collapse;
// table-layout: fixed;
}
.filter-table tr {
background: $grafanaListBackground;
background-color: $list-item-bg;
border-bottom: 3px solid $page-bg;
}

View File

@@ -8,22 +8,17 @@
}
.dashlist-link {
display: block;
margin: 5px;
padding: 7px;
background-color: $tight-form-bg;
border: $input-btn-border-width solid $input-label-border-color;
@include list-item();
.fa {
padding-top: 3px;
}
.dashlist-star {
float: right;
}
.fa-star {
color: $orange;
}
&:hover {
background-color: $tight-form-func-bg;
}
}

View File

@@ -139,7 +139,7 @@
}
.graph-legend-series:nth-child(odd) {
background-color: $grafanaListAccent;
background: $table-bg-accent;
}
.graph-legend-value {

View File

@@ -8,14 +8,7 @@
}
.pluginlist-link {
display: block;
margin: 5px;
padding: 7px;
background-color: $tight-form-bg;
&:hover {
background-color: $tight-form-func-bg;
}
@include list-item();
}
.pluginlist-icon {

View File

@@ -19,35 +19,6 @@
padding-right: 20px;
}
.singlestat-panel-table {
width: 100%;
td {
padding: 5px 10px;
white-space: nowrap;
text-align: right;
border-bottom: 1px solid $grafanaListBorderBottom;
}
th {
text-align: right;
padding: 5px 10px;
font-weight: bold;
color: $blue
}
td:first-child {
text-align: left;
}
tr:nth-child(odd) td {
background-color: $grafanaListAccent;
}
tr:last-child td {
border: none;
}
}
#flotGagueValue0 {
font-weight: bold; //please dont hurt me for this!
}

View File

@@ -27,9 +27,11 @@
margin-left: 0;
margin-bottom: 0;
}
ul > li {
display: inline; // Remove list-style and block-level defaults
}
ul > li > a {
float: left; // Collapse white-space
padding: 4px 12px;
@@ -109,7 +111,7 @@
}
.table-panel-header-bg {
background: $grafanaListAccent;
background: $list-item-bg;
border-top: 2px solid $body-bg;
border-bottom: 2px solid $body-bg;
height: 2.0em;

View File

@@ -120,21 +120,20 @@
}
.search-item {
display: flex;
height: 37px;
padding: 0px;
white-space: nowrap;
background-color: $tight-form-bg;
margin-bottom: 4px;
@include list-item();
@include left-brand-border();
display: flex;
height: 37px;
white-space: nowrap;
padding: 0px;
&:hover {
@include left-brand-border-gradient();
background-color: $tight-form-func-bg;
@include left-brand-border-gradient($gray-blue);
}
&.selected {
background-color: $tight-form-func-bg;
background: $list-item-hover-bg;
}
// .fa-star, .fa-star-o {
@@ -156,11 +155,10 @@
}
.search-item__body-title {
color: $grafanaListMainLinkColor;
color: $list-item-link-color;
}
.search-item__body-sub-title {
color: $grafanaListMainLinkColor;
color: $text-muted;
font-size: $font-size-sm;
line-height: 9pt;

View File

@@ -8,7 +8,7 @@
}
tr td {
background-color: $grafanaListBackground;
background-color: $list-item-bg;
padding: 5px 10px;
white-space: nowrap;
border-bottom: 4px solid $panel-bg;
@@ -37,7 +37,7 @@
display: block;
padding: 1px 10px;
line-height: 34px;
background-color: $tight-form-bg;
background-color: $list-item-bg;
margin-bottom: 4px;
cursor: pointer;
}