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.
Philipp Partosch 46a936d7de added all files to project 2 years ago
..
CHANGELOG.md added all files to project 2 years ago
LICENSE added all files to project 2 years ago
README.md added all files to project 2 years ago
camel-case.js added all files to project 2 years ago
extract.js added all files to project 2 years ago
get-template.js added all files to project 2 years ago
index.js added all files to project 2 years ago
literal.js added all files to project 2 years ago
object-parse.js added all files to project 2 years ago
object-parser.js added all files to project 2 years ago
object-stringifier.js added all files to project 2 years ago
object-stringify.js added all files to project 2 years ago
object-syntax.js added all files to project 2 years ago
object.js added all files to project 2 years ago
package.json added all files to project 2 years ago
template-parse.js added all files to project 2 years ago
template-parser-helper.js added all files to project 2 years ago
template-parser.js added all files to project 2 years ago
template-safe-parse.js added all files to project 2 years ago
template-safe-parser.js added all files to project 2 years ago
template-stringifier.js added all files to project 2 years ago
template-stringify.js added all files to project 2 years ago
template-tokenize.js added all files to project 2 years ago
un-camel-case.js added all files to project 2 years ago

README.md

PostCSS CSS-in-JS Syntax

NPM version Build Status

<img align=“right” width=“95” height=“95”

title="Philosopher’s stone, logo of PostCSS"
src="https://api.postcss.org/logo.svg">

PostCSS syntax for parsing CSS in JS literals:

Getting Started

First thing’s first, install the module:

npm install postcss-syntax @stylelint/postcss-css-in-js --save-dev

Use Cases

const postcss = require("postcss");
const stylelint = require("stylelint");
const syntax = require("postcss-syntax");
postcss([stylelint({ fix: true })])
  .process(source, { syntax: syntax })
  .then(function (result) {
    // An alias for the result.css property. Use it with syntaxes that generate non-CSS output.
    result.content;
  });

input:

import glm from "glamorous";
const Component1 = glm.a({
  flexDirectionn: "row",
  display: "inline-block",
  color: "#fff"
});

output:

import glm from "glamorous";
const Component1 = glm.a({
  color: "#fff",
  display: "inline-block",
  flexDirectionn: "row"
});

Advanced Use Cases

Add support for more css-in-js package:

const syntax = require("postcss-syntax")({
  "i-css": (index, namespace) => namespace[index + 1] === "addStyles",
  "styled-components": true
});

See: postcss-syntax

Style Transformations

The main use case of this plugin is to apply PostCSS transformations to CSS code in template literals & styles as object literals.