The css-lite Reference Manual

Next: , Previous: , Up: (dir)   [Contents][Index]

The css-lite Reference Manual

This is the css-lite Reference Manual, version 0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Wed Jun 15 04:21:25 2022 GMT+0.

Table of Contents


1 Introduction

css-lite is a library for generating CSS from an s-exp based
syntax. When compiled with Parenscript
(http://common-lisp.net/project/parenscript/) loaded in the Lisp
image, it also provides the same CSS generation facilities in
Parenscript-generated JavaScript code.

The author, Vladimir Sedach, can be contacted at vsedach@gmail.com and
welcomes questions, bug reports and patches.

For license and copyright information (BSD), see the file COPYING
included with the distribution.


2 Systems

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


Previous: , Up: Systems   [Contents][Index]

2.1 css-lite

Version

0.1

Source

css-lite.asd.

Child Components

3 Files

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


Previous: , Up: Files   [Contents][Index]

3.1 Lisp


Next: , Previous: , Up: Lisp   [Contents][Index]

3.1.1 css-lite/css-lite.asd

Source

css-lite.asd.

Parent Component

css-lite (system).

ASDF Systems

css-lite.


3.1.2 css-lite/package.lisp

Source

css-lite.asd.

Parent Component

css-lite (system).

Packages

css-lite.


3.1.3 css-lite/css-lite.lisp

Dependency

package.lisp (file).

Source

css-lite.asd.

Parent Component

css-lite (system).

Public Interface
Internals

3.1.4 css-lite/utility.lisp

Dependency

css-lite.lisp (file).

Source

css-lite.asd.

Parent Component

css-lite (system).

Internals

flatten (function).


3.1.5 css-lite/lite-utility.lisp

Dependency

utility.lisp (file).

Source

css-lite.asd.

Parent Component

css-lite (system).

Public Interface
  • % (function).
  • pt (function).
  • px (function).

3.1.6 css-lite/paren-css-lite.lisp

Dependency

lite-utility.lisp (file).

Source

css-lite.asd.

Parent Component

css-lite (system).


4 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

4.1 css-lite

Source

package.lisp.

Use List

common-lisp.

Public Interface
Internals

5 Definitions

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


Next: , Previous: , Up: Definitions   [Contents][Index]

5.1 Public Interface


Next: , Previous: , Up: Public Interface   [Contents][Index]

5.1.1 Special variables

Special Variable: *css-stream*
Package

css-lite.

Source

css-lite.lisp.

Special Variable: *indent-css*

Indicates if the properties of a selector should be indented or not.

There are three possible values:

* nil - The default value, and indicates that no indentation should be applied

* the symbol ’tab - Indicates that the properties should be indented using the #Tab character

* an integer greater than 0 - Indicates how many #Space characters should be used to indent the properties

Package

css-lite.

Source

css-lite.lisp.


5.1.2 Macros

Macro: css (&body rules)
Package

css-lite.

Source

css-lite.lisp.

Macro: css-string (&body rules)
Package

css-lite.

Source

css-lite.lisp.

Macro: make-css-func (func-name &body forms)
Package

css-lite.

Source

css-lite.lisp.

Macro: make-css-var (var-name var-val)
Package

css-lite.

Source

css-lite.lisp.


Previous: , Up: Public Interface   [Contents][Index]

5.1.3 Ordinary functions

Function: % (val)
Package

css-lite.

Source

lite-utility.lisp.

Function: comment (comment-string)
Package

css-lite.

Source

css-lite.lisp.

Function: css-id-name (symbol)
Package

css-lite.

Source

css-lite.lisp.

Function: inline-css (&rest properties)
Package

css-lite.

Source

css-lite.lisp.

Function: pt (val)
Package

css-lite.

Source

lite-utility.lisp.

Function: px (val)
Package

css-lite.

Source

lite-utility.lisp.


5.2 Internals


Next: , Previous: , Up: Internals   [Contents][Index]

5.2.1 Special variables

Special Variable: +newline+
Package

css-lite.

Source

css-lite.lisp.


Previous: , Up: Internals   [Contents][Index]

5.2.2 Ordinary functions

Function: css-comment-p (val)

Return T if ‘val’ is the start of a CSS comment, otherwise return NIL.

Package

css-lite.

Source

css-lite.lisp.

Function: css-func-p (val)
Package

css-lite.

Source

css-lite.lisp.

Function: css-selectors-to-string (selectors)
Package

css-lite.

Source

css-lite.lisp.

Function: css-var-p (val)
Package

css-lite.

Source

css-lite.lisp.

Function: expand-tree (tree)
Package

css-lite.

Source

css-lite.lisp.

Function: flatten (tree)
Package

css-lite.

Source

utility.lisp.

Function: process-css-properties (properties eval-vals &key newlines)
Package

css-lite.

Source

css-lite.lisp.

Function: process-css-rule (rule &key parent-selectors)
Package

css-lite.

Source

css-lite.lisp.

Function: selector-to-string (selector)
Package

css-lite.

Source

css-lite.lisp.

Function: to-string (x)
Package

css-lite.

Source

css-lite.lisp.


Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts


Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   %  
C   E   F   I   M   P   S   T  
Index Entry  Section

%
%: Public ordinary functions

C
comment: Public ordinary functions
css: Public macros
css-comment-p: Private ordinary functions
css-func-p: Private ordinary functions
css-id-name: Public ordinary functions
css-selectors-to-string: Private ordinary functions
css-string: Public macros
css-var-p: Private ordinary functions

E
expand-tree: Private ordinary functions

F
flatten: Private ordinary functions
Function, %: Public ordinary functions
Function, comment: Public ordinary functions
Function, css-comment-p: Private ordinary functions
Function, css-func-p: Private ordinary functions
Function, css-id-name: Public ordinary functions
Function, css-selectors-to-string: Private ordinary functions
Function, css-var-p: Private ordinary functions
Function, expand-tree: Private ordinary functions
Function, flatten: Private ordinary functions
Function, inline-css: Public ordinary functions
Function, process-css-properties: Private ordinary functions
Function, process-css-rule: Private ordinary functions
Function, pt: Public ordinary functions
Function, px: Public ordinary functions
Function, selector-to-string: Private ordinary functions
Function, to-string: Private ordinary functions

I
inline-css: Public ordinary functions

M
Macro, css: Public macros
Macro, css-string: Public macros
Macro, make-css-func: Public macros
Macro, make-css-var: Public macros
make-css-func: Public macros
make-css-var: Public macros

P
process-css-properties: Private ordinary functions
process-css-rule: Private ordinary functions
pt: Public ordinary functions
px: Public ordinary functions

S
selector-to-string: Private ordinary functions

T
to-string: Private ordinary functions

Jump to:   %  
C   E   F   I   M   P   S   T