Skip to content

Commit 1cd29fc

Browse files
committed
refine line style and inline code style; tag 0.0.6
1 parent 384766f commit 1cd29fc

File tree

6 files changed

+140
-16
lines changed

6 files changed

+140
-16
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11

22
calcit.cirru -diff linguist-generated
33
yarn.lock -diff linguist-generated
4+
docs/* -diff linguist-generated

assets/main.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@ blockquote {
5454
line-height: 1.5em;
5555
}
5656

57-
.doc-entry:hover {
58-
background-color: hsla(190, 10%, 70%, 0.1);
59-
}
60-
6157
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
6258
color: #ccc;
6359
}
@@ -71,7 +67,6 @@ blockquote {
7167
color: #ccc;
7268
}
7369

74-
7570
.calcit-tile {
7671
background-image: url('./calcit-tile.png');
7772
background-size: 163px 395px;

calcit.cirru

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

compact.cirru

Lines changed: 20 additions & 6 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.5)
3+
:configs $ {} (:init-fn |docs-workflow.main/main!) (:reload-fn |docs-workflow.main/reload!) (:version |0.0.6)
44
:modules $ [] |respo.calcit/ |lilac/ |memof/ |respo-ui.calcit/ |respo-markdown.calcit/ |reel.calcit/ |respo-router.calcit/ |alerts.calcit/
55
:entries $ {}
66
:files $ {}
@@ -110,7 +110,7 @@
110110
{} $ :style
111111
merge ui/expand $ {} (:padding "\"8px 16px")
112112
:background-color $ hsl 0 0 100 0.6
113-
div $ {}
113+
div $ {} (:class-name css-doc)
114114
:innerHTML $ .!render md (:content target)
115115
div
116116
{} $ :style
@@ -126,7 +126,7 @@
126126
[] idx $ let
127127
target $ find-target docs path
128128
div
129-
{} (:class-name "\"doc-entry")
129+
{} (:class-name css-doc-entry)
130130
:style $ {} (:cursor :pointer) (:padding "\"0 8px") (:font-size 12)
131131
:color $ hsl 0 0 60
132132
:on-click $ fn (e d!) (on-select path d!)
@@ -139,7 +139,7 @@
139139
[] (:key entry)
140140
div ({})
141141
div
142-
{} (:class-name "\"doc-entry")
142+
{} (:class-name css-doc-entry)
143143
:style $ {} (:padding "\"0 8px") (:cursor :pointer)
144144
:on-click $ fn (e d!)
145145
on-select
@@ -171,7 +171,7 @@
171171
conj parent-path $ :key entry
172172
, d!
173173
div
174-
{} (:class-name "\"doc-entry")
174+
{} (:class-name css-doc-entry)
175175
:style $ merge style-entry
176176
if selected? $ {}
177177
:border-left $ str "\"10px solid " (hsl 200 90 70)
@@ -202,6 +202,19 @@
202202
<> $ str "\"< "
203203
or (:title target) "\"NOT FOUND"
204204
[]
205+
|css-doc $ quote
206+
defstyle css-doc $ {}
207+
"\"$0" $ {} (:font-size 15)
208+
"\"$0 p" $ {} (:line-height 1.56)
209+
"\"$0 p > code" $ {}
210+
:background-color $ hsl 0 0 97
211+
:padding "\"0 6px"
212+
:border-radius "\"3px"
213+
:border $ str "\"1px solid " (hsl 0 0 90)
214+
|css-doc-entry $ quote
215+
defstyle css-doc-entry $ {} ("\"$0" style-entry)
216+
"\"$0:hover" $ {}
217+
:background-color $ hsl 190 10 70 0.1
205218
|find-entries $ quote
206219
defn find-entries (entries path)
207220
if (empty? path) entries $ if-let
@@ -222,7 +235,7 @@
222235
, nil
223236
|md $ quote
224237
def md $ new Remarkable
225-
js-object (:html false) (:breaks true)
238+
js-object (:html true) (:breaks true)
226239
:highlight $ fn (code lang)
227240
if (= lang "\"cirru") (color/generate code)
228241
.-value $ .!highlightAuto hljs code (js-array lang)
@@ -257,6 +270,7 @@
257270
"\"highlight.js" :default hljs
258271
"\"cirru-color" :as color
259272
respo-alerts.core :refer $ use-modal
273+
respo.css :refer $ defstyle
260274
|docs-workflow.config $ {}
261275
:defs $ {}
262276
|dev? $ quote

docs/about.md

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

docs/cirru.md

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

0 commit comments

Comments
 (0)