Merge pull request #70 from urbit/wh/sky-hawk-headers

sky: skinnier hawk headers
This commit is contained in:
Liam Fitzgerald 2024-06-26 13:55:19 -04:00 committed by GitHub
commit 1b6e964700
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 10 deletions

View File

@ -99,7 +99,8 @@
=head "menu"
=hx-target "this"
=hx-swap "none"
;div.fc.ac.jc.bold.s3.f3(style "height: 2rem;"): ~
=style "height: 2rem;"
; ~
==
++ menu-btn-style
;style
@ -107,9 +108,7 @@
'''
.air-btn {
position: relative;
padding: 4px;
border-radius: 3px;
border: 2px solid var(--b2);
}
@media(max-width: 900px) {
.air-btn {

View File

@ -362,7 +362,7 @@
'}'
++ lift
^- manx
;div.hawk.fc.wf.hf
;div.hawk.fc.wf.hf.br1
=id "hawk-{idt}"
=hawk-id (scow %da id)
=slot slot-tag
@ -384,9 +384,9 @@
==
==
++ header
;header.b2.p1.frw.g1.ac
;header.b2.frw.g1.ac
=id "hawk-header-{idt}"
=style "border: 2px solid var(--b2);"
=style "padding: 0 4px;"
;button
=class "p1 hover b2 br1 bd0 {(trip ?:(has-app '' 'toggled'))}"
=onclick
@ -413,7 +413,7 @@
;+ chevron-right.feather-icons
==
;a
=class "hover b2 br1 {pad} s0 loader fc ac jc"
=class "hover b2 {pad} s0 loader fc ac jc"
=style "height: 2rem;"
=href "/neo/hawk{(en-tape:pith:neo (scag +(a) here))}"
;span.loaded
@ -429,7 +429,7 @@
;div.grow;
==
;form
=class "hawk-tog grow fr m0 relative {(trip ?:(has-app 'hidden' ''))}"
=class "hawk-tog grow fr ac m0 relative {(trip ?:(has-app 'hidden' ''))}"
=style "height: 2rem;"
=hx-get "/neo/hawk"
=hx-target "closest .hawk"
@ -442,8 +442,8 @@
==
==
==
;input.p-1.br1.b1.wf.s0.loaded.grow.bd0
=style "margin-left: 5px;"
;input.br1.b1.wf.s0.loaded.grow.bd0
=style "margin-left: 5px; padding: 2px 4px;"
=type "text"
=value (en-tape:pith:neo here)
=oninput