1.9.9 • Published 7 years ago
tapestry-css v1.9.9
Tapestry

CSS guidelines
Goals
- Maintainable OOCSS components
- Scalable code
Naming
- BEM - Block-element--modifier
- PascaleCase for component name
- camelCase for component childs
- Lowercase for modifiers
- Use
is-*andhas-*modifiers when needed
<div class="Component Component--modifier is-state">
<div class="Component-child"></div>
<div class="Component-otherChild"></div>
</div>Spacing and indentation
- Two spaces indent
- Space after
:property declaration - Space before
{rule declaration - Closing braces on a new line
.Component {
display: inline-block;
}Else
- Never use IDs
- No magic number
- Only use
!importanton utility classes - Max nesting level: 3
Development
Installation
npm install
npm install -g gulp pug-cli backstopjsRun
gulp // starts server and watch files, available on localhost:3000
gulp icons // builds iconsPre-commit and pre-push
Installation
Pre-commit hook ensures code has been linted.
npm run pre-commitBypass
To bypass the pre-commit, just add -n option.
git ci -n
git ci -nm "My commit message"Release
npm run release // builds, commits, push, tags, publishes to Bower and NPM and deploys to GitHub PagesDeploying
It can be run manually:
npm run deployTests
Tests are run with Travis and have to be updated before branch merges. They can be run locally with these following commands.
npm run lint // linter
backstop reference // visual tests: builds references
backstop test // visual tests: compares references with actual HEAD1.9.9
7 years ago
1.9.8
7 years ago
1.9.7
7 years ago
1.9.6
7 years ago
1.9.4
8 years ago
1.9.3
8 years ago
1.9.2
9 years ago
1.9.1
9 years ago
1.9.0
9 years ago
1.8.0
9 years ago
1.7.0
9 years ago
1.6.0
9 years ago
1.5.0
9 years ago
1.4.0
9 years ago
1.3.0
9 years ago
1.2.0
9 years ago
1.1.0
9 years ago
1.0.0
9 years ago
1.0.0-rc.3
9 years ago
1.0.0-rc.1
9 years ago
0.40.6
9 years ago
0.40.5
9 years ago
0.40.4
9 years ago
0.40.3
10 years ago
0.40.2
10 years ago
0.40.1
10 years ago
0.40.0
10 years ago
0.39.2
10 years ago
0.38.0
10 years ago
0.37.5
10 years ago
0.37.2
10 years ago
0.36.2
10 years ago