Skip to content

Commit

Permalink
refine line style and inline code style; tag 0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
tiye committed Apr 29, 2022
1 parent 384766f commit 1cd29fc
Show file tree
Hide file tree
Showing 6 changed files with 140 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

calcit.cirru -diff linguist-generated
yarn.lock -diff linguist-generated
docs/* -diff linguist-generated
5 changes: 0 additions & 5 deletions assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ blockquote {
line-height: 1.5em;
}

.doc-entry:hover {
background-color: hsla(190, 10%, 70%, 0.1);
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
color: #ccc;
}
Expand All @@ -71,7 +67,6 @@ blockquote {
color: #ccc;
}


.calcit-tile {
background-image: url('./calcit-tile.png');
background-size: 163px 395px;
Expand Down
111 changes: 106 additions & 5 deletions calcit.cirru

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 20 additions & 6 deletions compact.cirru
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

{} (:package |docs-workflow)
:configs $ {} (:init-fn |docs-workflow.main/main!) (:reload-fn |docs-workflow.main/reload!) (:version |0.0.5)
:configs $ {} (:init-fn |docs-workflow.main/main!) (:reload-fn |docs-workflow.main/reload!) (:version |0.0.6)
:modules $ [] |respo.calcit/ |lilac/ |memof/ |respo-ui.calcit/ |respo-markdown.calcit/ |reel.calcit/ |respo-router.calcit/ |alerts.calcit/
:entries $ {}
:files $ {}
Expand Down Expand Up @@ -110,7 +110,7 @@
{} $ :style
merge ui/expand $ {} (:padding "\"8px 16px")
:background-color $ hsl 0 0 100 0.6
div $ {}
div $ {} (:class-name css-doc)
:innerHTML $ .!render md (:content target)
div
{} $ :style
Expand All @@ -126,7 +126,7 @@
[] idx $ let
target $ find-target docs path
div
{} (:class-name "\"doc-entry")
{} (:class-name css-doc-entry)
:style $ {} (:cursor :pointer) (:padding "\"0 8px") (:font-size 12)
:color $ hsl 0 0 60
:on-click $ fn (e d!) (on-select path d!)
Expand All @@ -139,7 +139,7 @@
[] (:key entry)
div ({})
div
{} (:class-name "\"doc-entry")
{} (:class-name css-doc-entry)
:style $ {} (:padding "\"0 8px") (:cursor :pointer)
:on-click $ fn (e d!)
on-select
Expand Down Expand Up @@ -171,7 +171,7 @@
conj parent-path $ :key entry
, d!
div
{} (:class-name "\"doc-entry")
{} (:class-name css-doc-entry)
:style $ merge style-entry
if selected? $ {}
:border-left $ str "\"10px solid " (hsl 200 90 70)
Expand Down Expand Up @@ -202,6 +202,19 @@
<> $ str "\"< "
or (:title target) "\"NOT FOUND"
[]
|css-doc $ quote
defstyle css-doc $ {}
"\"$0" $ {} (:font-size 15)
"\"$0 p" $ {} (:line-height 1.56)
"\"$0 p > code" $ {}
:background-color $ hsl 0 0 97
:padding "\"0 6px"
:border-radius "\"3px"
:border $ str "\"1px solid " (hsl 0 0 90)
|css-doc-entry $ quote
defstyle css-doc-entry $ {} ("\"$0" style-entry)
"\"$0:hover" $ {}
:background-color $ hsl 190 10 70 0.1
|find-entries $ quote
defn find-entries (entries path)
if (empty? path) entries $ if-let
Expand All @@ -222,7 +235,7 @@
, nil
|md $ quote
def md $ new Remarkable
js-object (:html false) (:breaks true)
js-object (:html true) (:breaks true)
:highlight $ fn (code lang)
if (= lang "\"cirru") (color/generate code)
.-value $ .!highlightAuto hljs code (js-array lang)
Expand Down Expand Up @@ -257,6 +270,7 @@
"\"highlight.js" :default hljs
"\"cirru-color" :as color
respo-alerts.core :refer $ use-modal
respo.css :refer $ defstyle
|docs-workflow.config $ {}
:defs $ {}
|dev? $ quote
Expand Down
5 changes: 5 additions & 0 deletions docs/about.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions docs/cirru.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1cd29fc

Please sign in to comment.