- Notifications
You must be signed in to change notification settings - Fork0
CLASSIE is the best friend of LASS - providing utilities and missing bits for SCSS to LASS conversion
License
NotificationsYou must be signed in to change notification settings
egao1980/classie
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
CLASSIE is intended to be loaded and used in background providing LASS SCSS-like functions.
(ql:quickload:classie)
CLASSIE provides basic arithmetic operations for values of various CSS related units of measure (in, pt, px) and aims to properly handle percent values. Additionally several utility functions are available:
- (:let …)* - similar to existing :let but works as CL (let* …)
- (values &rest args) - resolves and joins arguments to form CSS values list;
- (:include path) - includes external LASS file
- Color manipulation functions:(darken …),(lighten …),(fade-in …),(fade-out …) and(mix …) - see the corresponding SCSS functions
- (ceil …) - ceiling numbers that rounds 49.5% to 50%
- (ceiling …) - ceiling numbers that rounds 49.5% to 100% (as (ceiling 0.495) is 1.0)
CL-USER> (lass:compile-and-write'(a:background (ceil (*0.85"16px"))))"a{ background: 14.00px;}"
CL-USER> (lass:compile-and-write'(a:height (ceil (*0.85"16px"))))"a{ height: 14.00px;}"
CL-USER> (lass:compile-and-write'(div:width (+ 2in (ceil (* 85%"800px")))))"div{ width: 9.08in;}"
CL-USER> (lass:compile-and-write'(div:background (darken"#fff" 20%)))"div{ background: #CCCCCC;}"
CLASSIE provides ASDF resource typeclassie which allows to generate CSS file on system load. Main difference to LASS is the support for(:include …) directive.
CLASSIE is available athttp://ultralisp.org repository.
(ql:quickload:classie)
- Nikolai Matiushev (egao1980@gmail.com)
Copyright (c) 2020 Nikolai Matiushev (egao1980@gmail.com)
Licensed under the MIT License.