Showing the session log some love. Replaced slider with checkbox bar.

This commit is contained in:
Andy Phillipson 2017-07-19 16:42:15 -04:00
commit adc81ffa4c
No known key found for this signature in database
GPG key ID: D813A67D567D6C88
16 changed files with 192 additions and 212 deletions

View file

@ -1,2 +1 @@
@import "gravatar";
@import "rzslider";

View file

@ -1,47 +0,0 @@
.stable-slider.rzslider .rz-bar {
background: $v-light-gray;
height: 2px;
}
.stable-slider.rzslider .rz-selection {
background: $v-accent-color;
}
.stable-slider.rzslider .rz-pointer {
width: 20px;
height: 20px;
top: -9px;
bottom: 0;
background-color: $v-accent-color;
}
.stable-slider.rzslider .rz-pointer:after {
display: none;
}
.stable-slider.rzslider .rz-bubble {
bottom: 14px;
}
.stable-slider.rzslider .rz-limit {
font-weight: bold;
color: $v-accent-color;
}
.stable-slider.rzslider .rz-tick {
width: 10px;
height: 10px;
margin-left: 4px;
border-radius: 50%;
background: $v-light-gray;
top: -1px;
}
.stable-slider.rzslider .rz-tick.rz-selected {
background: $v-accent-color;
}
.stable-slider.rzslider .rz-tick-legend {
top: 20px;
font-size: 12px;
color: $v-dark-gray;
}

View file

@ -1,9 +1,10 @@
#check-bar {
$bar-widths: (
info: 3rem,
warn: 37%,
error: 65%,
debug: 104%,
// defined by user, example:
// error: 10%,
// warn: 37%,
// info: 65%,
// debug: 90%
);
.item {
padding: 40px;
@ -17,16 +18,17 @@
}
.check-bar {
position: relative;
.initial-bar-default {
border: 2px solid $v-success-color;
width: 0%;
top: 40px;
z-index: 99;
border-radius: 10px;
position: absolute;
}
.initial-bar {
}
@each $name, $bar-width in $bar-widths {
.initial-bar {
width: 0%;
border: 2px solid $v-success-color;
top: 40px;
left: -7px;
z-index: 99;
border-radius: 10px;
position: absolute;
}
.fill-bar-#{$name} {
width: $bar-width !important;
transition: width .2s;

View file

@ -7,62 +7,82 @@ log-options {
padding-right: .75rem;
}
.log-options {
.option {
border: 0;
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
margin-bottom: 1px;
overflow: visible;
.entry {
border: 0;
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
margin-bottom: 1px;
overflow: visible;
> i {
color: $v-accent-color;
padding: 0 0 5px 0;
margin-left: -5px;
> i {
color: $v-accent-color;
padding: 0 0 5px 0;
margin-left: -5px;
> img {
height: 39px;
width: 39px;
padding: 4px;
}
> img {
height: 39px;
width: 39px;
padding: 4px;
}
}
.log-options-inner {
display: flex;
position: relative;
padding-top: 16px;
padding-bottom: 16px;
&::after {
display: block;
position: absolute;
width: 100%;
height: 1px;
background: $border-color;
bottom: 0;
right: 0;
content: '';
}
.check {
padding: 0 1.2rem;
}
}
.log-options-details {
flex-grow: 1;
.log-options-name {
padding-bottom: 5px;
}
}
.log-level-slider {
width: 90%;
margin: auto;
font-size: 12px;
height: 90px;
}
}
.entry-inner {
display: flex;
position: relative;
padding-top: 16px;
padding-bottom: 16px;
&::after {
display: block;
position: absolute;
width: 100%;
height: 1px;
background: $border-color;
bottom: 0;
right: 0;
content: '';
}
}
.entry-details {
flex-grow: 1;
.entry-name {
padding-bottom: 5px;
}
}
#check-bar {
$bar-widths: (
// Order must match weight, see services/historicLog.js
error: 10%,
warn: 35%,
info: 65%,
debug: 90%
);
.check-bar {
.initial-bar {
border: 2px solid $v-accent-color;
}
@each $name, $bar-width in $bar-widths {
.fill-bar-#{$name} {
width: $bar-width !important;
}
}
}
.head .checkbox-icon {
width: 22px;
height: 22px;
top: 0;
}
.checkbox-icon {
width: 10px;
height: 10px;
top: 6px;
}
}
}

View file

@ -119,9 +119,19 @@
color: #00901B;
}
}
.log-text {
.log-bg {
background: white;
}
.log-entry {
font-size: 12px;
line-height: 18px;
border: none;
}
.log-timestamp {
font-weight: bold;
}
.log-level {
font-weight: bold;
}
}

View file

@ -47,4 +47,5 @@
@import "integrations/integrations";
@import "custom-amount";
@import "includes/pin";
@import "includes/logOptions";
@import "includes/checkBar";