Skip to content

Commit 3b75056

Browse files
committed
move jump button to left; tag 0.0.19
1 parent 636290c commit 3b75056

File tree

7 files changed

+722
-566
lines changed

7 files changed

+722
-566
lines changed

.github/workflows/upload.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,24 @@ jobs:
1010
test:
1111
runs-on: ubuntu-22.04
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

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

2020
- uses: supplypike/setup-bin@v3
2121
with:
22-
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.0-a5/cr'
22+
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.14/cr'
2323
name: 'cr'
24-
version: '0.8.0-a5'
24+
version: '0.8.14'
2525

2626
- uses: supplypike/setup-bin@v3
2727
with:
28-
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.0-a5/caps'
28+
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.14/caps'
2929
name: 'caps'
30-
version: '0.8.0-a5'
30+
version: '0.8.14'
3131

3232
- name: "compiles to js"
3333
run: >

assets/main.css

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

6-
body {
7-
margin: 0;
8-
overscroll-behavior-y: none;
9-
overscroll-behavior-x: none;
10-
}
11-
12-
body * {
13-
flex-shrink: 0;
14-
box-sizing: border-box;
15-
}
16-
17-
::-webkit-scrollbar {
18-
width: 4px;
19-
height: 4px;
20-
}
21-
22-
::-webkit-scrollbar-track {
23-
background-color: hsla(0,0%,100%);
24-
}
25-
26-
::-webkit-scrollbar-thumb {
27-
background-color: hsla(180,60%,76%,0.8);
28-
border-radius: 2px;
29-
}
30-
31-
::-webkit-scrollbar-corner {
32-
background-color: transparent;
33-
}
34-
35-
::-webkit-resizer {
36-
background-color:transparent;
37-
}
38-
396
pre {
407
background-color: hsla(0, 0%, 96%, 0.5);
418
border: 1px solid #eee;

calcit.cirru

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

compact.cirru

Lines changed: 62 additions & 44 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.18)
3+
:configs $ {} (:init-fn |docs-workflow.main/main!) (:reload-fn |docs-workflow.main/reload!) (:version |0.0.19)
44
:modules $ [] |respo.calcit/ |lilac/ |memof/ |respo-ui.calcit/ |respo-markdown.calcit/ |reel.calcit/ |respo-router.calcit/ |alerts.calcit/
55
:entries $ {}
66
:files $ {}
@@ -13,7 +13,7 @@
1313
:code $ quote
1414
defcomp comp-child-entries (parent-path entries on-select)
1515
div
16-
{} $ :class-name css-child-entries-block
16+
{} $ :class-name style-child-entries-block
1717
<> "\"Child pages" style-title
1818
list-> ({})
1919
-> entries $ map-indexed
@@ -25,7 +25,7 @@
2525
conj parent-path $ :key entry
2626
, d!
2727
div
28-
{} $ :class-name css-child-entry
28+
{} $ :class-name style-child-entry
2929
<> $ :title entry
3030
=< 8 nil
3131
if
@@ -48,31 +48,30 @@
4848
history $ :history state
4949
quick-modal $ use-modal (>> states :quick)
5050
{} (:title "|Quick jump")
51-
:style $ {} (:max-width "\"40vw") (:height "\"90vh") (:max-height "\"90vh") (:margin-right 0)
51+
:card-style $ {} (:max-width "\"18vw") (:height "\"90vh") (:max-height "\"90vh") (:margin-left 0)
5252
:backdrop-style $ {}
5353
:background-color $ hsl 0 29 10 0.2
5454
:render $ fn (on-close)
5555
div
56-
{} $ :style
57-
merge ui/expand $ {} (:padding "\"16px 16px 120px")
58-
:border-top $ str "\"1px solid " (hsl 0 0 94)
56+
{} $ :class-name (str-spaced ui/expand style-jump-modal)
5957
comp-nav-tree docs ([])
6058
fn (path d!)
6159
d! cursor $ next-path state path
6260
div
63-
{} $ :class-name (str-spaced "\"calcit-tile" css/fullscreen css/global css/row)
61+
{} $ :class-name (str-spaced "\"calcit-tile" css/preset css/fullscreen css/global css/row)
6462
div
6563
{} $ :class-name (str-spaced css/column css-layout)
66-
div
67-
{}
68-
:style $ {} (:position :absolute) (:right 8) (:top 4) (:z-index 100)
69-
:on-click $ fn (e d!) (.show quick-modal d!)
70-
<> "\"Quick Jump" $ merge
71-
{} (:cursor :pointer) (:font-family ui/font-fancy)
7264
div
7365
{} (:class-name css/row-parted)
7466
:style $ {} (:margin-top 12)
75-
<> "\"Pages" style-title
67+
div
68+
{} $ :class-name (str-spaced css/row-middle css/gap8)
69+
<> "\"Pages" style-title
70+
div
71+
{}
72+
:style $ {}
73+
:on-click $ fn (e d!) (.show quick-modal d!)
74+
<> "\"☰" $ str-spaced css/font-fancy style-jump
7675
a $ {} (:href "\"mdbook.html") (:inner-text "\"mdbook")
7776
:style $ {} (:font-size 12) (:font-family ui/font-fancy) (:opacity 0.3)
7877
comp-parent-menu selected docs $ fn (path d!)
@@ -153,7 +152,7 @@
153152
target $ find-target docs path
154153
div
155154
{} (:tab-index 0)
156-
:class-name $ str-spaced css-doc-entry css-history-entry
155+
:class-name $ str-spaced style-doc-entry style-history-entry
157156
:on-click $ fn (e d!) (on-select path d!)
158157
<> $ :title target
159158
|comp-nav-tree $ %{} :CodeEntry (:doc |)
@@ -165,7 +164,7 @@
165164
[] (:key entry)
166165
div ({})
167166
div
168-
{} (:tab-index 0) (:class-name css-doc-entry)
167+
{} (:tab-index 0) (:class-name style-doc-entry)
169168
:style $ {} (:padding "\"0 8px") (:cursor :pointer)
170169
:on-click $ fn (e d!)
171170
on-select
@@ -198,10 +197,8 @@
198197
conj parent-path $ :key entry
199198
, d!
200199
div
201-
{} (:class-name css-doc-entry)
202-
:style $ if selected?
203-
{} $ :border-left
204-
str "\"10px solid " $ hsl 200 90 70
200+
{} $ :class-name
201+
str-spaced style-doc-entry $ if selected? style-doc-entry-selected
205202
<> $ :title entry
206203
=< 8 nil
207204
if
@@ -230,17 +227,6 @@
230227
<> $ str "\"< "
231228
or (:title target) "\"NOT FOUND"
232229
[]
233-
|css-child-entries-block $ %{} :CodeEntry (:doc |)
234-
:code $ quote
235-
defstyle css-child-entries-block $ {}
236-
"\"$0" $ {} (:padding "\"8px") (:min-width 320) (:max-width 400) (:background-color :white) (:margin "\"8px 12px") (:border-radius "\"4px")
237-
:border $ str "\"1px solid " (hsl 0 0 86)
238-
|css-child-entry $ %{} :CodeEntry (:doc |)
239-
:code $ quote
240-
defstyle css-child-entry $ {}
241-
"\"&" $ {} (:padding "\"0 8px") (:cursor :pointer) (:transition-duration "\"200ms") (:line-height 2.4)
242-
"\"&:hover" $ {}
243-
:background-color $ hsl 190 10 70 0.1
244230
|css-doc $ %{} :CodeEntry (:doc |)
245231
:code $ quote
246232
defstyle css-doc $ {}
@@ -251,11 +237,6 @@
251237
:padding "\"0 6px"
252238
:border-radius "\"3px"
253239
:border $ str "\"1px solid " (hsl 0 0 90)
254-
|css-doc-entry $ %{} :CodeEntry (:doc |)
255-
:code $ quote
256-
defstyle css-doc-entry $ {} ("\"$0" style-entry)
257-
"\"$0:hover" $ {}
258-
:background-color $ hsl 190 10 70 0.1
259240
|css-doc-page $ %{} :CodeEntry (:doc |)
260241
:code $ quote
261242
defstyle css-doc-page $ {}
@@ -265,11 +246,6 @@
265246
:position :relative
266247
"\"$0 iframe" $ {}
267248
:border $ str "\"1px solid " (hsl 0 0 86)
268-
|css-history-entry $ %{} :CodeEntry (:doc |)
269-
:code $ quote
270-
defstyle css-history-entry $ {}
271-
"\"$0" $ {} (:cursor :pointer) (:padding "\"0 8px") (:font-size 12)
272-
:color $ hsl 0 0 60
273249
|css-layout $ %{} :CodeEntry (:doc |)
274250
:code $ quote
275251
defstyle css-layout $ {}
@@ -328,15 +304,57 @@
328304
butlast xs
329305
, xs
330306
, path
307+
|style-child-entries-block $ %{} :CodeEntry (:doc |)
308+
:code $ quote
309+
defstyle style-child-entries-block $ {}
310+
"\"&" $ {} (:padding "\"8px") (:min-width 320) (:max-width 400) (:background-color :white) (:margin "\"8px 12px") (:border-radius "\"4px")
311+
:border $ str "\"1px solid " (hsl 0 0 86)
312+
|style-child-entry $ %{} :CodeEntry (:doc |)
313+
:code $ quote
314+
defstyle style-child-entry $ {}
315+
"\"&" $ {} (:padding "\"0 8px") (:cursor :pointer) (:transition-duration "\"200ms") (:line-height 2.4)
316+
"\"&:hover" $ {}
317+
:background-color $ hsl 190 10 70 0.1
318+
|style-doc-entry $ %{} :CodeEntry (:doc |)
319+
:code $ quote
320+
defstyle style-doc-entry $ {} ("\"&" style-entry)
321+
"\"&:hover" $ {}
322+
:background-color $ hsl 190 10 70 0.1
323+
|style-doc-entry-selected $ %{} :CodeEntry (:doc |)
324+
:code $ quote
325+
defstyle style-doc-entry-selected $ {}
326+
"\"&" $ {}
327+
:border-left $ str "\"8px solid " (hsl 200 90 70)
328+
"\"&:hover" $ {}
329+
:border-left $ str "\"10px solid " (hsl 200 90 70)
331330
|style-entry $ %{} :CodeEntry (:doc |)
332331
:code $ quote
333332
def style-entry $ {} (:padding "\"0 8px") (:cursor :pointer) (:transition-duration "\"200ms") (:line-height 2.4)
334333
:border-bottom $ str "\"1px solid " (hsl 0 0 92)
335334
:border-left $ str "\"0px solid " (hsl 200 90 60)
335+
|style-history-entry $ %{} :CodeEntry (:doc |)
336+
:code $ quote
337+
defstyle style-history-entry $ {}
338+
"\"&" $ {} (:cursor :pointer) (:padding "\"0 8px") (:font-size 12)
339+
:color $ hsl 0 0 60
340+
|style-jump $ %{} :CodeEntry (:doc |)
341+
:code $ quote
342+
defstyle style-jump $ {}
343+
"\"&" $ {}
344+
:color $ hsl 0 0 60
345+
:cursor :pointer
346+
:opacity 0.6
347+
"\"&:hover" $ {} (:opacity 1)
348+
|style-jump-modal $ %{} :CodeEntry (:doc |)
349+
:code $ quote
350+
defstyle style-jump-modal $ {}
351+
"\"&" $ {} (:padding "\"16px 16px 120px")
352+
:border-top $ str "\"1px solid " (hsl 0 0 94)
336353
|style-title $ %{} :CodeEntry (:doc |)
337354
:code $ quote
338-
def style-title $ {} (:font-family ui/font-fancy) (:font-size 18) (:font-weight 300)
339-
:color $ hsl 0 0 60
355+
defstyle style-title $ {}
356+
"\"&" $ {} (:font-family ui/font-fancy) (:font-size 18) (:font-weight 300)
357+
:color $ hsl 0 0 60
340358
:ns $ %{} :CodeEntry (:doc |)
341359
:code $ quote
342360
ns docs-workflow.comp.container $ :require (respo-ui.core :as ui)

package.cirru

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
|Respo/respo.calcit |main
66
|Respo/reel.calcit |main
77
|Respo/respo-markdown.calcit |main
8-
|Respo/respo-ui.calcit |main
8+
|Respo/respo-ui.calcit |0.5.15
99
|Respo/respo-router.calcit |main
10-
|Respo/alerts.calcit |main
10+
|Respo/alerts.calcit |0.9.6

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"version": "0.0.18",
2+
"version": "0.0.19",
33
"name": "@calcit/docs-workflow",
44
"dependencies": {
5-
"@calcit/procs": "^0.8.0-a5"
5+
"@calcit/procs": "^0.8.14"
66
},
77
"devDependencies": {
88
"bottom-tip": "^0.1.5",
9-
"cirru-color": "^0.2.3",
10-
"github-markdown-css": "^5.2.0",
11-
"highlight.js": "^11.8.0",
9+
"cirru-color": "^0.2.4",
10+
"github-markdown-css": "^5.5.0",
11+
"highlight.js": "^11.9.0",
1212
"remarkable": "^2.0.1",
13-
"vite": "^4.4.12"
13+
"vite": "^5.0.11"
1414
}
1515
}

0 commit comments

Comments
 (0)