| 1 | /************* |
| 2 | * Level Bar * |
| 3 | *************/ |
| 4 | levelbar { |
| 5 | block { |
| 6 | min-width: 32px; |
| 7 | min-height: 6px; |
| 8 | } |
| 9 | |
| 10 | &.vertical block { |
| 11 | min-width: 6px; |
| 12 | min-height: 32px; |
| 13 | } |
| 14 | |
| 15 | &:backdrop { transition: $backdrop_transition; } |
| 16 | |
| 17 | trough { |
| 18 | padding: 3px; |
| 19 | border-radius: 3px; |
| 20 | background-color: if($variant == 'light' ,transparentize(white,0.2),transparentize(white,0.8)); |
| 21 | box-shadow: 0px 0px 1px 1px rgba(0,0,0,0.1); |
| 22 | |
| 23 | &:backdrop { |
| 24 | background-color: if($variant == 'light' ,transparentize(white,0.4),transparentize(white,0.94)); |
| 25 | box-shadow: 0px 0px 1px 1px rgba(0,0,0,0.1); |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | &.horizontal.discrete block { margin: 0 1px; } |
| 30 | |
| 31 | &.vertical.discrete block { margin: 1px 0; } |
| 32 | |
| 33 | block { |
| 34 | border-radius: 2px; |
| 35 | |
| 36 | &:backdrop { box-shadow: none; } |
| 37 | |
| 38 | &.low { |
| 39 | background-color: $warning_color; |
| 40 | |
| 41 | &:backdrop { border-color: $warning_color; }; |
| 42 | } |
| 43 | |
| 44 | &.high, |
| 45 | &:not(.empty) { |
| 46 | background-color: $cyan; |
| 47 | |
| 48 | &:backdrop { border-color: $cyan; } |
| 49 | } |
| 50 | |
| 51 | &.full { |
| 52 | background-color: $success_color; |
| 53 | |
| 54 | &:backdrop { border-color: $success_color; }; |
| 55 | } |
| 56 | |
| 57 | &.empty { |
| 58 | background-color: if($variant == 'light' ,transparentize(black, 0.86),transparentize(black,0.65)); |
| 59 | box-shadow: none; |
| 60 | } |
| 61 | } |
| 62 | } |