2021-04-15 09:14:07 -07:00
|
|
|
/* This file contains styles shared by both light & dark themes.
|
|
|
|
Style rules can be customised using SCSS variables set in dark.scss & light.sccs.
|
|
|
|
How to add a rule that uses different values for each theme.
|
|
|
|
|
|
|
|
1. Add a variable in light.scss & dark.scss files, it needs to be set before
|
|
|
|
"@import ./shared" statement.
|
|
|
|
Example:
|
|
|
|
|
|
|
|
$foo = '#000';
|
2022-07-21 09:05:41 -07:00
|
|
|
|
2021-04-15 09:14:07 -07:00
|
|
|
2. Add a style rule in _shared.scss (this file) that uses new variable.
|
|
|
|
Example:
|
|
|
|
|
|
|
|
.my-class { background-color: $foo; }
|
|
|
|
|
|
|
|
Instead of setting custom variables you can re-use any of bootstrap SCSS variables
|
|
|
|
as they are all imported and ready.
|
|
|
|
Resources:
|
|
|
|
- https://getbootstrap.com/docs/4.6/getting-started/theming/
|
|
|
|
- https://github.com/twbs/bootstrap/blob/v4.6.0/scss/_variables.scss
|
|
|
|
*/
|
|
|
|
|
|
|
|
.alert-cell {
|
|
|
|
color: $alert-cell-color;
|
|
|
|
background: $rule-cell-bg;
|
|
|
|
}
|
|
|
|
|
|
|
|
.rule-cell {
|
|
|
|
background-color: $rule-cell-bg;
|
|
|
|
}
|
|
|
|
|
|
|
|
.config-yaml {
|
|
|
|
display: block;
|
|
|
|
padding: 10px;
|
|
|
|
font-size: 13px;
|
|
|
|
color: $config-yaml-color;
|
|
|
|
word-break: break-all;
|
|
|
|
background-color: $config-yaml-bg;
|
|
|
|
border: 1px solid $config-yaml-border;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.query-stats {
|
|
|
|
flex-grow: 1;
|
|
|
|
font-size: 0.7rem;
|
|
|
|
color: $query-stats-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.metrics-explorer.modal-dialog {
|
|
|
|
max-width: 750px;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
}
|
2023-01-31 06:49:38 -08:00
|
|
|
|
2021-04-15 09:14:07 -07:00
|
|
|
.metrics-explorer .metric {
|
|
|
|
cursor: pointer;
|
|
|
|
margin: 0;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
2023-01-31 06:49:38 -08:00
|
|
|
|
2021-04-15 09:14:07 -07:00
|
|
|
.metrics-explorer .metric:hover {
|
|
|
|
background: $metrics-explorer-bg;
|
|
|
|
}
|
2023-01-31 06:49:38 -08:00
|
|
|
|
2022-07-21 09:05:41 -07:00
|
|
|
button.expression-input-action-btn {
|
2021-04-15 09:14:07 -07:00
|
|
|
color: $input-group-addon-color;
|
|
|
|
background-color: $input-group-addon-bg;
|
|
|
|
border: $input-border-width solid $input-group-addon-border-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.graph-controls button.clear-time-btn,
|
|
|
|
.table-controls button.clear-time-btn {
|
|
|
|
background-color: $input-bg;
|
|
|
|
border: $input-border-width solid $input-border-color;
|
|
|
|
border-left: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: darken($secondary, 10%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
button.execute-btn {
|
|
|
|
width: 84px;
|
|
|
|
border: $input-border-width solid darken($primary, 5%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.expression-input .cm-expression-input {
|
|
|
|
border: $input-border-width solid $input-border-color;
|
|
|
|
flex: 1 1 auto;
|
|
|
|
padding: 4px 0 0 8px;
|
|
|
|
font-size: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-content {
|
|
|
|
border-left: 1px solid $nav-tabs-border-color;
|
|
|
|
border-right: 1px solid $nav-tabs-border-color;
|
|
|
|
border-bottom: 1px solid $nav-tabs-border-color;
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* bootstrap-dark seems to break overflow on modals, making them unscrollable
|
|
|
|
this fixes it by allowing overflow and enabling scrolling */
|
|
|
|
.modal.show {
|
|
|
|
overflow-y: auto;
|
2020-06-27 00:12:11 -07:00
|
|
|
}
|
|
|
|
|
2019-10-17 05:38:09 -07:00
|
|
|
.panel {
|
2020-01-07 07:12:38 -08:00
|
|
|
margin-bottom: 20px;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
2022-02-01 06:39:35 -08:00
|
|
|
.navbar-brand img {
|
|
|
|
padding-right: 1rem;
|
|
|
|
height: 1.9rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-brand {
|
|
|
|
margin-top: 4px;
|
|
|
|
}
|
|
|
|
|
2023-01-31 06:49:38 -08:00
|
|
|
input[type='checkbox']:checked+label {
|
2022-08-01 06:28:09 -07:00
|
|
|
color: $checked-checkbox-color;
|
2019-10-23 13:18:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.custom-control-label {
|
|
|
|
cursor: pointer;
|
2020-01-07 07:12:38 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.togglers-wrapper .form-group {
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
[for$='-toggler'].custom-control-label::before,
|
|
|
|
[for$='-toggler'].custom-control-label::after {
|
|
|
|
top: 0.28rem;
|
|
|
|
left: -1.3rem;
|
|
|
|
width: 1.12rem;
|
|
|
|
height: 1.12rem;
|
2019-10-23 13:18:41 -07:00
|
|
|
}
|
|
|
|
|
2019-11-02 08:53:32 -07:00
|
|
|
.capitalize-title::first-letter {
|
2020-01-07 07:12:38 -08:00
|
|
|
text-transform: capitalize;
|
2019-11-02 08:53:32 -07:00
|
|
|
}
|
|
|
|
|
2021-03-31 10:16:37 -07:00
|
|
|
/* Using a more specific selector here to be able to override Bootstrap's default input group styles. */
|
|
|
|
.input-group.expression-input {
|
2020-01-07 07:12:38 -08:00
|
|
|
margin-bottom: 10px;
|
2021-03-31 10:16:37 -07:00
|
|
|
/* Prevent the input group from wrapping around when the editor content is too long for a line. */
|
|
|
|
flex-wrap: nowrap;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
2021-09-08 12:21:13 -07:00
|
|
|
.alert {
|
|
|
|
padding: 10px;
|
|
|
|
margin-bottom: .2rem;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.nav-tabs .nav-link {
|
2020-01-07 07:12:38 -08:00
|
|
|
cursor: pointer;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.tab-content .alert {
|
2020-01-07 07:12:38 -08:00
|
|
|
margin-bottom: 0;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.data-table.table {
|
2020-01-07 07:12:38 -08:00
|
|
|
margin: 10px 0 2px 0;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
2023-01-31 06:49:38 -08:00
|
|
|
.data-table>tbody>tr>td {
|
2020-01-07 07:12:38 -08:00
|
|
|
padding: 5px 0 5px 8px;
|
|
|
|
font-size: 0.8em;
|
|
|
|
overflow: hidden;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
2023-01-31 06:49:38 -08:00
|
|
|
.histogram-y-wrapper {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
align-items: flex-start;
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin: 15px 0;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.histogram-y-labels {
|
|
|
|
height: 200px;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
.histogram-y-label {
|
|
|
|
margin-right: 8px;
|
|
|
|
height: 25%;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.histogram-x-wrapper {
|
|
|
|
flex: 1 1 auto;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.histogram-x-labels {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.histogram-x-label {
|
|
|
|
position: relative;
|
|
|
|
margin-top: 5px;
|
|
|
|
width: 25%;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.histogram-container {
|
|
|
|
margin-top: 9px;
|
|
|
|
position: relative;
|
|
|
|
height: 200px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.histogram-axes {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border-bottom: 1px solid $histogram-chart-axis-color;
|
|
|
|
border-left: 1px solid $histogram-chart-axis-color;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.histogram-y-grid {
|
|
|
|
position: absolute;
|
|
|
|
border-bottom: 1px dashed $histogram-chart-grid-color;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.histogram-y-tick {
|
|
|
|
position: absolute;
|
|
|
|
border-bottom: 1px solid $histogram-chart-axis-color;
|
|
|
|
left: -5px;
|
|
|
|
height: 0px;
|
|
|
|
width: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.histogram-x-grid {
|
|
|
|
position: absolute;
|
|
|
|
border-left: 1px dashed $histogram-chart-grid-color;
|
|
|
|
height: 100%;
|
|
|
|
width: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.histogram-x-tick {
|
|
|
|
position: absolute;
|
|
|
|
border-left: 1px solid $histogram-chart-axis-color;
|
|
|
|
height: 5px;
|
|
|
|
width: 0;
|
|
|
|
bottom: -5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.histogram-bucket-slot {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.histogram-bucket {
|
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
bottom: 0;
|
|
|
|
// background-color: #9090ff;
|
|
|
|
// border: 1px solid #aaaaff;
|
|
|
|
background-color: #2db453;
|
|
|
|
border: 1px solid #77de94;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.histogram-bucket-slot:hover {
|
|
|
|
background-color: $histogram-chart-hover-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.histogram-bucket-slot:hover .histogram-bucket {
|
|
|
|
background-color: #88e1a1;
|
|
|
|
border: 1px solid #77de94;
|
|
|
|
}
|
|
|
|
|
2019-10-17 05:38:09 -07:00
|
|
|
.autosuggest-dropdown {
|
2020-01-07 07:12:38 -08:00
|
|
|
position: absolute;
|
|
|
|
border: 1px solid #ced4da;
|
|
|
|
background-color: #fff;
|
|
|
|
color: #495057;
|
|
|
|
font-size: 1rem;
|
|
|
|
z-index: 1000;
|
|
|
|
left: 56px;
|
|
|
|
margin-top: -6px;
|
2019-11-03 03:47:47 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.autosuggest-dropdown-list {
|
2020-01-07 07:12:38 -08:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
2019-11-03 03:47:47 -08:00
|
|
|
.autosuggest-dropdown-list li {
|
2020-01-07 07:12:38 -08:00
|
|
|
width: 100%;
|
|
|
|
padding: 0.25rem 1.5rem;
|
|
|
|
clear: both;
|
|
|
|
white-space: nowrap;
|
|
|
|
background-color: transparent;
|
|
|
|
border: 0;
|
|
|
|
display: block;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
2019-11-03 03:47:47 -08:00
|
|
|
.autosuggest-dropdown-list li.autosuggest-dropdown-header {
|
2020-01-07 07:12:38 -08:00
|
|
|
background-color: #bfdeff;
|
|
|
|
font-size: 10px;
|
|
|
|
line-height: 1.5;
|
|
|
|
text-transform: uppercase;
|
|
|
|
text-align: center;
|
2019-10-26 10:50:22 -07:00
|
|
|
}
|
|
|
|
|
2020-01-07 07:12:38 -08:00
|
|
|
.graph-controls,
|
|
|
|
.table-controls {
|
|
|
|
margin-bottom: 10px;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
2020-01-07 07:12:38 -08:00
|
|
|
.graph-controls input,
|
|
|
|
.table-controls input {
|
|
|
|
text-align: center;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.graph-controls .range-input input {
|
2020-01-07 07:12:38 -08:00
|
|
|
width: 50px;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
2019-12-17 01:50:58 -08:00
|
|
|
.time-input input {
|
2020-01-07 07:12:38 -08:00
|
|
|
border-right: none;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
2019-12-17 01:50:58 -08:00
|
|
|
.time-input {
|
2020-01-07 07:12:38 -08:00
|
|
|
width: 270px !important;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.graph-controls input.resolution-input {
|
2020-01-07 07:12:38 -08:00
|
|
|
width: 90px;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
2023-01-31 06:49:38 -08:00
|
|
|
.graph-controls> :not(:first-child) {
|
2020-01-07 07:12:38 -08:00
|
|
|
margin-left: 20px;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
2021-06-15 13:50:01 -07:00
|
|
|
.graph-selected-exemplar {
|
|
|
|
position: relative;
|
|
|
|
border: 1px solid $nav-tabs-border-color;
|
|
|
|
margin: 15px 55px;
|
|
|
|
font-size: 0.75em;
|
|
|
|
padding: 10px 10px;
|
|
|
|
}
|
|
|
|
|
2019-10-17 05:38:09 -07:00
|
|
|
.graph-legend {
|
2021-06-15 13:50:01 -07:00
|
|
|
margin: 15px 55px;
|
2020-01-07 07:12:38 -08:00
|
|
|
font-size: 0.75em;
|
|
|
|
padding: 10px 5px;
|
|
|
|
display: inline-block;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
2019-11-24 04:14:57 -08:00
|
|
|
.legend-item {
|
2020-01-07 07:12:38 -08:00
|
|
|
cursor: pointer;
|
|
|
|
display: flex;
|
|
|
|
padding: 0 5px;
|
|
|
|
border-radius: 3px;
|
2020-02-11 06:25:39 -08:00
|
|
|
line-height: 1.7;
|
|
|
|
}
|
2023-01-31 06:49:38 -08:00
|
|
|
|
2020-02-11 06:25:39 -08:00
|
|
|
.legend-item div {
|
|
|
|
flex-wrap: wrap;
|
2019-11-24 04:14:57 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.legend-swatch {
|
2020-02-11 06:25:39 -08:00
|
|
|
min-width: 7px;
|
2020-01-07 07:12:38 -08:00
|
|
|
height: 7px;
|
|
|
|
outline-offset: 1px;
|
|
|
|
outline: 1.5px solid #ccc;
|
2020-02-11 06:25:39 -08:00
|
|
|
margin: 6px 8px 2px 0;
|
2020-01-07 07:12:38 -08:00
|
|
|
display: inline-block;
|
2019-11-24 04:14:57 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.legend-item:hover {
|
2020-01-07 07:12:38 -08:00
|
|
|
background: rgba(0, 0, 0, 0.18);
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.legend-metric-name {
|
2020-01-07 07:12:38 -08:00
|
|
|
margin-right: 1px;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
2022-09-20 05:30:24 -07:00
|
|
|
.legend-label-container:hover {
|
|
|
|
background-color: #add6ff;
|
|
|
|
border-radius: 3px;
|
|
|
|
padding-bottom: 1px;
|
|
|
|
color: #495057;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2019-10-17 05:38:09 -07:00
|
|
|
.legend-label-name {
|
2020-01-07 07:12:38 -08:00
|
|
|
font-weight: bold;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.graph {
|
2020-01-07 07:12:38 -08:00
|
|
|
margin: 0 5px 0 5px;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.graph-chart {
|
2020-01-07 07:12:38 -08:00
|
|
|
height: 500px;
|
|
|
|
width: 100%;
|
|
|
|
/* This is picked up by Flot's axis label font renderer,
|
2019-10-17 05:38:09 -07:00
|
|
|
which ignores "color" and uses "fill" instead. */
|
2020-01-07 07:12:38 -08:00
|
|
|
fill: #495057;
|
|
|
|
font-size: 0.8em;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.graph-chart .flot-overlay {
|
2020-01-07 07:12:38 -08:00
|
|
|
cursor: crosshair;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
2023-01-31 06:49:38 -08:00
|
|
|
.histogram-tooltip,
|
2019-10-17 05:38:09 -07:00
|
|
|
.graph-tooltip {
|
2020-01-07 07:12:38 -08:00
|
|
|
background: rgba(0, 0, 0, 0.8);
|
|
|
|
color: #fff;
|
|
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
|
|
font-size: 12px;
|
|
|
|
white-space: nowrap;
|
|
|
|
padding: 8px;
|
|
|
|
border-radius: 3px;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.graph-tooltip .labels {
|
2020-01-07 07:12:38 -08:00
|
|
|
font-size: 11px;
|
|
|
|
line-height: 11px;
|
|
|
|
}
|
2019-10-17 05:38:09 -07:00
|
|
|
|
|
|
|
.graph-tooltip .detail-swatch {
|
2020-01-07 07:12:38 -08:00
|
|
|
display: inline-block;
|
|
|
|
width: 10px;
|
|
|
|
height: 10px;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
.add-panel-btn {
|
2020-01-07 07:12:38 -08:00
|
|
|
margin-bottom: 20px;
|
2019-10-17 05:38:09 -07:00
|
|
|
}
|
2019-12-09 14:42:59 -08:00
|
|
|
|
2019-12-31 09:41:50 -08:00
|
|
|
.target-head {
|
2020-01-07 07:12:38 -08:00
|
|
|
font-weight: 700;
|
|
|
|
font-size: large;
|
2019-12-31 09:41:50 -08:00
|
|
|
}
|
|
|
|
|
2020-01-16 13:22:47 -08:00
|
|
|
.group-info {
|
2020-01-07 07:12:38 -08:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
margin-bottom: 10px;
|
2021-09-10 12:21:22 -07:00
|
|
|
margin-top: 10px;
|
2020-01-07 07:12:38 -08:00
|
|
|
padding: 10px;
|
2019-12-09 14:42:59 -08:00
|
|
|
}
|
|
|
|
|
2023-01-31 06:49:38 -08:00
|
|
|
.badges-wrapper>span {
|
2020-01-07 07:12:38 -08:00
|
|
|
margin-right: 5px;
|
|
|
|
max-height: 20px;
|
2019-12-09 14:42:59 -08:00
|
|
|
}
|
2020-01-27 01:27:43 -08:00
|
|
|
|
|
|
|
.rules-head {
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
|
|
|
.rule_cell {
|
|
|
|
white-space: pre-wrap;
|
2020-02-11 06:25:39 -08:00
|
|
|
background-color: #f5f5f5;
|
2020-01-27 01:27:43 -08:00
|
|
|
display: block;
|
|
|
|
font-family: monospace;
|
|
|
|
}
|