mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
wip: explore logs styling
This commit is contained in:
parent
665ac229b6
commit
86bb36fe97
@ -1,3 +1,5 @@
|
|||||||
|
$column-horizontal-spacing: 10px;
|
||||||
|
|
||||||
.logs-panel-controls {
|
.logs-panel-controls {
|
||||||
display: flex;
|
display: flex;
|
||||||
background-color: $page-bg;
|
background-color: $page-bg;
|
||||||
@ -52,6 +54,7 @@
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
display: table;
|
display: table;
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
|
margin: 0 -(nth($panel-padding, 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
.logs-row {
|
.logs-row {
|
||||||
@ -59,8 +62,20 @@
|
|||||||
|
|
||||||
> div {
|
> div {
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
padding-left: 10px;
|
padding-right: $column-horizontal-spacing;
|
||||||
border: 1px solid transparent;
|
vertical-align: middle;
|
||||||
|
|
||||||
|
&:first-child {
|
||||||
|
padding-left: $column-horizontal-spacing;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
padding-left: $column-horizontal-spacing;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:nth-child(odd) {
|
||||||
|
background: $page-bg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,38 +108,57 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.logs-row__level {
|
.logs-row__level {
|
||||||
background-color: transparent;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 3px;
|
width: 12px;
|
||||||
padding: 0 !important;
|
|
||||||
|
&::after {
|
||||||
|
content: '';
|
||||||
|
display: block;
|
||||||
|
width: 12px;
|
||||||
|
height: 12px;
|
||||||
|
background-color: $gray-2;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
&--critical,
|
&--critical,
|
||||||
&--crit {
|
&--crit {
|
||||||
|
&::after {
|
||||||
background-color: #705da0;
|
background-color: #705da0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&--error,
|
&--error,
|
||||||
&--err {
|
&--err {
|
||||||
|
&::after {
|
||||||
background-color: #e24d42;
|
background-color: #e24d42;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&--warning,
|
&--warning,
|
||||||
&--warn {
|
&--warn {
|
||||||
|
&::after {
|
||||||
background-color: #eab839;
|
background-color: #eab839;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&--info {
|
&--info {
|
||||||
|
&::after {
|
||||||
background-color: #7eb26d;
|
background-color: #7eb26d;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&--debug {
|
&--debug {
|
||||||
|
&::after {
|
||||||
background-color: #1f78c1;
|
background-color: #1f78c1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&--trace {
|
&--trace {
|
||||||
|
&::after {
|
||||||
background-color: #6ed0e0;
|
background-color: #6ed0e0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.logs-row__duplicates {
|
.logs-row__duplicates {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
Loading…
Reference in New Issue
Block a user