Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miya0001/wordpress-generic-content-styles
https://github.com/miya0001/wordpress-generic-content-styles
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/miya0001/wordpress-generic-content-styles
- Owner: miya0001
- License: mit
- Created: 2016-02-26T07:22:59.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-01T11:57:34.000Z (almost 9 years ago)
- Last Synced: 2024-10-24T17:10:05.123Z (about 2 months ago)
- Language: HTML
- Size: 1.24 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# WordPress Generic Content Styles
[![Build Status](https://travis-ci.org/miya0001/wordpress-generic-content-styles.svg?branch=master)](https://travis-ci.org/miya0001/wordpress-generic-content-styles)
This is a Sass based project for the styles of WordPress content.
## How to use
Change directory into the your theme and then run following.
```
$ npm init
$ npm install gulp gulp-sass
$ npm install https://github.com/miya0001/wapuu-gallery-vr.git --save
```Place `gulpfile.js` like following.
```
'use strict';var gulp = require( 'gulp' );
var sass = require( 'gulp-sass' );gulp.task( 'sass', function () {
return gulp.src( 'node_modules/wordpress-generic-content-styles/sass/content-styles.scss' )
.pipe( sass().on( 'error', sass.logError ) )
.pipe( gulp.dest( './css/' ) );
} );
```Run `gulp`.
```
$ gulp sass
```Put the code like following into your theme's `functions.php`.
```
wp_enqueue_styles(
'wordpress-generic-content-styles',
get_stylesheet_directory_uri() . '/css/content-styles.css',
array(),
'v0.1.0'
);
```## How to contribute
```
$ git clone https://github.com/miya0001/wordpress-generic-content-styles.git
$ cd wordpress-generic-content-styles
$ npm install
$ atom .
$ npm run serve
```### Automated testing
```
$ bundle install --path vendor/bundle
$ npm test
```