@redocly/theme 0.68.0-next.5 → 0.68.0-next.6

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.
@@ -1 +1,2 @@
1
+ export declare const linkCss: import("styled-components").RuleSet<object>;
1
2
  export declare const markdownLinksCss: import("styled-components").RuleSet<object>;
@@ -1,24 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.markdownLinksCss = void 0;
3
+ exports.markdownLinksCss = exports.linkCss = void 0;
4
4
  const styled_components_1 = require("styled-components");
5
- exports.markdownLinksCss = (0, styled_components_1.css) `
6
- a:not([role='button']) {
7
- text-decoration: var(--link-decoration);
8
- text-underline-offset: var(--link-underline-offset);
9
- color: var(--link-color-primary);
10
- font-weight: var(--link-font-weight);
5
+ exports.linkCss = (0, styled_components_1.css) `
6
+ text-decoration: var(--link-decoration);
7
+ text-underline-offset: var(--link-underline-offset);
8
+ color: var(--link-color-primary);
9
+ font-weight: var(--link-font-weight);
11
10
 
12
- &:visited {
13
- color: var(--link-color-visited);
14
- text-decoration: var(--link-decoration-visited);
15
- }
11
+ &:visited {
12
+ color: var(--link-color-visited);
13
+ text-decoration: var(--link-decoration-visited);
14
+ }
16
15
 
17
- &:hover,
18
- &:focus {
19
- text-decoration: var(--link-decoration-hover);
20
- color: var(--link-color-primary-hover);
21
- }
16
+ &:hover,
17
+ &:focus {
18
+ text-decoration: var(--link-decoration-hover);
19
+ color: var(--link-color-primary-hover);
20
+ }
21
+ `;
22
+ exports.markdownLinksCss = (0, styled_components_1.css) `
23
+ a:not([role='button']) {
24
+ ${exports.linkCss}
22
25
  }
23
26
  `;
24
27
  //# sourceMappingURL=links.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.68.0-next.5",
3
+ "version": "0.68.0-next.6",
4
4
  "description": "Shared UI components lib",
5
5
  "keywords": [
6
6
  "theme",
@@ -63,7 +63,7 @@
63
63
  "vitest": "4.1.10",
64
64
  "vitest-when": "0.6.2",
65
65
  "webpack": "5.105.2",
66
- "@redocly/realm-asyncapi-sdk": "0.14.0-next.0"
66
+ "@redocly/realm-asyncapi-sdk": "0.14.0-next.3"
67
67
  },
68
68
  "dependencies": {
69
69
  "@tanstack/react-query": "5.62.3",
@@ -1,21 +1,25 @@
1
1
  import { css } from 'styled-components';
2
2
 
3
- export const markdownLinksCss = css`
4
- a:not([role='button']) {
5
- text-decoration: var(--link-decoration);
6
- text-underline-offset: var(--link-underline-offset);
7
- color: var(--link-color-primary);
8
- font-weight: var(--link-font-weight);
3
+ export const linkCss = css`
4
+ text-decoration: var(--link-decoration);
5
+ text-underline-offset: var(--link-underline-offset);
6
+ color: var(--link-color-primary);
7
+ font-weight: var(--link-font-weight);
8
+
9
+ &:visited {
10
+ color: var(--link-color-visited);
11
+ text-decoration: var(--link-decoration-visited);
12
+ }
9
13
 
10
- &:visited {
11
- color: var(--link-color-visited);
12
- text-decoration: var(--link-decoration-visited);
13
- }
14
+ &:hover,
15
+ &:focus {
16
+ text-decoration: var(--link-decoration-hover);
17
+ color: var(--link-color-primary-hover);
18
+ }
19
+ `;
14
20
 
15
- &:hover,
16
- &:focus {
17
- text-decoration: var(--link-decoration-hover);
18
- color: var(--link-color-primary-hover);
19
- }
21
+ export const markdownLinksCss = css`
22
+ a:not([role='button']) {
23
+ ${linkCss}
20
24
  }
21
25
  `;