Skip to content

Instantly share code, notes, and snippets.

View erikpantzar's full-sized avatar
🎯
Focusing

Erik Pantzar erikpantzar

🎯
Focusing
View GitHub Profile
@erikpantzar
erikpantzar / _mixin_input_placeholder.scss
Created August 15, 2014 14:22
sass mixin for input::placeholder style
// Mixin to fix all prefixed versions to style placeholder :)
// source https://github.com/michaelsacca/Compass-Placeholder-Text-Mixin
@mixin input-placeholder {
&.placeholder { @content; }
&:-moz-placeholder { @content; }
&::-moz-placeholder { @content; }
&:-ms-input-placeholder { @content; }
&::-webkit-input-placeholder { @content; }
}
@erikpantzar
erikpantzar / jquery.contentToggler.js
Last active August 29, 2015 14:07
jquery.contentToggler.js
(function () {
/*
The trigger:
have the attribute: data-toggle-target= CLASSNAME
Then you can toggle All you waNtz
Close button:
Set the data-close-target and the class of things you want to hide
*/
@erikpantzar
erikpantzar / index.html
Created December 9, 2014 11:54
product-item-presentation
<div class="product-item">
<img src="" class="product-item-image" alt="" />
<h2 class="product-item-title"> PL01 Men’s Pullover </h2>
<div class="product-item-layer">
<div class="product-item-excerpt">
<p><strong>Produktkod:</strong> PW04</p>
<p>Modern passform<br>
Förstärkt nacksöm<br>
Snygga detaljer</p>
<?php
$_template = 'retailerlist';
$fields_content = new \CWP\FieldContainer($_template . "_settings", array(
'meta_box' => \CWP\MetaBox::Get('page_settings', array(
'title' => 'Sidinställningar',
'priority' => 'high',
'context' => 'side',
'none' => false,
@erikpantzar
erikpantzar / jquery.trackLinks.js
Created December 19, 2014 14:58
Google track Terese-s sajt
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>FBuzzz</title>
</head>
<body>
<script type="text/javascript">
/*
I've come across some abuse of poor ole Sass files
that has put it in bad shade for some developers out there.
(This also applies to JavaScript and alot of other things that
aren't really taught in school, and is self-learned good and bad)
Thought I'd explain my take on it. The good and bad parts
*/
@erikpantzar
erikpantzar / _map-and-loop.scss
Created June 4, 2015 11:41
sass map and for loop
.share-container {
float: left;
display: block;
a {
$link-size: 30px;
width: $link-size;
height: $link-size;
line-height: $link-size;
display: inline-block;
}
@erikpantzar
erikpantzar / data.json
Created June 16, 2015 08:51
shapes[0] -> data.json
{
"id": "0",
"time": "1434443853378",
"name": "Erik Pantzar, Front end developer",
"shapedata": {
"layer1": {
"form": "img",
"src": "< DATA URI HERE >"
},
"layer2": {