seam

Symbolic-Expressions As Markup.
git clone git://git.knutsen.co/seam
Log | Files | Refs | README | LICENSE

commit 90b916d51475fec16e8fe421cb70e7351e527cdf
parent 13f0869f58bf5e33d59b48795f35abbe51c43d5f
Author: Demonstrandum <moi@knutsen.co>
Date:   Fri,  3 Jul 2020 15:21:11 +0100

Added `var(...)` function to CSS.

Diffstat:
MREADME.md | 5+++++
Msrc/assemble/css.rs | 5+++--
2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -16,6 +16,11 @@ Mainly this should be used as a library, such as from within a server, generating HTML (or any other supported markup) before it is served to the client. +### Current Formats + - XML + - HTML + - CSS + ### Using The Binary (Providing you have cloned this repo, and `cd`'d into it) diff --git a/src/assemble/css.rs b/src/assemble/css.rs @@ -18,7 +18,7 @@ impl CSSFormatter { pub const DEFAULT : &str = "\n"; /// All CSS functions, I might have missed a few. -const CSS_FUNCTIONS : [&str; 52] = [ +const CSS_FUNCTIONS : [&str; 53] = [ "attr", "blur", "brightness", "calc", "circle", "contrast", "counter", "counters", "cubic-bezier", "drop-shadow", "ellipse", "grayscale", "hsl", "hsla", "hue-rotate", "hwb", "image", "inset", @@ -28,7 +28,7 @@ const CSS_FUNCTIONS : [&str; 52] = [ "rotateX", "rotateY", "rotateZ", "saturate", "sepia", "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "skew", "skewX", "skewY", "symbols", "translate", "translate3d", "translateX", "translateY", "translateZ", - "url", + "url", "var" ]; /// The only four math operations supported by CSS calc(...), @@ -98,6 +98,7 @@ impl MarkupDisplay for CSSFormatter { return Ok(String::from(DEFAULT)); } self.generate(&mut doc)?; + doc += "/* Generated from symbolic-expressions, with SEAM */\n"; Ok(doc) }