1+ {% set currentPageId = 'about' %}{% set pageTitle = 'About - CastleCSS' %}{% include "inc/header.html" %}
2+
3+ <!-- Main -->
4+ < div class ="b0_12 b4_14 b4_push_01 ">
5+ < div class ="p p-b3-3x ">
6+ < div class ="block ">
7+ < h1 > Style guidelines</ h1 >
8+ < p class ="intro "> The way to structured SCSS</ p >
9+ </ div >
10+ < div class ="block ">
11+ < h2 > Sass-lint</ h2 >
12+ < p > For style verifiation we use < a href ="https://github.com/sasstools/sass-lint " target ="_blank "> sass-lint</ a > . This ensures us to give you guidelines and warnings about writing mistakes in order, whitespace, nesting, etc</ p >
13+ < p > We have included a sass-lint.yml in the packages and it's connected to the package-json.</ p >
14+ < p > Example in Visual Studio Code:< br />
15+ < img src ="img/output-example.png " class ="full-img " alt ="">
16+ </ p >
17+ </ div >
18+ < div class ="block ">
19+ < h3 > See it directly in your editor</ h3 >
20+ < p > Sass-lint has a plugin for almost every editor, this means you just have to download it and you will see the output:</ p >
21+ < ul >
22+ < li > < a href ="https://atom.io/packages/linter-sass-lint " target ="_blank "> Atom</ a > </ li >
23+ < li > < a href ="https://github.com/skovhus/SublimeLinter-contrib-sass-lint " target ="_blank "> Sublime Text</ a > </ li >
24+ < li > < a href ="https://github.com/petetnt/brackets-sass-lint " target ="_blank "> Brackets</ a > </ li >
25+ < li > < a href ="https://github.com/idok/sass-lint-plugin " target ="_blank "> IntelliJ IDEA, RubyMine, WebStorm, PhpStorm, PyCharm</ a > </ li >
26+ < li > < a href ="https://marketplace.visualstudio.com/items?itemName=glen-84.sass-lint " target ="_blank "> Visual Studio Code</ a > </ li >
27+ < li > < a href ="https://github.com/gcorne/vim-sass-lint " target ="_blank "> Vim</ a > </ li >
28+ </ ul >
29+ </ div >
30+ < div class ="block ">
31+ < pre class ="brush: css; ">
32+ ######################### ## CastleCSS SCSS Lint File ######################### # Linter Options options: # Don't merge
33+ default rules merge-default-rules: false # Set the formatter to 'html' formatter: html # Output file instead of logging results
34+ output-file: 'linters/sass-lint.html' # Raise an error if more than 50 warnings are generated max-warnings: 50 # File Options
35+ files: include: 'scss/**/*.s+(a|c)ss' ignore: - 'scss/**/.css' # Rule Configuration rules: extends-before-mixins: 2 class-name-format:
36+ - 2 - convention: 'hyphenatedlowercase' declarations-before-nesting: true extends-before-declarations: 2 force-element-nesting:
37+ true force-pseudo-nesting: true function-name-format: - 2 - convention: 'hyphenatedlowercase' hex-length: 'short' no-color-keywords:
38+ true hex-notation: - 2 - style: lowercase empty-line-between-blocks: - 1 - include: true - allow-single-line-rulesets: false
39+ placeholder-in-extend: 2 leading-zero: false - 1 nesting-depth: - 1 - max-depth: 3 mixin-name-format: - 2 - convention: 'hyphenatedlowercase'
40+ mixins-before-declarations: - 2 - exclude: - breakpoint - mq no-warn: 1 no-debug: 1 no-ids: 1 space-after-colon: - 2 - include:
41+ true space-after-comma: - 2 - include: true space-before-brace: - 2 - include: true space-before-colon: - 2 - include: false
42+ space-after-bang: false trailing-semicolon: - 2 - include: true url-quotes: - 2 shorthand-values: - 2 - allowed-shorthands:
43+ - 1 - 2 no-important: 2 no-invalid-hex: 2 no-trailing-whitespace: 1 placeholder-name-format: - 2 - convention: 'hyphenatedlowercase'
44+ indentation: - 2 - size: tab property-sort-order: - 1 - order: - content - display - position - z-index - top - right - bottom
45+ - left - flex-direction - align-items - justify-content - overflow - overflow-x - overflow-y - margin - margin-top - margin-right
46+ - margin-bottom - margin-left - padding - padding-top - padding-right - padding-bottom - padding-left - min-width - width
47+ - min-height - height - vertical-align - white-space - font - font-style - font-size - font-weight - text-align - text-transform
48+ - font-decoration - color - background-color - background - transition - border-radius ignore-custom-properties: true variable-for-property:
49+ - 2 - properties: - zero-unit: - 2
50+ </ pre >
51+ </ div >
52+ </ div >
53+ </ div >
54+ <!-- End main -->
55+
56+ {% include "inc/footer.html" %}
0 commit comments