DmitrMakeev commited on
Commit
ede5154
·
verified ·
1 Parent(s): b46866f

Update nutri_call.html

Browse files
Files changed (1) hide show
  1. nutri_call.html +33 -1
nutri_call.html CHANGED
@@ -533,6 +533,38 @@ legend {
533
 
534
 
535
  </style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
536
 
537
  <body>
538
  <div class="header-box">
@@ -1607,7 +1639,7 @@ console.log(calculator.generateReport(results));
1607
  content: 'Нитрат Кальция (кальциевая селитра)',
1608
  placement: 'top', // Расположение: top, bottom, left, right
1609
  arrow: true, // Добавить стрелку
1610
- theme: 'dark', // Тема: light, dark, tomato и т.д.
1611
  });
1612
  </script>
1613
 
 
533
 
534
 
535
  </style>
536
+ <style>
537
+ /* Создание кастомной темы */
538
+ .tippy-box[data-theme~='custom-dark'] {
539
+ background-color: #000; /* Чёрный фон */
540
+ color: #fff; /* Белый текст */
541
+ border-radius: 8px; /* Закругление углов */
542
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Тень */
543
+ border: 2px solid #333; /* Граница */
544
+ }
545
+
546
+ /* Стиль стрелки для кастомной темы */
547
+ .tippy-box[data-theme~='custom-dark'][data-placement^='top'] > .tippy-arrow::before {
548
+ border-top-color: #000;
549
+ }
550
+
551
+ .tippy-box[data-theme~='custom-dark'][data-placement^='bottom'] > .tippy-arrow::before {
552
+ border-bottom-color: #000;
553
+ }
554
+
555
+ .tippy-box[data-theme~='custom-dark'][data-placement^='left'] > .tippy-arrow::before {
556
+ border-left-color: #000;
557
+ }
558
+
559
+ .tippy-box[data-theme~='custom-dark'][data-placement^='right'] > .tippy-arrow::before {
560
+ border-right-color: #000;
561
+ }
562
+
563
+ /* Стиль SVG-стрелки */
564
+ .tippy-box[data-theme~='custom-dark'] > .tippy-svg-arrow {
565
+ fill: #000; /* Цвет заливки стрелки */
566
+ }
567
+ </style>
568
 
569
  <body>
570
  <div class="header-box">
 
1639
  content: 'Нитрат Кальция (кальциевая селитра)',
1640
  placement: 'top', // Расположение: top, bottom, left, right
1641
  arrow: true, // Добавить стрелку
1642
+ theme: 'custom-dark', // Тема: light, dark, tomato и т.д.
1643
  });
1644
  </script>
1645