Skip to content

Instantly share code, notes, and snippets.

@cythux
cythux / gist:5706064
Created June 4, 2013 13:49
scripts.php
<?php
/**
* Scripts and stylesheets
*
* Enqueue stylesheets in the following order:
* 1. /theme/assets/css/bootstrap.css
* 2. /theme/assets/css/bootstrap-responsive.css
* 3. /theme/assets/css/app.css
* 4. /child-theme/style.css (if a child theme is activated)
*
@cythux
cythux / Twitter Widget
Created August 12, 2013 08:18
Twitter Widget
<a class="twitter-timeline" href="https://twitter.com/cythu" data-widget-id="366834614301519872">Tweets von @cythu</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
@cythux
cythux / html5doctor.com Reset Stylesheet
Created August 21, 2013 09:16
HTML Doctor reset html5doctor.com Reset Stylesheet v1.6.1 Last Updated: 2010-09-17 Author: Richard Clark - http://richclarkdesign.com Twitter: @rich_clark
/*
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2010-09-17
Author: Richard Clark - http://richclarkdesign.com
Twitter: @rich_clark
*/
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
@font-face {
font-family: 'Font Name';
src: url('../fonts/fontname-webfont.eot');
src: url('../fonts/fontname-webfont.eot?iefix') format('eot'),
url('../fonts/fontname-webfont.woff') format('woff'),
url('../fonts/fontname-webfont.ttf') format('truetype'),
url('../fonts/fontname-webfont.svg#webfontjSpbZQRv') format('svg');
font-weight: normal;
font-style: normal;
}
@cythux
cythux / Triangles SASS mixin
Created August 21, 2013 10:30
Triangles SASS mixin Wordpress SASS and Sublime Text tipps
//Creates one triangle or two triangles (arrows) pointed to the opposite sides.
//Takes width, height, direction (top/left...)/orientation (horizontal, vertical), color, and from none up to two selectors arguments. Do not forget to put selector args in quotes if they contain dots, combinators etc.
//Cannot be used for creating triangles pointed at an angle (bottom-left etc...).
//To create one triangle using pseudoelement (:before): @include triangles(10px, 20px, top, red). The element currently in scope will be used.
//To create one triangle using real element: @include triangles(10px, 20px, top|bottom|left|right, red, li)
//To create two triangles using pseudoelements: @include triangles(10px, 20px, horizontal|vertical, red, li)
//To create two triangles using real elements: @include triangles(10px, 20px, horizontal|vertical, red, ".prev", ".next")
@mixin triangles($width, $height, $direction:horizontal, $color:black, $selector1:element, $selector2:"") {
$side1_this:left;
$side2_this:right;
/* http://meyerweb.com/eric/tools/css/reset/ */
/* v1.0 | 20080212 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
@cythux
cythux / Banded Page Template
Created August 24, 2013 06:51
Banded Page Template Copy the HTML and paste it between your <body> tags in a Foundation page.
<!-- Header and Nav -->
<div class="row">
<div class="large-3 columns">
<h1><img src="http://placehold.it/400x100&text=Logo"></h1>
</div>
<div class="large-9 columns">
<ul class="button-group right">
<li><a href="#" class="button">Link 1</a></li>
<li><a href="#" class="button">Link 2</a></li>
@cythux
cythux / Blog Page Template
Created August 24, 2013 06:52
Blog Page Template Copy the HTML and paste it between your <body> tags in a Foundation page.
<!-- Nav Bar -->
<div class="row">
<div class="large-12 columns">
<div class="nav-bar right">
<ul class="button-group">
<li><a href="#" class="button">Link 1</a></li>
<li><a href="#" class="button">Link 2</a></li>
<li><a href="#" class="button">Link 3</a></li>
<li><a href="#" class="button">Link 4</a></li>
@cythux
cythux / Feed Page Template
Created August 24, 2013 06:54
Feed Page Template Copy the HTML and paste it between your <body> tags in a Foundation page.
<!-- Header and Nav -->
<div class="row">
<div class="large-12 columns">
<div class="panel">
<h1>Feed Template</h1>
</div>
</div>
</div>
<!-- End Header and Nav -->
@cythux
cythux / Grid Page Template
Created August 24, 2013 06:56
Grid Page Template Copy the HTML and paste it between your <body> tags in a Foundation page.
<!-- Header and Nav -->
<nav class="top-bar">
<ul class="title-area">
<!-- Title Area -->
<li class="name">
<h1>
<a href="#">
Top Bar Title
</a>
</h1>