Skip to content

Instantly share code, notes, and snippets.

View gisu's full-sized avatar

sascha fuchs gisu

View GitHub Profile
@gisu
gisu / SassMeister-input-HTML.html
Last active August 29, 2015 14:26
Generated by SassMeister.com.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div class="container">
<div class="left"></div>
<div class="right"></div>
@gisu
gisu / bem.scss
Last active August 29, 2015 14:24
Sass Component Build
// Define the global API Var, otherwise
// the Components throw an error becaus there
// need a outer API Map for Merging
$api: ();
// Build a BEM Element
//
// @param {string} $name - The selector name
@mixin e($name) {
@at-root {
@gisu
gisu / SassMeister-input-HTML.jade
Last active August 29, 2015 14:23
Generated by SassMeister.com.
.blubb__1
.blubb__2
.blubb__3
.blubb__4
.blubb__5
.blubb__6
.blubb__7
.blubb__8
.blubb__9
.blubb__10
@gisu
gisu / SassMeister-input-HTML.jade
Last active August 29, 2015 14:23
Generated by SassMeister.com.
.blubb__1
.blubb__2
.blubb__3
.blubb__4
.blubb__5
.blubb__6
.blubb__7
.blubb__8
.blubb__9
.blubb__10
<?php
// For professional Wordpress Pages
// Buisness Page with Emoji Support makes no sense.
/**
* Remove fucking Emoji Support
*/
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
@gisu
gisu / gulp-me.js
Last active August 29, 2015 14:17
gulp.task('rubysass', function () {
return rubysass(sassSrc, { sourcemap: true })
.on("error", notify.onError("Sass Compile Error!"))
.on('error', function (err) { console.log(err.message); })
.pipe(prefix({
browsers: ["last 2 version", "> 1%", "ie 9", "chrome 30", "firefox 24"],
cascade: false
}))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(targetDirCSS));
@gisu
gisu / SassMeister-input-HTML.html
Last active August 29, 2015 14:10
Generated by SassMeister.com.
<div bananna>
<div bananna__fruit>
Bananna
</div>
</div>
<div bananna>
<div bananna__fruit=too-fresh>
Bananna
</div>
/**
* Smart Append Selectors
*
* @param {string} $name - Name of the Tag
* @param {string|bool} $mod - Name of the modifier
* @param {bool} $context - For nested selector
* @param {string} $name - Name from the Tag
*/
@mixin append($tag, $mod: false, $context: false) {
@gisu
gisu / SassMeister-input.scss
Created November 19, 2014 13:58
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
$color: (
pink: #ff00fa
);
$header-comp: (
@gisu
gisu / SassMeister-input-HTML.html
Created August 27, 2014 13:44
Generated by SassMeister.com.
<div class="websiteWrapper">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus quis lectus metus, at posuere neque. Sed pharetra nibh eget orci convallis at posuere leo convallis. Sed blandit augue vitae augue scelerisque bibendum. Vivamus sit amet libero turpis, non venenatis urna. In blandit, odio convallis suscipit venenatis, ante ipsum cursus augue.
</div>