Skip to content

tenhobi/postcss-czech-stylesheets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Czech Republic PostCSS Czech Stylesheets

PostCSS plugin for writing Czech Style Sheets.

Installation

$ npm install --save-dev postcss-czech-stylesheets

Example

Input

.error-msg {
    zobrazení: blok;
    levý-rámeček: 3px pevné červené;
    velikost-písma: 15px;
    ška-řádku: 20px;
    pozadí: průhledné;
    barva: červená !kurva;
}

Output

.error-msg {
    display: block;
    border-left: 3px solid red;
    font-size: 15px;
    line-height: 20px;
    background: transparent;
    color: red !important;
}

Usage

Gulp

var gulp = require('gulp');
var rename = require('gulp-rename');
var postcss = require('gulp-postcss');
var autoprefixer = require('autoprefixer')
var czechCSS = require('postcss-czech-stylesheets');

gulp.task('default', function () {
    var processors = [
        czechCSS(),
        autoprefixer({ browsers: ['> 0%'] })
    ];
    
    return gulp.src('src/**/*.css')
        .pipe(postcss(processors))
        .pipe(rename('output.css'))
        .pipe(gulp.dest('build'));
});

About

PostCSS plugin for writing Czech Style Sheets

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •