prometheus

Форк
0
507 строк · 11.9 Кб
1
/* This file contains styles shared by both light & dark themes.
2
   Style rules can be customised using SCSS variables set in dark.scss & light.sccs.
3
   How to add a rule that uses different values for each theme.
4

5
   1. Add a variable in light.scss & dark.scss files, it needs to be set before
6
      "@import ./shared" statement.
7
      Example:
8

9
      $foo = '#000';
10

11
   2. Add a style rule in _shared.scss (this file) that uses new variable.
12
      Example:
13

14
      .my-class { background-color: $foo; }
15

16
   Instead of setting custom variables you can re-use any of bootstrap SCSS variables
17
   as they are all imported and ready.
18
   Resources:
19
   - https://getbootstrap.com/docs/4.6/getting-started/theming/
20
   - https://github.com/twbs/bootstrap/blob/v4.6.0/scss/_variables.scss
21
  */
22

23
.alert-cell {
24
  color: $alert-cell-color;
25
  background: $rule-cell-bg;
26
}
27

28
.rule-cell {
29
  background-color: $rule-cell-bg;
30
}
31

32
.config-yaml {
33
  display: block;
34
  padding: 10px;
35
  font-size: 13px;
36
  color: $config-yaml-color;
37
  word-break: break-all;
38
  background-color: $config-yaml-bg;
39
  border: 1px solid $config-yaml-border;
40
  border-radius: 4px;
41
}
42

43
.query-stats {
44
  flex-grow: 1;
45
  font-size: 0.7rem;
46
  color: $query-stats-color;
47
}
48

49
.metrics-explorer.modal-dialog {
50
  max-width: 750px;
51
  overflow-wrap: break-word;
52
}
53
.metrics-explorer .metric {
54
  cursor: pointer;
55
  margin: 0;
56
  padding: 5px;
57
}
58
.metrics-explorer .metric:hover {
59
  background: $metrics-explorer-bg;
60
}
61
button.expression-input-action-btn {
62
  color: $input-group-addon-color;
63
  background-color: $input-group-addon-bg;
64
  border: $input-border-width solid $input-group-addon-border-color;
65
}
66

67
.graph-controls button.clear-time-btn,
68
.table-controls button.clear-time-btn {
69
  background-color: $input-bg;
70
  border: $input-border-width solid $input-border-color;
71
  border-left: none;
72

73
  &:hover {
74
    color: darken($secondary, 10%);
75
  }
76
}
77

78
button.execute-btn {
79
  width: 84px;
80
  border: $input-border-width solid darken($primary, 5%);
81
}
82

83
.expression-input .cm-expression-input {
84
  border: $input-border-width solid $input-border-color;
85
  flex: 1 1 auto;
86
  padding: 4px 0 0 8px;
87
  font-size: 15px;
88
}
89

90
.tab-content {
91
  border-left: 1px solid $nav-tabs-border-color;
92
  border-right: 1px solid $nav-tabs-border-color;
93
  border-bottom: 1px solid $nav-tabs-border-color;
94
  padding: 10px;
95
}
96

97
/* bootstrap-dark seems to break overflow on modals, making them unscrollable
98
   this fixes it by allowing overflow and enabling scrolling */
99
.modal.show {
100
  overflow-y: auto;
101
}
102

103
.panel {
104
  margin-bottom: 20px;
105
}
106

107
.navbar-brand svg {
108
  padding-right: 1rem;
109
  height: 1.9rem;
110
  width: 2.9rem;
111
}
112

113
.navbar-brand svg.animate path {
114
  animation: flamecolor 4s ease-in 1 forwards, flame 1s ease-in infinite;
115
}
116

117
.navbar-brand {
118
  margin-top: 4px;
119
}
120

121
input[type='checkbox']:checked + label {
122
  color: $checked-checkbox-color;
123
}
124

125
.histogram-summary-wrapper {
126
  display: flex;
127
  justify-content: space-between;
128
  align-items: center;
129
  padding: 10px;
130
}
131

132
.histogram-summary {
133
  display: flex;
134
  align-items: center;
135
  gap: 1rem;
136
}
137

138
.histogram-y-wrapper {
139
  display: flex;
140
  flex-wrap: nowrap;
141
  align-items: flex-start;
142
  box-sizing: border-box;
143
  margin: 15px 0;
144
  width: 100%;
145
}
146

147
.histogram-y-labels {
148
  height: 200px;
149
  display: flex;
150
  flex-direction: column;
151
}
152

153
.histogram-y-label {
154
  margin-right: 8px;
155
  height: 25%;
156
  text-align: right;
157
}
158

159
.histogram-x-wrapper {
160
  flex: 1 1 auto;
161
  display: flex;
162
  flex-direction: column;
163
  margin-right: 8px;
164
}
165

166
.histogram-x-labels {
167
  display: flex;
168
}
169

170
.histogram-x-label {
171
  position: relative;
172
  margin-top: 5px;
173
  width: 100%;
174
  text-align: right;
175
}
176

177
.histogram-container {
178
  margin-top: 9px;
179
  position: relative;
180
  height: 200px;
181
}
182

183
.histogram-axes {
184
  position: absolute;
185
  width: 100%;
186
  height: 100%;
187
  border-bottom: 1px solid $histogram-chart-axis-color;
188
  border-left: 1px solid $histogram-chart-axis-color;
189
  pointer-events: none;
190
}
191

192
.histogram-y-grid {
193
  position: absolute;
194
  border-bottom: 1px dashed $histogram-chart-grid-color;
195
  width: 100%;
196
}
197

198
.histogram-y-tick {
199
  position: absolute;
200
  border-bottom: 1px solid $histogram-chart-axis-color;
201
  left: -5px;
202
  height: 0px;
203
  width: 5px;
204
}
205

206
.histogram-x-grid {
207
  position: absolute;
208
  border-left: 1px dashed $histogram-chart-grid-color;
209
  height: 100%;
210
  width: 0;
211
}
212

213
.histogram-x-tick {
214
  position: absolute;
215
  border-left: 1px solid $histogram-chart-axis-color;
216
  height: 5px;
217
  width: 0;
218
  bottom: -5px;
219
}
220

221
.histogram-bucket-slot {
222
  position: absolute;
223
  bottom: 0;
224
  top: 0;
225
}
226

227
.histogram-bucket {
228
  position: absolute;
229
  width: 100%;
230
  bottom: 0;
231
  background-color: #2db453;
232
  border: 1px solid #77de94;
233
  pointer-events: none;
234
}
235

236
.histogram-bucket-slot:hover {
237
  background-color: $histogram-chart-hover-color;
238
}
239

240
.histogram-bucket-slot:hover .histogram-bucket {
241
  background-color: #88e1a1;
242
  border: 1px solid #77de94;
243
}
244

245
.custom-control-label {
246
  cursor: pointer;
247
}
248

249
.togglers-wrapper .form-group {
250
  margin-bottom: 0.5rem;
251
}
252

253
[for$='-toggler'].custom-control-label::before,
254
[for$='-toggler'].custom-control-label::after {
255
  top: 0.28rem;
256
  left: -1.3rem;
257
  width: 1.12rem;
258
  height: 1.12rem;
259
}
260

261
.capitalize-title::first-letter {
262
  text-transform: capitalize;
263
}
264

265
/* Using a more specific selector here to be able to override Bootstrap's default input group styles. */
266
.input-group.expression-input {
267
  margin-bottom: 10px;
268
  /* Prevent the input group from wrapping around when the editor content is too long for a line. */
269
  flex-wrap: nowrap;
270
}
271

272
.alert {
273
  padding: 10px;
274
  margin-bottom: 0.2rem;
275
}
276

277
.nav-tabs .nav-link {
278
  cursor: pointer;
279
}
280

281
.tab-content .alert {
282
  margin-bottom: 0;
283
}
284

285
.data-table.table {
286
  margin: 10px 0 2px 0;
287
}
288

289
.data-table > tbody > tr > td {
290
  padding: 5px 0 5px 8px;
291
  font-size: 0.8em;
292
  overflow: hidden;
293
}
294

295
.autosuggest-dropdown {
296
  position: absolute;
297
  border: 1px solid #ced4da;
298
  background-color: #fff;
299
  color: #495057;
300
  font-size: 1rem;
301
  z-index: 1000;
302
  left: 56px;
303
  margin-top: -6px;
304
}
305

306
.autosuggest-dropdown-list {
307
  padding: 0;
308
  margin: 0;
309
  list-style: none;
310
}
311

312
.autosuggest-dropdown-list li {
313
  width: 100%;
314
  padding: 0.25rem 1.5rem;
315
  clear: both;
316
  white-space: nowrap;
317
  background-color: transparent;
318
  border: 0;
319
  display: block;
320
}
321

322
.autosuggest-dropdown-list li.autosuggest-dropdown-header {
323
  background-color: #bfdeff;
324
  font-size: 10px;
325
  line-height: 1.5;
326
  text-transform: uppercase;
327
  text-align: center;
328
}
329

330
.graph-controls,
331
.table-controls {
332
  margin-bottom: 10px;
333
}
334

335
.graph-controls input,
336
.table-controls input {
337
  text-align: center;
338
}
339

340
.graph-controls .range-input input {
341
  width: 50px;
342
}
343

344
.time-input input {
345
  border-right: none;
346
}
347

348
.time-input {
349
  width: 270px !important;
350
}
351

352
.graph-controls input.resolution-input {
353
  width: 90px;
354
}
355

356
.graph-controls > :not(:first-child) {
357
  margin-left: 20px;
358
}
359

360
.graph-selected-exemplar {
361
  position: relative;
362
  border: 1px solid $nav-tabs-border-color;
363
  margin: 15px 55px;
364
  font-size: 0.75em;
365
  padding: 10px 10px;
366
}
367

368
.graph-legend {
369
  margin: 15px 55px;
370
  font-size: 0.75em;
371
  padding: 10px 5px;
372
  display: inline-block;
373
}
374

375
.legend-item {
376
  cursor: pointer;
377
  display: flex;
378
  padding: 0 5px;
379
  border-radius: 3px;
380
  line-height: 1.7;
381
}
382
.legend-item div {
383
  flex-wrap: wrap;
384
}
385

386
.legend-swatch {
387
  min-width: 7px;
388
  height: 7px;
389
  outline-offset: 1px;
390
  outline: 1.5px solid #ccc;
391
  margin: 6px 8px 2px 0;
392
  display: inline-block;
393
}
394

395
.legend-item:hover {
396
  background: rgba(0, 0, 0, 0.18);
397
}
398

399
.legend-metric-name {
400
  margin-right: 1px;
401
}
402

403
.legend-label-container:hover {
404
  background-color: #add6ff;
405
  border-radius: 3px;
406
  padding-bottom: 1px;
407
  color: #495057;
408
  cursor: pointer;
409
}
410

411
.legend-label-name {
412
  font-weight: bold;
413
}
414

415
.graph {
416
  margin: 0 5px 0 5px;
417
}
418

419
.graph-chart {
420
  height: 500px;
421
  width: 100%;
422
  /* This is picked up by Flot's axis label font renderer,
423
      which ignores "color" and uses "fill" instead. */
424
  fill: #495057;
425
  font-size: 0.8em;
426
}
427

428
.graph-chart .flot-overlay {
429
  cursor: crosshair;
430
}
431

432
.graph-tooltip {
433
  background: rgba(0, 0, 0, 0.8);
434
  color: #fff;
435
  font-family: Arial, Helvetica, sans-serif;
436
  font-size: 12px;
437
  white-space: nowrap;
438
  padding: 8px;
439
  border-radius: 3px;
440
}
441

442
.graph-tooltip .labels {
443
  font-size: 11px;
444
  line-height: 11px;
445
}
446

447
.graph-tooltip .detail-swatch {
448
  display: inline-block;
449
  width: 10px;
450
  height: 10px;
451
}
452

453
.add-panel-btn {
454
  margin-bottom: 20px;
455
}
456

457
.target-head {
458
  font-weight: 700;
459
  font-size: large;
460
}
461

462
.group-info {
463
  display: flex;
464
  justify-content: space-between;
465
  margin-bottom: 10px;
466
  margin-top: 10px;
467
  padding: 10px;
468
}
469

470
.badges-wrapper > span {
471
  margin-right: 5px;
472
  max-height: 20px;
473
}
474

475
.rules-head {
476
  font-weight: 600;
477
}
478

479
.rule_cell {
480
  white-space: pre-wrap;
481
  background-color: #f5f5f5;
482
  display: block;
483
  font-family: monospace;
484
}
485

486
@keyframes flamecolor {
487
  100% {
488
    fill: #e95224;
489
  }
490
}
491
@keyframes flame {
492
  0% {
493
    d: path(
494
      'M 56.667,0.667 C 25.372,0.667 0,26.036 0,57.332 c 0,31.295 25.372,56.666 56.667,56.666 31.295,0 56.666,-25.371 56.666,-56.666 0,-31.296 -25.372,-56.665 -56.666,-56.665 z m 0,106.055 c -8.904,0 -16.123,-5.948 -16.123,-13.283 H 72.79 c 0,7.334 -7.219,13.283 -16.123,13.283 z M 83.297,89.04 H 30.034 V 79.382 H 83.298 V 89.04 Z M 83.106,74.411 H 30.186 C 30.01,74.208 29.83,74.008 29.66,73.802 24.208,67.182 22.924,63.726 21.677,60.204 c -0.021,-0.116 6.611,1.355 11.314,2.413 0,0 2.42,0.56 5.958,1.205 -3.397,-3.982 -5.414,-9.044 -5.414,-14.218 0,-11.359 8.712,-21.285 5.569,-29.308 3.059,0.249 6.331,6.456 6.552,16.161 3.252,-4.494 4.613,-12.701 4.613,-17.733 0,-5.21 3.433,-11.262 6.867,-11.469 -3.061,5.045 0.793,9.37 4.219,20.099 1.285,4.03 1.121,10.812 2.113,15.113 C 63.797,33.534 65.333,20.5 71,16 c -2.5,5.667 0.37,12.758 2.333,16.167 3.167,5.5 5.087,9.667 5.087,17.548 0,5.284 -1.951,10.259 -5.242,14.148 3.742,-0.702 6.326,-1.335 6.326,-1.335 l 12.152,-2.371 c 10e-4,-10e-4 -1.765,7.261 -8.55,14.254 z'
495
    );
496
  }
497
  50% {
498
    d: path(
499
      'M 56.667,0.667 C 25.372,0.667 0,26.036 0,57.332 c 0,31.295 25.372,56.666 56.667,56.666 31.295,0 56.666,-25.371 56.666,-56.666 0,-31.296 -25.372,-56.665 -56.666,-56.665 z m 0,106.055 c -8.904,0 -16.123,-5.948 -16.123,-13.283 H 72.79 c 0,7.334 -7.219,13.283 -16.123,13.283 z M 83.297,89.04 H 30.034 V 79.382 H 83.298 V 89.04 Z M 83.106,74.411 H 30.186 C 30.01,74.208 29.83,74.008 29.66,73.802 24.208,67.182 22.924,63.726 21.677,60.204 c -0.021,-0.116 6.611,1.355 11.314,2.413 0,0 2.42,0.56 5.958,1.205 -3.397,-3.982 -5.414,-9.044 -5.414,-14.218 0,-11.359 1.640181,-23.047128 7.294982,-29.291475 C 39.391377,29.509803 45.435,26.752 45.656,36.457 c 3.252,-4.494 7.100362,-8.366957 7.100362,-13.398957 0,-5.21 0.137393,-8.650513 -3.479689,-15.0672265 7.834063,1.6180944 8.448052,4.2381285 11.874052,14.9671285 1.285,4.03 1.325275,15.208055 2.317275,19.509055 0.329,-8.933 6.441001,-14.01461 5.163951,-21.391003 5.755224,5.771457 4.934508,10.495521 7.126537,14.288218 3.167,5.5 2.382625,7.496239 2.382625,15.377239 0,5.284 -1.672113,9.232546 -4.963113,13.121546 3.742,-0.702 6.326,-1.335 6.326,-1.335 l 12.152,-2.371 c 10e-4,-10e-4 -1.765,7.261 -8.55,14.254 z'
500
    );
501
  }
502
  100% {
503
    d: path(
504
      'M 56.667,0.667 C 25.372,0.667 0,26.036 0,57.332 c 0,31.295 25.372,56.666 56.667,56.666 31.295,0 56.666,-25.371 56.666,-56.666 0,-31.296 -25.372,-56.665 -56.666,-56.665 z m 0,106.055 c -8.904,0 -16.123,-5.948 -16.123,-13.283 H 72.79 c 0,7.334 -7.219,13.283 -16.123,13.283 z M 83.297,89.04 H 30.034 V 79.382 H 83.298 V 89.04 Z M 83.106,74.411 H 30.186 C 30.01,74.208 29.83,74.008 29.66,73.802 24.208,67.182 22.924,63.726 21.677,60.204 c -0.021,-0.116 6.611,1.355 11.314,2.413 0,0 2.42,0.56 5.958,1.205 -3.397,-3.982 -5.414,-9.044 -5.414,-14.218 0,-11.359 8.712,-21.285 5.569,-29.308 3.059,0.249 6.331,6.456 6.552,16.161 3.252,-4.494 4.613,-12.701 4.613,-17.733 0,-5.21 3.433,-11.262 6.867,-11.469 -3.061,5.045 0.793,9.37 4.219,20.099 1.285,4.03 1.121,10.812 2.113,15.113 C 63.797,33.534 65.333,20.5 71,16 c -2.5,5.667 0.37,12.758 2.333,16.167 3.167,5.5 5.087,9.667 5.087,17.548 0,5.284 -1.951,10.259 -5.242,14.148 3.742,-0.702 6.326,-1.335 6.326,-1.335 l 12.152,-2.371 c 10e-4,-10e-4 -1.765,7.261 -8.55,14.254 z'
505
    );
506
  }
507
}
508

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.