reblocks-lass - A helper for Reblocks framework to define CSS dependencies in LASS syntax.

REBLOCKS-LASS ASDF System Details

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)))