Skip to content

Instantly share code, notes, and snippets.

@milojennings
milojennings / index.html
Created May 10, 2013 17:27
A CodePen by FaceLord. Gravity Form Styling Sample
<div class="gravity-wrapper request-analysis-wrapper">
<div class="gf_browser_chrome gform_wrapper" id="gform_wrapper_4"><a id="gf_4" name="gf_4" class="gform_anchor"></a><form method="post" enctype="multipart/form-data" target="gform_ajax_frame_4" id="gform_4" action="/#gf_4">
<div class="gform_heading">
<h3 class="gform_title">Please Analyze My Website</h3>
<span class="gform_description">We would love to hear from you! Please fill out this form and we will get in touch with you shortly.</span>
</div>
<div class="gform_body">
<ul id="gform_fields_4" class="gform_fields top_label description_below"><li id="field_4_1" class="gfield gfield_contains_required"><label class="gfield_label" for="input_4_1">Company<span class="gfield_required">*</span></label><div class="ginput_container"><input name="input_1" id="input_4_1" type="te
@milojennings
milojennings / index.html
Created May 10, 2013 17:28
A CodePen by FaceLord. Gravity Form Styling Sample
<div class="gravity-wrapper request-analysis-wrapper">
<div class="gf_browser_chrome gform_wrapper" id="gform_wrapper_4"><a id="gf_4" name="gf_4" class="gform_anchor"></a><form method="post" enctype="multipart/form-data" target="gform_ajax_frame_4" id="gform_4" action="/#gf_4">
<div class="gform_heading">
<h3 class="gform_title">Please Analyze My Website</h3>
<span class="gform_description">We would love to hear from you! Please fill out this form and we will get in touch with you shortly.</span>
</div>
<div class="gform_body">
<ul id="gform_fields_4" class="gform_fields top_label description_below"><li id="field_4_1" class="gfield gfield_contains_required"><label class="gfield_label" for="input_4_1">Company<span class="gfield_required">*</span></label><div class="ginput_container"><input name="input_1" id="input_4_1" type="te
@milojennings
milojennings / index.html
Created May 22, 2013 22:22
A CodePen by FaceLord. Centering thumbnails with transform: translate mixin - Centers thumbnails verically and horizontall within a given size.
<ul>
<li class="thumbnail">
<div class="centered"><img src="http://placekitten.com/200/400" alt="" class="portrait" /></div>
</li>
<li class="thumbnail">
<div class="centered"><img src="http://placekitten.com/400/201" alt="" class="landscape" /></div>
</li>
<li class="thumbnail">
<div class="centered"><img src="http://placekitten.com/200/300" alt="" class="portrait" /></div>
</li>
@milojennings
milojennings / index.html
Created May 22, 2013 22:22
A CodePen by FaceLord. Centering thumbnails with transform: translate mixin - Centers thumbnails verically and horizontall within a given size.
<ul>
<li class="thumbnail">
<div class="centered"><img src="http://placekitten.com/200/400" alt="" class="portrait" /></div>
</li>
<li class="thumbnail">
<div class="centered"><img src="http://placekitten.com/400/201" alt="" class="landscape" /></div>
</li>
<li class="thumbnail">
<div class="centered"><img src="http://placekitten.com/200/300" alt="" class="portrait" /></div>
</li>
$my-icons-spacing: 10px; // give some space to avoid little pixel size issues on resize
@import "my-icons/*.png";
$my-icons-sprite-dimensions: true;
@include all-my-icons-sprites;
// the fun part
<?php
class kirbytextExtended extends kirbytext {
function __construct($text, $markdown=true) {
parent::__construct($text, $markdown);
$this->addTags('figure');
@milojennings
milojennings / dabblet.css
Created September 16, 2014 23:41
awesome card
/* awesome card */
@list-color: #000000;
@front-card-back: #156AEA;
@front-p: #ffffff;
@back-p: #000000;
container {
-webkit-perspective: 1000;
}
@milojennings
milojennings / dabblet.css
Last active August 29, 2015 14:06
Zig Zag divider w/ SVG shadow experiment (buggy)
body {
background:url(http://i.imgur.com/qKsVr.png);
}
.box {
width:400px;
background: white;
position: relative;
}
@milojennings
milojennings / functions.php
Last active August 29, 2015 14:27 — forked from l2aelba/functions.php
This is a Multilingual Wordpress functions to detect a language by pretty URLs like..`domain.com/en/``domain.com/postname/en/``domain.com/pagetname/en/`Add this code in your `functions.php`After added code go to `wp-admin/options-permalink.php` press `Save Changes`So you can use`<?php echo lang();?>``<?php if( lang() === "en" ) ?>`In your theme...
<?php
function lang_support() {
return array('en','fr'); // Add your support lang-code (1st place is a default)
}
function rewrite_lang(){
$langs = lang_support();
foreach($langs as $lang) {
add_rewrite_endpoint($lang,EP_PERMALINK|EP_PAGES|EP_ROOT|EP_CATEGORIES);
}
@milojennings
milojennings / git-completion.sh
Created October 5, 2015 10:16 — forked from evansolomon/git-completion.sh
Git auto-complete script
#!bash
#
# bash completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#