From d388f0d53a6f631a1598df7ff34c0fdad349cad7 Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 30 Nov 2024 08:17:29 -0800 Subject: elem constructors now accept lists directly --- src/hypnotisml.lisp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src') diff --git a/src/hypnotisml.lisp b/src/hypnotisml.lisp index e63f43b..b561e01 100644 --- a/src/hypnotisml.lisp +++ b/src/hypnotisml.lisp @@ -250,30 +250,30 @@ already present in the element." (defun $center (elem) (setf (children elem) - (list (apply #'
- ($ :display "flex" - :justify-content "center" - :align-items "center" - :height "100%") - (mapcar #'ensure-elem (children elem))))) + (list (
+ ($ :display "flex" + :justify-content "center" + :align-items "center" + :height "100%") + (mapcar #'ensure-elem (children elem))))) elem) (defun $vcenter (elem) (setf (children elem) - (list (apply #'
- ($ :display "flex" - :align-items "center" - :height "100%") - (mapcar #'ensure-elem (children elem))))) + (list (
+ ($ :display "flex" + :align-items "center" + :height "100%") + (mapcar #'ensure-elem (children elem))))) elem) (defun $hcenter (elem) (setf (children elem) - (list (apply #'
- ($ :display "flex" - :justify-content "center" - :height "100%") - (mapcar #'ensure-elem (children elem))))) + (list (
+ ($ :display "flex" + :justify-content "center" + :height "100%") + (mapcar #'ensure-elem (children elem))))) elem) @@ -556,7 +556,7 @@ CONTENTS is a list of NODE instances." ( (@ :type "time" :name name))) (defun (&rest contents) - (apply #'