Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/philschatz/skeleton-generator.css
Autogenerate styling for textbooks
https://github.com/philschatz/skeleton-generator.css
Last synced: about 2 months ago
JSON representation
Autogenerate styling for textbooks
- Host: GitHub
- URL: https://github.com/philschatz/skeleton-generator.css
- Owner: philschatz
- Created: 2014-06-19T17:37:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-22T22:25:00.000Z (over 10 years ago)
- Last Synced: 2024-10-13T16:43:48.690Z (3 months ago)
- Language: CSS
- Homepage: http://philschatz.com/2014/04/07/skeleton-generator/
- Size: 156 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This repo shows how to automatically create a skeleton file (for styling textbooks).
# Running
- `npm install`
- `./node_modules/.bin/lessc style/precalc.less` generates the CSS fileFor additional information see the [skeleton posts](http://philschatz.com/tags/#css) at [philschatz.com](http://philschatz.com).
# Directory Layout
- [./style/slots/](./style/slots/) contains abbreviated slot files to run the example
- [./style/skeleton/](./style/skeleton/) contains the bulk of the autogeneration code# Conventions Used
- _private_ mixins (local to a file) are prefixed with a `x-`
- 2 spaces indent
- all mixins are namespaced
- variable parameters should be used sparingly (ie `.foo(@var) {...}`)
- parametric mixins are used only to create empty base slots (ie `.foo(...) { .. }`) or for the skeleton
- the `@return: ` _hack_ is only used to define book-specific `.kinds()` and internally in the skeleton