@redocly/theme 0.9.13 → 0.9.15

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.
@@ -25,7 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.MarkdownWrapper = exports.headingAnchor = exports.baseTable = void 0;
27
27
  const styled_components_1 = __importStar(require("styled-components"));
28
- const utils_1 = require("../utils");
28
+ const theme_helpers_1 = require("../utils/theme-helpers");
29
29
  exports.baseTable = (0, styled_components_1.css) `
30
30
  table.md {
31
31
  display: block;
@@ -257,7 +257,7 @@ exports.MarkdownWrapper = styled_components_1.default.main.attrs(() => ({
257
257
  }
258
258
 
259
259
  h1.md {
260
- ${(0, utils_1.typography)('h1', 'h')};
260
+ ${(0, theme_helpers_1.typography)('h1', 'h')};
261
261
  margin: var(--h1-margin-top) 0 var(--h1-margin-bottom) 0;
262
262
  ${headingAnchor()};
263
263
 
@@ -267,31 +267,31 @@ exports.MarkdownWrapper = styled_components_1.default.main.attrs(() => ({
267
267
  }
268
268
 
269
269
  h2.md {
270
- ${(0, utils_1.typography)('h2', 'h')};
270
+ ${(0, theme_helpers_1.typography)('h2', 'h')};
271
271
  margin: var(--h2-margin-top) 0 var(--h2-margin-bottom) 0;
272
272
  ${headingAnchor()};
273
273
  }
274
274
 
275
275
  h3.md {
276
- ${(0, utils_1.typography)('h3', 'h')};
276
+ ${(0, theme_helpers_1.typography)('h3', 'h')};
277
277
  margin: var(--h3-margin-top) 0 var(--h3-margin-bottom) 0;
278
278
  ${headingAnchor()};
279
279
  }
280
280
 
281
281
  h4.md {
282
- ${(0, utils_1.typography)('h4', 'h')};
282
+ ${(0, theme_helpers_1.typography)('h4', 'h')};
283
283
  margin: var(--h4-margin-top) 0 var(--h4-margin-bottom) 0;
284
284
  ${headingAnchor()};
285
285
  }
286
286
 
287
287
  h5.md {
288
- ${(0, utils_1.typography)('h5', 'h')};
288
+ ${(0, theme_helpers_1.typography)('h5', 'h')};
289
289
  margin: var(--h5-margin-top) 0 var(--h5-margin-bottom) 0;
290
290
  ${headingAnchor()};
291
291
  }
292
292
 
293
293
  h6.md {
294
- ${(0, utils_1.typography)('h6', 'h')};
294
+ ${(0, theme_helpers_1.typography)('h6', 'h')};
295
295
  margin: var(--h6-margin-top) 0 var(--h6-margin-bottom) 0;
296
296
  ${headingAnchor()};
297
297
  }
@@ -17,6 +17,10 @@ exports.SeparatorItem = (0, styled_components_1.default)(MenuItemLabel_1.MenuIte
17
17
  text-transform: var(--sidebar-item-separator-text-transform);
18
18
  background: var(--sidebar-item-separator-background-color);
19
19
 
20
+ *:not(:first-child) > & {
21
+ margin-top: var(--sidebar-item-separator-offset);
22
+ }
23
+
20
24
  :hover {
21
25
  color: inherit;
22
26
  background-color: inherit;
@@ -10,6 +10,6 @@ exports.SeparatorLine = styled_components_1.default.div.attrs(() => ({
10
10
  })) `
11
11
  height: 1px;
12
12
  background-color: var(--sidebar-item-separator-line-color);
13
- margin: var(--sidebar-item-padding-vertical) 0;
13
+ margin: var(--sidebar-item-separator-offset) 0 var(--sidebar-item-padding-vertical) 0;
14
14
  `;
15
15
  //# sourceMappingURL=SeparatorLine.js.map