reblocks-lass - A helper for Reblocks framework to define CSS dependencies in LASS syntax.
REBLOCKS-LASS ASDF System Details
Description: A helper for Reblocks framework to define
CSS
dependencies inLASS
syntax.Licence: Unlicense
Author: Alexander Artemenko <svetlyak.40wt@gmail.com>
Homepage: https://40ants.com/reblocks-lass/
Bug tracker: https://github.com/40ants/reblocks-lass/issues
Source control: GIT
Installation
You can install this library from Quicklisp, but you want to receive updates quickly, then install it from Ultralisp.org:
(ql-dist:install-dist "http://dist.ultralisp.org/"
:prompt nil)
(ql:quickload :reblocks-lass)
API
REBLOCKS-LASS
Classes
LASS-DEPENDENCY
Keeps CSS
code, created using make-dependency
function.
Readers
Functions
This function creates Reblocks dependency with CSS
style described in LASS
DSL
.
You can use this dependency in a method of reblocks/dependencies:get-dependencies
generic-function like this:
(defmethod reblocks/dependencies:get-dependencies ((widget source-widget))
(append
(list
(reblocks-lass:make-dependency
`(.source-widget
:border-top "2px solid #cc4b37"
(input :margin 0)
(.dist :margin-right 1em)
(.label-column :white-space "nowrap"
:vertical-align "top")
(.field-column :width "100%")
((:and .dist .disabled) :color "gray")
((.source-controls > (:or form input))
:display "inline-block"
:margin-left 1em)
(.error :color "red"))))
(call-next-method)))