@taiga-ui/addon-doc 3.57.0 → 3.58.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/addon-doc",
3
- "version": "3.57.0",
3
+ "version": "3.58.0",
4
4
  "description": "Taiga UI based library for developing documentation portals for Angular libraries.",
5
5
  "keywords": [
6
6
  "angular",
@@ -14,7 +14,7 @@
14
14
  "repository": "https://github.com/taiga-family/taiga-ui",
15
15
  "license": "Apache-2.0",
16
16
  "dependencies": {
17
- "markdown-it": "13.0.2",
17
+ "markdown-it": "14.0.0",
18
18
  "ngx-highlightjs": "6.1.3",
19
19
  "tslib": "2.6.2"
20
20
  },
@@ -24,10 +24,10 @@
24
24
  "@angular/forms": ">=12.0.0",
25
25
  "@angular/router": ">=12.0.0",
26
26
  "@ng-web-apis/common": "3.0.6",
27
- "@taiga-ui/addon-mobile": ">=3.57.0",
28
- "@taiga-ui/cdk": ">=3.57.0",
29
- "@taiga-ui/core": ">=3.57.0",
30
- "@taiga-ui/kit": ">=3.57.0",
27
+ "@taiga-ui/addon-mobile": ">=3.58.0",
28
+ "@taiga-ui/cdk": ">=3.58.0",
29
+ "@taiga-ui/core": ">=3.58.0",
30
+ "@taiga-ui/kit": ">=3.58.0",
31
31
  "@tinkoff/ng-polymorpheus": "4.3.0"
32
32
  },
33
33
  "main": "bundles/taiga-ui-addon-doc.umd.js",
@@ -0,0 +1,118 @@
1
+ /* stylelint-disable-next-line */
2
+ markdown {
3
+ display: block;
4
+ max-width: 58.25rem;
5
+
6
+ h1 {
7
+ font: var(--tui-font-heading-1);
8
+ }
9
+
10
+ h2 {
11
+ font: var(--tui-font-heading-2);
12
+ }
13
+
14
+ h3 {
15
+ font: var(--tui-font-heading-3);
16
+ }
17
+
18
+ h4 {
19
+ font: var(--tui-font-heading-4);
20
+ }
21
+
22
+ h5 {
23
+ font: var(--tui-font-heading-5);
24
+ }
25
+
26
+ h6 {
27
+ font: var(--tui-font-heading-6);
28
+ }
29
+
30
+ h1,
31
+ h2,
32
+ h3,
33
+ h4,
34
+ h5,
35
+ h6 {
36
+ margin: 3rem 0 1rem;
37
+ }
38
+
39
+ & a {
40
+ text-decoration: none;
41
+ color: var(--tui-link);
42
+
43
+ &:hover,
44
+ &:active {
45
+ color: var(--tui-link-hover);
46
+ }
47
+ }
48
+
49
+ & h2 {
50
+ font-size: 2em;
51
+ padding-bottom: 0.5em;
52
+ margin-left: 0;
53
+ border-bottom: 1px solid var(--tui-base-03);
54
+ }
55
+
56
+ & h3 {
57
+ text-transform: uppercase;
58
+ font-weight: normal;
59
+ font-size: 1.5rem;
60
+ margin: 1rem 0;
61
+ }
62
+
63
+ img {
64
+ margin: 0.625rem 3rem 1.5rem 0;
65
+ max-width: 27.5rem;
66
+
67
+ &:nth-child(2n) {
68
+ margin-right: 0;
69
+ }
70
+ }
71
+
72
+ ul {
73
+ &:extend(.tui-list);
74
+ }
75
+
76
+ li {
77
+ position: relative;
78
+ padding-left: 1.5rem;
79
+ word-wrap: break-word;
80
+ margin-top: 0.75rem;
81
+
82
+ &:before {
83
+ content: '';
84
+ position: absolute;
85
+ left: 0;
86
+ top: 0.5rem;
87
+ width: 0.5rem;
88
+ height: 0.5rem;
89
+ border-radius: 100%;
90
+ background-color: var(--tui-primary);
91
+ }
92
+ }
93
+
94
+ & a {
95
+ text-decoration: none;
96
+ color: var(--tui-link);
97
+
98
+ &:hover,
99
+ &:active {
100
+ color: var(--tui-link-hover);
101
+ }
102
+ }
103
+
104
+ & code {
105
+ color: #d45d8c;
106
+ }
107
+
108
+ & blockquote {
109
+ box-shadow: inset 4px 0 #f5f5f5;
110
+ margin-left: 0;
111
+ padding-left: 1.875rem;
112
+ font-style: italic;
113
+ }
114
+
115
+ & td {
116
+ padding: 0.375rem 1.5rem 0.375rem 0;
117
+ }
118
+ }