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
(function($) { | |
'use strict'; | |
/** | |
* Set all elements within the collection to have the same height. | |
*/ | |
$.fn.equalHeight = function() { | |
var heights = []; | |
$.each(this, function(i, element) { | |
var $element = $(element); |
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
function slugify($string) | |
{ | |
$string = strip_tags($string); | |
$string = remove_accents($string); | |
$string = preg_replace('|%([a-fA-F0-9][a-fA-F0-9])|', '---$1---', $string); | |
$string = str_replace('%', '', $string); |
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
<html> | |
<head> | |
( ... ) | |
</head> | |
<body data-utmcampaing="my-campaing" data-utmdate="20151105"> | |
<a href="http://some-address-to-go.com" data-utmterm="the_term">Some link</a> | |
<a href="http://some-address-to-go.com?with=query" data-utmterm="the_term">Some link with querystring</a> | |
<a href="http://some-address-to-go.com" no-utm>Some link not trackable</a> | |
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
@mixin fluid-type($min-font-size, $max-font-size, $min-vw: 480px, $max-vw: 1200px) { | |
$u1: unit($min-vw); | |
$u2: unit($max-vw); | |
$u3: unit($min-font-size); | |
$u4: unit($max-font-size); | |
@if $u1 == $u2 and $u1 == $u3 and $u1 == $u4 { | |
font-size: $min-font-size; | |
@if $min-vw != $max-vw { |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
.u-flex { display: flex; } | |
.u-flex--inline { display: inline-flex; } | |
.u-flex--alignCenter { align-items: center; } | |
.u-flex--alignStart { align-items: flex-start; } | |
.u-flex--alignEnd { align-items: flex-end; } | |
.u-flex--justifyCenter { justify-content: center; } | |
.u-flex--justifyStart { justify-content: flex-start; } | |
.u-flex--justifyEnd { justify-content: flex-end; } | |
.u-flex--justifyBetween { justify-content: space-between; } | |
.u-flex--justifyAround { justify-content: space-around; } |
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
/** | |
* jQuery on resize by @italo_dr (twitter) @italodr (github) | |
* Fix issue with iphone/ipad "resize" on height. When appears domain | |
* field and bottom menu. | |
* Add timer to launch function on resize end | |
*/ | |
var timer; | |
var windowWidth = $(window).width(); | |
$(window).on('resize', function(){ | |
if ($(window).width() != windowWidth) { |
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
function ScrollEvents() { | |
let opts = { | |
element: document.documentElement, | |
last_scroll_top: 0, | |
delta_up: 0, | |
delta_down: 0, | |
scroll_up_class: 'scroll-up', | |
scroll_down_class: 'scroll-down' | |
}; |
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
{"version":1,"resource":"file:///Users/italo/Sites/dockerized/kade-tech/.storybook/main.js","entries":[{"id":"hrVV.js","timestamp":1654636869640},{"id":"RgbU.js","timestamp":1654636961812},{"id":"BOeP.js","timestamp":1654673564885}]} |
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
@function breakpoint-generator($type, $size1, $size2: '', $orientation: '') { | |
@if $orientation != '' { | |
$orientation: " and (orientation: #{$orientation})"; | |
} | |
$mq: ''; | |
@if $type == 'min' { | |
$mq: "and (min-width: #{nth($size1, 1)})"; |
OlderNewer