Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # PostCSS SCSS Syntax [![Build Status][ci-img]][ci]
  2. <img align="right" width="95" height="95"
  3. title="Philosopher’s stone, logo of PostCSS"
  4. src="http://postcss.github.io/postcss/logo.svg">
  5. A [SCSS] parser for [PostCSS].
  6. **This module does not compile SCSS.** It simply parses mixins as custom
  7. at-rules & variables as properties, so that PostCSS plugins can then transform
  8. SCSS source code alongside CSS.
  9. [PostCSS]: https://github.com/postcss/postcss
  10. [ci-img]: https://img.shields.io/travis/postcss/postcss-scss.svg
  11. [SCSS]: http://sass-lang.com/
  12. [ci]: https://travis-ci.org/postcss/postcss-scss
  13. <a href="https://evilmartians.com/?utm_source=postcss">
  14. <img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg" alt="Sponsored by Evil Martians" width="236" height="54">
  15. </a>
  16. ## Install
  17. ```sh
  18. npm --save install postcss-scss
  19. ```
  20. or (if you use [Yarn](https://yarnpkg.com/))
  21. ```sh
  22. yarn add --dev postcss-scss
  23. ```
  24. ## Usage
  25. There are two ways to use this parser:
  26. ### 1. SCSS Transformations
  27. The main use case of this plugin is to apply PostCSS transformations directly
  28. to SCSS source code.
  29. For example, you can lint SCSS source with [Stylelint]
  30. and linter will automatically fix issues in the source.
  31. ```js
  32. // postcss.config.js
  33. module.exports = {
  34. syntax: 'postcss-scss',
  35. plugins: {
  36. }
  37. }
  38. ```
  39. [Stylelint]: http://stylelint.io/
  40. ### 2. Inline Comments for PostCSS
  41. Also you can use this parser just to add `//` single-line comment
  42. to your PostCSS project (without any Sass):
  43. ```scss
  44. :root {
  45. // Main theme color
  46. --color: red;
  47. }
  48. ```
  49. Note that you don’t need a special stringifier to handle the output; the default
  50. one will automatically convert single line comments into block comments.
  51. ```js
  52. // postcss.config.js
  53. module.exports = {
  54. parser: 'postcss-scss',
  55. plugins: {
  56. }
  57. }
  58. ```
  59. If you want Sass behaviour with removing inline comments, you can use
  60. [postcss-strip-inline-comments] plugin.
  61. [postcss-strip-inline-comments]: https://github.com/mummybot/postcss-strip-inline-comments