Skip to content

Commit

Permalink
Merge pull request #146 from calcit-lang/update
Browse files Browse the repository at this point in the history
use snippet component; thinner nav bar
  • Loading branch information
NoEgAm authored Jan 7, 2024
2 parents ed48c23 + 7f0db7f commit a66fe09
Show file tree
Hide file tree
Showing 7 changed files with 478 additions and 480 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/upload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ jobs:

- uses: supplypike/setup-bin@v3
with:
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.9/cr'
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.14/cr'
name: 'cr'
version: '0.8.9'
version: '0.8.14'

- uses: supplypike/setup-bin@v3
with:
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.9/caps'
uri: 'https://github.com/calcit-lang/calcit/releases/download/0.8.14/caps'
name: 'caps'
version: '0.8.9'
version: '0.8.14'

- name: "compiles to js"
run: >
Expand Down
31 changes: 1 addition & 30 deletions assets/main.css
Original file line number Diff line number Diff line change
@@ -1,34 +1,5 @@

body {
margin: 0;
overscroll-behavior-y: none;
}

body * {
box-sizing: border-box;
flex-shrink: 0;
}

::-webkit-scrollbar {
width: 2px;
height: 2px;
}

::-webkit-scrollbar-track {
background-color: hsla(0,0%,100%);
}

::-webkit-scrollbar-thumb {
background-color: hsla(200,100%,76%,0.8);
}

::-webkit-scrollbar-corner {
background-color: transparent;
}

::-webkit-resizer {
background-color:transparent;
}
@import url('cirru-color/assets/cirru.css');

.calcit-tile {
background-image: url('./calcit-tile.png');
Expand Down
404 changes: 170 additions & 234 deletions calcit.cirru

Large diffs are not rendered by default.

72 changes: 30 additions & 42 deletions compact.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,9 @@
:cirru $ div
{} $ :class-name css-theme-container
render-expr code
:cirru-text $ pre
{} (:class-name css-code)
:innerHTML $ trim
format-cirru ([] code) true
:lisp $ <> (lisp-style code) css-code
:cirru-text $ comp-cirru-snippet
trim $ format-cirru ([] code) true
:lisp $ comp-cirru-snippet (lisp-style code)
|comp-container $ %{} :CodeEntry (:doc |)
:code $ quote
defcomp comp-container (reel)
Expand All @@ -126,7 +124,7 @@
includes? (:name info) (:query state)
div
{}
:class-name $ str-spaced "\"calcit-tile" css/global css/fullscreen css/column
:class-name $ str-spaced "\"calcit-tile" css/preset css/global css/fullscreen css/column
:style $ {}
:background-color $ hsl 0 0 100
div
Expand All @@ -137,30 +135,31 @@
{} $ :class-name css/row-middle
a $ {} (:inner-text "\"Calcit") (:target "\"_blank") (:href "\"http://calcit-lang.org/") (:class-name css-logo)
=< 16 nil
memof-call comp-tags-list state cursor
a $ {} (:inner-text "\"Try & Play") (:target "\"_blank") (:href "\"http://repo.calcit-lang.org/calcit-wasm-play/")
div
{} (:class-name css/row-parted)
:style $ {} (:padding "\"0 8px")
div
{} $ :class-name css/row-middle
input $ {}
:class-name $ str-spaced css/input css/font-code!
:value $ :query state
:placeholder "\"search"
:autofocus true
:on-input $ fn (e d!)
d! cursor $ assoc state :query (:value e)
div
{} $ :class-name css/row-middle
input $ {}
:class-name $ str-spaced css/input css/font-code!
:value $ :query state
:placeholder "\"search"
:autofocus true
:on-input $ fn (e d!)
d! cursor $ assoc state :query (:value e)
=< 8 nil
<>
str "\"has " (count visible-apis) "\" entries."
{} (:font-family ui/font-fancy)
:color $ hsl 0 0 70
=< 8 nil
<>
str "\"has " (count visible-apis) "\" entries."
{} (:font-family ui/font-fancy)
:color $ hsl 0 0 70
div
{} $ :class-name css/row-middle
memof1-call comp-cirru-ui-switcher state cursor
=< 12 nil
memof1-call comp-wip-switcher state cursor
div
{} $ :class-name css/row-middle
memof-call comp-cirru-ui-switcher state cursor
=< 12 nil
memof-call comp-wip-switcher state cursor
memof1-call comp-tags-list state cursor
=< 16 nil
a $ {} (:inner-text "\"Try & Play") (:target "\"_blank") (:href "\"http://repo.calcit-lang.org/calcit-wasm-play/")
div
{} (:class-name css/expand)
:style $ {}
Expand Down Expand Up @@ -211,7 +210,7 @@
div
{} $ :class-name css/row
<> "\"Tags:" $ {} (:font-family ui/font-fancy) (:user-select :none)
:color $ hsl 0 0 70
:color $ hsl 0 0 85
div ({}) & $ -> ([] :list :map :number :string :set :syntax :macro :native)
map $ fn (tag)
div
Expand Down Expand Up @@ -241,17 +240,6 @@
"\"&:hover" $ {}
; :box-shadow $ str "\"0 1px 1px " (hsl 0 0 0 0.2)
:background-color $ hsl 0 0 96
|css-code $ %{} :CodeEntry (:doc |)
:code $ quote
defstyle css-code $ {}
"\"&" $ {} (:font-family ui/font-code)
:border $ str "\"1px solid " (hsl 0 0 94)
:border-radius "\"4px"
:display :inline-block
:padding "\"2px 8px"
:line-height "\"22px"
:margin "\"0px 0px"
; :background-color :white
|css-desc $ %{} :CodeEntry (:doc |)
:code $ quote
defstyle css-desc $ {}
Expand All @@ -273,7 +261,7 @@
defstyle css-nav $ {}
"\"&" $ {}
:background-color $ hsl 0 0 100 0.6
:padding "\"0px 8px 12px"
:padding "\"0px 8px 0px"
:border-bottom $ str "\"1px solid " (hsl 0 0 90)
:box-shadow $ str "\"0 0 4px " (hsl 0 0 0 0.2)
:z-index 99
Expand Down Expand Up @@ -363,15 +351,15 @@
respo.util.format :refer $ hsl
respo-ui.core :as ui
respo-ui.css :as css
respo-ui.comp :refer $ comp-cirru-snippet comp-snippet
respo.core :refer $ defcomp defeffect <> >> div button textarea span input pre list-> a
respo.comp.space :refer $ =<
reel.comp.reel :refer $ comp-reel
respo-md.comp.md :refer $ comp-md
app.config :refer $ dev?
respo-md.comp.md :refer $ comp-md
calcit-theme.comp.expr :refer $ render-expr
memof.alias :refer $ memof-call
memof.once :refer $ memof1-call-by
memof.once :refer $ memof1-call memof1-call-by
feather.core :refer $ comp-i
respo.css :refer $ defstyle
app.schema :refer $ apis-data
Expand Down
2 changes: 1 addition & 1 deletion package.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
|Respo/respo.calcit |main
|Respo/reel.calcit |main
|Respo/respo-markdown.calcit |main
|Respo/respo-ui.calcit |main
|Respo/respo-ui.calcit |0.5.15
|Respo/respo-feather.calcit |main
|Cirru/calcit-theme.calcit |main
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"dependencies": {
"@calcit/procs": "^0.8.9",
"@calcit/procs": "^0.8.14",
"cirru-color": "^0.2.4",
"copy-text-to-clipboard": "^3.2.0",
"feather-icons": "^4.29.1"
},
"devDependencies": {
"bottom-tip": "^0.1.5",
"vite": "^4.4.11"
"vite": "^5.0.11"
},
"version": "0.0.1"
}
Loading

0 comments on commit a66fe09

Please sign in to comment.