@brillout/docpress 0.6.16 → 0.6.17

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,6 @@ blockquote.note-color-green {
25
25
  border-left-color: rgb(0, 179, 0, 0.3);
26
26
  background-color: rgb(0, 179, 0, 0.08);
27
27
  }
28
- /*
29
28
  blockquote.note-color-pink {
30
29
  --color-strengh-bg: 4;
31
30
  --color-strengh-border: 4;
@@ -33,7 +32,6 @@ blockquote.note-color-pink {
33
32
  border-left-color: rgb(255, 0, 100, 0.3);
34
33
  background-color: rgb(255, 0, 100, 0.1);
35
34
  }
36
- */
37
35
  .blockquote-content {
38
36
  display: inline;
39
37
  }
@@ -1,4 +1,5 @@
1
1
  export { Warning }
2
+ export { Advanced }
2
3
  export { Construction }
3
4
  export { Contribution }
4
5
  export { Danger }
@@ -21,6 +22,9 @@ import './Note.css'
21
22
  function Warning({ children }: { children: React.ReactNode }) {
22
23
  return <NoteGeneric type="warning">{children}</NoteGeneric>
23
24
  }
25
+ function Advanced({ children }: { children: React.ReactNode }) {
26
+ return <NoteGeneric type="advanced">{children}</NoteGeneric>
27
+ }
24
28
  function Construction({ children }: { children: React.ReactNode }) {
25
29
  return <NoteGeneric type="construction">{children}</NoteGeneric>
26
30
  }
@@ -47,7 +51,7 @@ function NoteGeneric({
47
51
  }: {
48
52
  icon?: null | CustomIcon
49
53
  iconMargin?: null | number
50
- type?: 'danger' | 'warning' | 'construction' | 'contribution'
54
+ type?: 'danger' | 'warning' | 'construction' | 'contribution' | 'advanced'
51
55
  children: React.ReactNode
52
56
  }) {
53
57
  assert(icon === null || icon || type, { icon, type })
@@ -75,6 +79,10 @@ function NoteGeneric({
75
79
  icon = '💚'
76
80
  classColor = 'note-color-green'
77
81
  }
82
+ if (type === 'advanced') {
83
+ icon = '🧠'
84
+ classColor = 'note-color-pink'
85
+ }
78
86
  assert(icon)
79
87
  assert(classColor)
80
88
  className = `${className} ${classColor}`
package/css/heading.css CHANGED
@@ -1,6 +1,6 @@
1
1
  h1 { font-size: 2.30em }
2
2
  h2 { font-size: 1.80em }
3
- h3 { font-size: 1.15em }
3
+ h3 { font-size: 1.25em }
4
4
 
5
5
  .doc-page h1 {
6
6
  margin-top: 20px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.6.16",
3
+ "version": "0.6.17",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "// Build vite.config.ts and +config.ts": "",