The cl-css Reference Manual

This is the cl-css Reference Manual, version 0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Wed May 15 03:51:38 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

The main system appears first, followed by any subsystem dependency.


2.1 cl-css

Simple inline CSS generator

Maintainer

<>

Author

<>

License

MIT-style

Version

0.1

Source

cl-css.asd.

Child Components

3 Files

Files are sorted by type and then listed depth-first from the systems components trees.


3.1 Lisp


3.1.1 cl-css/cl-css.asd

Source

cl-css.asd.

Parent Component

cl-css (system).

ASDF Systems

cl-css.


3.1.2 cl-css/package.lisp

Source

cl-css.asd.

Parent Component

cl-css (system).

Packages

cl-css.


3.1.3 cl-css/util.lisp

Dependency

package.lisp (file).

Source

cl-css.asd.

Parent Component

cl-css (system).

Internals

3.1.4 cl-css/cl-css.lisp

Dependency

util.lisp (file).

Source

cl-css.asd.

Parent Component

cl-css (system).

Public Interface
Internals

3.1.5 cl-css/css3-transform.lisp

Dependency

cl-css.lisp (file).

Source

cl-css.asd.

Parent Component

cl-css (system).

Public Interface

3.1.6 cl-css/css3-3d-transform.lisp

Dependency

css3-transform.lisp (file).

Source

cl-css.asd.

Parent Component

cl-css (system).

Public Interface

3.1.7 cl-css/css3-animations+transitions.lisp

Dependency

css3-3d-transform.lisp (file).

Source

cl-css.asd.

Parent Component

cl-css (system).

Public Interface

4 Packages

Packages are listed by definition order.


4.1 cl-css

A non-validating, inline CSS generator for common lisp

Source

package.lisp.

Nickname

mini-css

Use List

common-lisp.

Public Interface
Internals

5 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


5.1 Public Interface


5.1.1 Ordinary functions

Function: % (val)
Package

cl-css.

Source

cl-css.lisp.

Function: animation (name &key duration timing-function delay iteration-count direction play-state)
Package

cl-css.

Source

css3-animations+transitions.lisp.

Function: backface-visibility (visible/hidden)
Package

cl-css.

Source

css3-3d-transform.lisp.

Function: compile-css (file-path directives)
Package

cl-css.

Source

cl-css.lisp.

Function: css (rules)
Package

cl-css.

Source

cl-css.lisp.

Function: em (val)
Package

cl-css.

Source

cl-css.lisp.

Function: inline-css (rule)
Package

cl-css.

Source

cl-css.lisp.

Function: keyframes (animation-name &rest keyframes)
Package

cl-css.

Source

css3-animations+transitions.lisp.

Function: matrix (&rest 6-numbers)

Takes six numbers and uses them to build a CSS3 transformation matrix directive

Package

cl-css.

Source

css3-transform.lisp.

Function: matrix3d (&rest 16-numbers)
Package

cl-css.

Source

css3-3d-transform.lisp.

Function: perspective (n)
Package

cl-css.

Source

css3-3d-transform.lisp.

Function: perspective-origin (x y)
Package

cl-css.

Source

css3-3d-transform.lisp.

Function: px (val)
Package

cl-css.

Source

cl-css.lisp.

Function: rotate (degrees)

Takes a number of degrees, returns a cross-browser CSS3 rotate directive

Package

cl-css.

Source

css3-transform.lisp.

Function: rotate3d (degrees)

Takes a number of degrees, returns a cross-browser CSS3 rotate directive

Package

cl-css.

Source

css3-3d-transform.lisp.

Function: scale (scale-x &optional scale-y)

Takes an x and y scale factor, returns x-browser CSS3 scale directive

Package

cl-css.

Source

css3-transform.lisp.

Function: scale3d (scale-x &optional scale-y scale-z)

Takes an x and y scale factor, returns x-browser CSS3 scale directive

Package

cl-css.

Source

css3-3d-transform.lisp.

Function: skew (x-deg y-deg)
Package

cl-css.

Source

css3-transform.lisp.

Function: transform-origin (x y &optional z)

Takes x, y, z percentages, returns a cross-browser CSS3 transform-origin directive

Package

cl-css.

Source

css3-transform.lisp.

Function: transform-style (flat/preserve-3d)
Package

cl-css.

Source

css3-3d-transform.lisp.

Function: transition (property &key duration timing-function delay)
Package

cl-css.

Source

css3-animations+transitions.lisp.

Function: translate (x y &key units)

Takes an x and y, returns a x-browser CSS3 translate directive. units should be either :px (the default) or :%.

Package

cl-css.

Source

css3-transform.lisp.

Function: translate3d (x y z &key units)

Takes an x and y, returns a x-browser CSS3 translate directive. units should be either :px (the default) or :%.

Package

cl-css.

Source

css3-3d-transform.lisp.


5.2 Internals


5.2.1 Macros

Macro: split-directive (directive-name value &optional prefix-list)
Package

cl-css.

Source

util.lisp.

Macro: with-gensyms ((&rest names) &body body)
Package

cl-css.

Source

util.lisp.


5.2.2 Ordinary functions

Function: format-declarations-list (list-of-declarations)
Package

cl-css.

Source

cl-css.lisp.

Function: format-rule (selector declarations)
Package

cl-css.

Source

cl-css.lisp.

Function: prefix-symbol (prefix symbol)
Package

cl-css.

Source

util.lisp.

Function: symbol->d-string (a-symbol)

Returns the downcased symbol-name of the given symbol

Package

cl-css.

Source

util.lisp.


5.2.3 Generic functions

Generic Function: %-or-word (val)
Package

cl-css.

Methods
Method: %-or-word ((val null))
Source

util.lisp.

Method: %-or-word ((val string))
Source

util.lisp.

Method: %-or-word ((val symbol))
Source

util.lisp.

Method: %-or-word ((val number))
Source

util.lisp.

Generic Function: format-declaration (property value)
Package

cl-css.

Methods
Method: format-declaration ((property list) (v null))
Source

cl-css.lisp.

Method: format-declaration (property (value list))
Source

cl-css.lisp.

Method: format-declaration (property (value symbol))
Source

cl-css.lisp.

Method: format-declaration (property (value string))
Source

cl-css.lisp.

Method: format-declaration (property (value number))
Source

cl-css.lisp.

Generic Function: format-selector (s)
Package

cl-css.

Methods
Method: format-selector ((s string))
Source

cl-css.lisp.

Method: format-selector ((s symbol))
Source

cl-css.lisp.


Appendix A Indexes


A.1 Concepts


A.2 Functions

Jump to:   %  
A   B   C   E   F   G   I   K   M   P   R   S   T   W  
Index Entry  Section

%
%: Public ordinary functions
%-or-word: Private generic functions
%-or-word: Private generic functions
%-or-word: Private generic functions
%-or-word: Private generic functions
%-or-word: Private generic functions

A
animation: Public ordinary functions

B
backface-visibility: Public ordinary functions

C
compile-css: Public ordinary functions
css: Public ordinary functions

E
em: Public ordinary functions

F
format-declaration: Private generic functions
format-declaration: Private generic functions
format-declaration: Private generic functions
format-declaration: Private generic functions
format-declaration: Private generic functions
format-declaration: Private generic functions
format-declarations-list: Private ordinary functions
format-rule: Private ordinary functions
format-selector: Private generic functions
format-selector: Private generic functions
format-selector: Private generic functions
Function, %: Public ordinary functions
Function, animation: Public ordinary functions
Function, backface-visibility: Public ordinary functions
Function, compile-css: Public ordinary functions
Function, css: Public ordinary functions
Function, em: Public ordinary functions
Function, format-declarations-list: Private ordinary functions
Function, format-rule: Private ordinary functions
Function, inline-css: Public ordinary functions
Function, keyframes: Public ordinary functions
Function, matrix: Public ordinary functions
Function, matrix3d: Public ordinary functions
Function, perspective: Public ordinary functions
Function, perspective-origin: Public ordinary functions
Function, prefix-symbol: Private ordinary functions
Function, px: Public ordinary functions
Function, rotate: Public ordinary functions
Function, rotate3d: Public ordinary functions
Function, scale: Public ordinary functions
Function, scale3d: Public ordinary functions
Function, skew: Public ordinary functions
Function, symbol->d-string: Private ordinary functions
Function, transform-origin: Public ordinary functions
Function, transform-style: Public ordinary functions
Function, transition: Public ordinary functions
Function, translate: Public ordinary functions
Function, translate3d: Public ordinary functions

G
Generic Function, %-or-word: Private generic functions
Generic Function, format-declaration: Private generic functions
Generic Function, format-selector: Private generic functions

I
inline-css: Public ordinary functions

K
keyframes: Public ordinary functions

M
Macro, split-directive: Private macros
Macro, with-gensyms: Private macros
matrix: Public ordinary functions
matrix3d: Public ordinary functions
Method, %-or-word: Private generic functions
Method, %-or-word: Private generic functions
Method, %-or-word: Private generic functions
Method, %-or-word: Private generic functions
Method, format-declaration: Private generic functions
Method, format-declaration: Private generic functions
Method, format-declaration: Private generic functions
Method, format-declaration: Private generic functions
Method, format-declaration: Private generic functions
Method, format-selector: Private generic functions
Method, format-selector: Private generic functions

P
perspective: Public ordinary functions
perspective-origin: Public ordinary functions
prefix-symbol: Private ordinary functions
px: Public ordinary functions

R
rotate: Public ordinary functions
rotate3d: Public ordinary functions

S
scale: Public ordinary functions
scale3d: Public ordinary functions
skew: Public ordinary functions
split-directive: Private macros
symbol->d-string: Private ordinary functions

T
transform-origin: Public ordinary functions
transform-style: Public ordinary functions
transition: Public ordinary functions
translate: Public ordinary functions
translate3d: Public ordinary functions

W
with-gensyms: Private macros


A.3 Variables