This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The pseudo-element 'content' property doesnt accept normal (») style | |
* HTML entities. These variables below easy the pain of looking up the HEX codes... | |
* | |
* Referenced from http://www.danshort.com/HTMLentities/ | |
* | |
* TODO: Add all the other entities? Worth it? Some day? Maybe? | |
*/ | |
// Punctuation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// simple express server | |
var express = require('express'); | |
var app = express(); | |
var router = express.Router(); | |
app.use(express.static('public')); | |
app.get('/', function(req, res) { | |
res.sendfile('./public/index.html'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the $svg-sprite var is generated by the gulp-svg-sprites module | |
// and is a sass map containing all the svg sprite info. | |
$sprite: map-get($svg-sprite, sprite) !default; | |
$sprite-padding: map-get($sprite, padding); | |
$pngSpriteClass: '.no-svg'; | |
// function for merging sass maps | |
@function extend($map, $ext-map) { | |
@return map-merge($map, $ext-map); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// sprite mixin that can be used to include a sprite into media queries | |
// @include get-sprite($map, $sprite, $height, $width, $offset-x, $offset-y, $repeat); | |
// $map is the name of the sprite map, this is auto-generated as a global | |
// sass var when you do a (for instance) @import "sprites-x2/*.png" | |
// ---------- | |
// Example: @include get-sprite($sprites-x2-sprites, logo, false, false); | |
// | |
@mixin get-sprite($map, $sprite, $height: true, $width: true, $offset-x: 0, $offset-y: 0, $repeat: no-repeat) { | |
//http://compass-style.org/reference/compass/helpers/sprites/#sprite-file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
// store a var to the process cwd (current working directory) | |
var cwd = process.cwd(); | |
// use the time plugin for build completion time | |
require('time-grunt')(grunt); | |
// Project configuration. | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use like: | |
// | |
// h2 { | |
// @include rem(font-size, 18px); | |
// } | |
// | |
// or | |
// | |
// .box { | |
// @include rem(margin, 10px 5px 15px 5px); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php defined('BASEPATH') OR exit('No direct script access allowed'); | |
/** | |
* Blog Plugin | |
* | |
* Create lists of posts | |
* | |
* @author PyroCMS Dev Team | |
* @package PyroCMS\Core\Modules\Blog\Plugins | |
*/ | |
class Plugin_Blog extends Plugin |