@diplodoc/client 3.8.1 → 3.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -256,10 +256,12 @@ a.pc-image-card_border_shadow,.pc-image-card_border_shadow{box-shadow:0px 4px 24
256
256
  --yfm-color-table-private: #333;
257
257
  --yfm-color-border-private: rgba(0, 0, 0, 0.07);
258
258
  --yfm-color-table-row-background-private: rgba(0, 0, 0, 0.02);
259
+ --yfm-color-table-row-header-background-private: rgba(247, 247, 247, 1);
259
260
  --yfm-color-accent-private: #027bf3;
260
261
  --yfm-color-inline-code-private: rgba(59, 96, 128, 1);
261
262
  --yfm-color-inline-code-background-private: rgba(107, 132, 153, 0.12);
262
263
  --yfm-color-code-background-private: rgba(107, 132, 153, 0.12);
264
+ --yfm-color-code-background-hovered-private: rgba(107, 132, 153, 0.2);
263
265
  --yfm-color-hljs-background-private: rgba(107, 132, 153, 0.12);
264
266
  --yfm-color-hljs-subst-private: #444;
265
267
  --yfm-color-hljs-comment-private: #888888;
@@ -293,11 +295,13 @@ a.pc-image-card_border_shadow,.pc-image-card_border_shadow{box-shadow:0px 4px 24
293
295
  --yfm-color-link-hover: var(--yfm-color-link-hover-private);
294
296
  --yfm-color-table: var(--yfm-color-table-private);
295
297
  --yfm-color-table-row-background: var(--yfm-color-table-row-background-private);
298
+ --yfm-color-table-row-header-background: var(--yfm-color-table-row-header-background-private);
296
299
  --yfm-color-border: var(--yfm-color-border-private);
297
300
  --yfm-color-accent: var(--yfm-color-accent-private);
298
301
  --yfm-color-inline-code: var(--yfm-color-inline-code-private);
299
302
  --yfm-color-inline-code-background: var(--yfm-color-inline-code-background-private);
300
303
  --yfm-color-code-background: var(--yfm-color-code-background-private);
304
+ --yfm-color-code-hovered-background: var(--yfm-color-code-hovered-background-private);
301
305
  --yfm-color-hljs-background: var(--yfm-color-hljs-background-private);
302
306
  --yfm-color-hljs-subst: var(--yfm-color-hljs-subst-private);
303
307
  --yfm-color-hljs-comment: var(--yfm-color-hljs-comment-private);
@@ -906,6 +910,13 @@ a.pc-image-card_border_shadow,.pc-image-card_border_shadow{box-shadow:0px 4px 24
906
910
  .yfm-clipboard-icon {
907
911
  pointer-events: none;
908
912
  }
913
+ .yfm-clipboard-inline-code {
914
+ transition: 0.3s;
915
+ }
916
+ .yfm-clipboard-inline-code:hover {
917
+ cursor: pointer;
918
+ background-color: var(--yfm-color-code-background-hovered-private);
919
+ }
909
920
  .yfm .yfm-note {
910
921
  max-width: 1296px;
911
922
  margin: 20px 0;
@@ -979,6 +990,32 @@ a.pc-image-card_border_shadow,.pc-image-card_border_shadow{box-shadow:0px 4px 24
979
990
  .yfm table td.cell-align-bottom-right {
980
991
  vertical-align: bottom;
981
992
  }
993
+ .yfm table[sticky-header] {
994
+ position: relative;
995
+ max-height: 70vh;
996
+ }
997
+ .yfm table[sticky-header] thead {
998
+ position: sticky;
999
+ top: 0;
1000
+ }
1001
+ .yfm table[sticky-header] thead th {
1002
+ position: relative;
1003
+ z-index: 0;
1004
+ }
1005
+ .yfm table[sticky-header] thead th::before {
1006
+ content: "";
1007
+ background: var(--yfm-color-base);
1008
+ position: absolute;
1009
+ inset: 0;
1010
+ z-index: -2;
1011
+ }
1012
+ .yfm table[sticky-header] thead th::after {
1013
+ content: "";
1014
+ background: var(--yfm-color-table-row-background);
1015
+ position: absolute;
1016
+ inset: 0;
1017
+ z-index: -1;
1018
+ }
982
1019
  .yfm-term_title {
983
1020
  color: var(--yfm-color-term-title);
984
1021
  cursor: pointer;
@@ -1037,6 +1074,53 @@ a.pc-image-card_border_shadow,.pc-image-card_border_shadow{box-shadow:0px 4px 24
1037
1074
  transform: translateY(0);
1038
1075
  }
1039
1076
  }
1077
+ .inline_code_tooltip {
1078
+ position: absolute;
1079
+ z-index: 100;
1080
+ width: -moz-fit-content;
1081
+ width: fit-content;
1082
+ max-width: 450px;
1083
+ visibility: hidden;
1084
+ opacity: 0;
1085
+ padding: 10px;
1086
+ background-color: var(--yfm-color-term-dfn-background);
1087
+ font-size: inherit;
1088
+ line-height: inherit;
1089
+ font-style: normal;
1090
+ border-radius: 4px;
1091
+ box-shadow: 0 8px 20px var(--yfm-color-term-dfn-shadow);
1092
+ outline: none;
1093
+ }
1094
+ @media screen and (max-width: 600px) {
1095
+ .inline_code_tooltip {
1096
+ max-width: 80%;
1097
+ }
1098
+ }
1099
+ .inline_code_tooltip::before {
1100
+ content: "";
1101
+ position: absolute;
1102
+ z-index: -1;
1103
+ inset: 0;
1104
+ border-radius: inherit;
1105
+ box-shadow: 0 0 0 1px var(--yfm-color-term-dfn-pseudo-shadow);
1106
+ }
1107
+ .inline_code_tooltip.open {
1108
+ visibility: visible;
1109
+ animation-name: popup;
1110
+ animation-duration: 0.1s;
1111
+ animation-timing-function: ease-out;
1112
+ animation-fill-mode: forwards;
1113
+ }
1114
+ @keyframes popup {
1115
+ 0% {
1116
+ opacity: 0;
1117
+ transform: translateY(10px);
1118
+ }
1119
+ 100% {
1120
+ opacity: 1;
1121
+ transform: translateY(0);
1122
+ }
1123
+ }
1040
1124
  .wide-container {
1041
1125
  position: fixed;
1042
1126
  width: 100vw;