neuroevolutus has quit [Ping timeout: 256 seconds]
switchy has quit [Ping timeout: 245 seconds]
switchy has joined #picolisp
<
tankf33der>
Morning
<
tankf33der>
i have checked that opt in llvm and clang in clang
rick42_ has quit [Ping timeout: 255 seconds]
rick42 has joined #picolisp
rob_w has joined #picolisp
rob_w has quit [Remote host closed the connection]
f[x] has joined #picolisp
f[x] has quit [Remote host closed the connection]
skyjuice has joined #picolisp
<
skyjuice>
Hello all 👋
<
abu[7]>
o/ skyjuice
<
skyjuice>
Hey abu[7]
<
skyjuice>
Does Pico have a <style> function? I checked the docs and xhtml.l but I couldn't find one
<
abu[7]>
There is indeed <style> in @lib/xhtml.l in line 136
<
skyjuice>
You're 100% correct, I need to work on my search skills 😖
<
skyjuice>
What would css like this look like in Pico?
<
skyjuice>
<style> /* Simple example. */
<
skyjuice>
me { margin: 20px; }
<
skyjuice>
me div { font-size: 5rem; }
<
skyjuice>
</style> </div>
<
abu[7]>
(<div> "me" ...
<
abu[7]>
(<div> "class"
<
abu[7]>
(<div> '(attr . "value")
<
abu[7]>
(<div> '((attr1 . "value") (attr2 . "value")
<
abu[7]>
Same syntax for all tags
<
skyjuice>
( <style> NIL (<div> "me"
<
abu[7]>
also (<style> '(attr . "value") etc
<
abu[7]>
(<style> NIL is not needed
<
abu[7]>
(as empty)
<
abu[7]>
Just experiment in the repl
<
abu[7]>
: (<h2> ...
<
skyjuice>
Good idea, will do
<
skyjuice>
thx for the tips
<
skyjuice>
ok, after some experiments I understand how to render classes and id's, but not an internal style sheet in the form:
<
skyjuice>
p h1 ul {
<
skyjuice>
color: red;
<
skyjuice>
font-size: 20px;
<
skyjuice>
</style>
<
skyjuice>
I get NIL with (<style> '( p . "color: red;)) in the repl
<
abu[7]>
Something like (<style> '(style . "color: red; font-size: 20px;") ... ?
<
skyjuice>
let me try
<
abu[7]>
ie 'style' is the attribute
<
abu[7]>
(<h1> '(style . "color: red; font-size: 20px;") "This is a header")
<
abu[7]>
The last semicolon is not needed
<
abu[7]>
(<h1> '(style . "color: red; font-size: 20px") "This is a header")
<
skyjuice>
thx, still experimenting
f[x] has joined #picolisp
<
abu[7]>
Probably the best strategy is to dig through sources in @lib/xhtml.l a little to get an idea how it works
<
abu[7]>
Too bad there is no full docs
<
skyjuice>
True, that would be a welcome addition
neuroevolutus has joined #picolisp
bjorkint0sh has joined #picolisp
bjorkintosh has quit [Ping timeout: 260 seconds]
neuroevolutus has quit [Ping timeout: 256 seconds]
skyjuice has quit [Quit: Client closed]
neuroevolutus has joined #picolisp
neuroevolutus has quit [Ping timeout: 256 seconds]
f[x] has quit [Remote host closed the connection]
bjorkint0sh has quit [Ping timeout: 276 seconds]