Style blocks

This commit is contained in:
David Botton 2021-03-18 12:53:15 -04:00
parent 59e53980af
commit aeec52b6f2
6 changed files with 240 additions and 29 deletions

View file

@ -24,6 +24,10 @@
(in-package :clog-user)
(defun on-main (body)
(let ((sb (create-style-block body)))
(add-style sb :element "a" '(("color" :orange)
("text-decoration" :none)))
(add-style sb :element "a:hover" '(("background-color" :gray))))
(create-div body :content
"We are in on-main<br><br>
<h1>Pick a link</h1>