Skip to content

Commit 35b2f49

Browse files
authored
Merge pull request #41 from calcit-lang/reuse-css
reuse pre style in calcit
2 parents da17ecc + 0264b0f commit 35b2f49

File tree

10 files changed

+407
-336
lines changed

10 files changed

+407
-336
lines changed

.DS_Store

0 Bytes
Binary file not shown.

.github/workflows/upload.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 20
17+
node-version: 24
1818
cache: 'yarn'
1919

2020
- uses: calcit-lang/setup-cr@0.0.8

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ node_modules/
77
dist/
88

99
book/
10+
11+
.DS_Store

assets/main.css

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,6 @@
33
@import url("github-markdown-css/github-markdown.css");
44
@import url("cirru-color/assets/cirru.css");
55

6-
pre {
7-
background-color: hsla(0, 0%, 96%, 0.5);
8-
border: 1px solid #eee;
9-
padding: 2px 8px;
10-
line-height: 1.4;
11-
min-width: 400px;
12-
border-radius: 4px;
13-
overflow: auto;
14-
}
15-
16-
blockquote {
17-
margin: 16px 0;
18-
padding: 1px 16px;
19-
color: #777;
20-
background-color: #eee8e8;
21-
border-left: 4px solid #ccc;
22-
line-height: 1.5em;
23-
}
246

257
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
268
color: #ccc;

calcit.cirru

Lines changed: 72 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

compact.cirru

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
{} (:package |docs-workflow)
3-
:configs $ {} (:init-fn |docs-workflow.main/main!) (:reload-fn |docs-workflow.main/reload!) (:version |0.0.20)
3+
:configs $ {} (:init-fn |docs-workflow.main/main!) (:reload-fn |docs-workflow.main/reload!) (:version |0.0.21)
44
:modules $ [] |respo.calcit/ |lilac/ |memof/ |respo-ui.calcit/ |respo-markdown.calcit/ |reel.calcit/ |respo-router.calcit/ |alerts.calcit/
55
:entries $ {}
66
:files $ {}
@@ -230,21 +230,21 @@
230230
|css-doc $ %{} :CodeEntry (:doc |)
231231
:code $ quote
232232
defstyle css-doc $ {}
233-
"\"$0" $ {} (:font-size 15)
234-
"\"$0 p" $ {} (:line-height 1.56)
235-
"\"$0 p > code" $ {}
233+
"\"&" $ {} (:font-size 15)
234+
"\"& p" $ {} (:line-height 1.56)
235+
"\"& p > code" $ {}
236236
:background-color $ hsl 0 0 97
237237
:padding "\"0 6px"
238238
:border-radius "\"3px"
239239
:border $ str "\"1px solid " (hsl 0 0 90)
240240
|css-doc-page $ %{} :CodeEntry (:doc |)
241241
:code $ quote
242242
defstyle css-doc-page $ {}
243-
"\"$0" $ merge ui/expand
243+
"\"&" $ merge ui/expand
244244
{} (:padding "\"8px 16px")
245245
:background-color $ hsl 0 0 100 0.6
246246
:position :relative
247-
"\"$0 iframe" $ {}
247+
"\"& iframe" $ {}
248248
:border $ str "\"1px solid " (hsl 0 0 86)
249249
|css-layout $ %{} :CodeEntry (:doc |)
250250
:code $ quote
@@ -254,15 +254,17 @@
254254
|css-markdown $ %{} :CodeEntry (:doc |)
255255
:code $ quote
256256
defstyle css-markdown $ {}
257-
"\"$0 p code" $ {}
257+
"\"& p code" $ {}
258258
:border $ str "\"1px solid " (hsl 0 0 90)
259259
:border-radius "\"4px"
260260
:padding "\"2px 2px"
261261
:margin "\"-2px 2px"
262+
"\"& pre" $ {} (:background-color "|hsla(0, 0%, 96%, 0.5)") (:border "|1px solid #eee") (:padding "|2px 8px") (:line-height |1.4) (:min-width |400px) (:border-radius |4px) (:overflow |auto)
263+
"\"& blockquote" $ {} (:margin "|16px 0") (:padding "|1px 16px") (:color |#777) (:background-color |#eee8e8) (:border-left "|4px solid #ccc") (:line-height |1.5em)
262264
|css-speech-button $ %{} :CodeEntry (:doc |)
263265
:code $ quote
264266
defstyle css-speech-button $ {}
265-
"\"$0" $ {} (:position :absolute) (:top 32) (:right 8) (:font-family css/font-fancy)
267+
"\"&" $ {} (:position :absolute) (:top 32) (:right 8) (:font-family css/font-fancy)
266268
|find-entries $ %{} :CodeEntry (:doc |)
267269
:code $ quote
268270
defn find-entries (entries path)

deps.cirru

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{}
2-
:calcit-version |0.9.7
2+
:calcit-version |0.9.13
33
:dependencies $ {}
44
|calcit-lang/lilac |main
55
|calcit-lang/memof |main
66
|Respo/respo.calcit |main
77
|Respo/reel.calcit |main
8-
|Respo/respo-markdown.calcit |0.4.6
9-
|Respo/respo-ui.calcit |main
8+
|Respo/respo-markdown.calcit |0.4.9
9+
|Respo/respo-ui.calcit |0.6.3
1010
|Respo/respo-router.calcit |main
1111
|Respo/alerts.calcit |0.10.2

docs/guide.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"version": "0.0.20",
2+
"version": "0.0.21",
33
"name": "@calcit/docs-workflow",
44
"dependencies": {
5-
"@calcit/procs": "^0.9.7"
5+
"@calcit/procs": "^0.9.13"
66
},
77
"devDependencies": {
88
"bottom-tip": "^0.1.5",
99
"cirru-color": "^0.2.4",
1010
"github-markdown-css": "^5.8.1",
1111
"highlight.js": "^11.11.1",
1212
"remarkable": "^2.0.1",
13-
"vite": "^6.1.6"
13+
"vite": "^6.3.5"
1414
}
1515
}

0 commit comments

Comments
 (0)