reblocks-lass
2024-10-12
A helper for Reblocks framework to define CSS dependencies in LASS syntax.
Upstream URL
Author
Alexander Artemenko <svetlyak.40wt@gmail.com>
License
Unlicense
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
- Depends on: lass, reblocks
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
package reblocks-lass
Classes
LASS-DEPENDENCY
class reblocks-lass:lass-dependency
(local-dependency)
Keeps CSS
code, created using make-dependency
function.
Readers
reader reblocks-lass:css-code
(lass-dependency) (:css)
Functions
function reblocks-lass:make-dependency
lass-code
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)))