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
If you have a link with an icon, you can put the icon in a ::before pseudo element. | |
However, IE will add the underline also the to icon which is not the case in other browsers. | |
Also the link will have a underline not exactly below the text, it will cover also some part of the | |
left side, the reason for that is because the HTML white spacing. | |
Also you shouldn't add another class on the same element which changes padding-left because | |
you will override the one needed on the link | |
The best solution which will cover everything: | |
%icon-base { |
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
// Resource https://medium.com/@hayavuk/vertically-center-variable-height-elements-inside-a-container-using-css-2a2aa9dbe032 | |
// NOTE: this doesn't work with min-height set on the parent | |
@mixin vc-parent() { | |
white-space: nowrap; | |
&:after { | |
content: ''; | |
display: inline-block; | |
height: 100%; |
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
If you need to download large amount of files without but bogging down the app but still need to verify them through rails | |
https://mattbrictson.com/accelerated-rails-downloads |
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
Tags - http://kb.mailchimp.com/merge-tags/all-the-merge-tags-cheat-sheet?_ga=1.81082448.691311002.1458641298 | |
Editable Content Areas - http://kb.mailchimp.com/templates/code/create-editable-content-areas-with-mailchimps-template-language | |
Footer Content - http://kb.mailchimp.com/campaigns/design/html-code-for-footer-content | |
Getting Started with MailChimp’s Template Language - http://kb.mailchimp.com/templates/code/getting-started-with-mailchimps-template-language |
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
;[Element].forEach(function(self){ | |
self.prototype.eventListenerList = {}; | |
self.prototype._addEventListener = self.prototype.addEventListener; | |
self.prototype.addEventListener = function(type, handle, useCapture) { | |
useCapture = useCapture === void 0 ? false : useCapture; | |
var node = this; | |
node._addEventListener(type, handle, useCapture); |
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
// http://evanhahn.com/detect-global-javascript-variables-using-iframes/ | |
(function () { | |
// Create an iframe and put it in the <body>. | |
var iframe = document.createElement('iframe') | |
document.body.appendChild(iframe) | |
// We'll use this to get a "pristine" window object. | |
var pristineWindow = iframe.contentWindow.window |
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
var docWidth = document.documentElement.offsetWidth; | |
[].forEach.call(document.querySelectorAll('*'), function(el) { | |
if (el.offsetWidth > docWidth) { | |
console.log(el); | |
} | |
}); |
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
@font-face { | |
font-family: 'Helvetica Neue'; | |
src: url('HelveticaNeueLTPro-Lt.eot'); | |
src: url('HelveticaNeueLTPro-Lt.eot?#iefix') format('embedded-opentype'), | |
local('Helvetica Neue'), url('HelveticaNeueLTPro-Lt.otf') format('opentype'), | |
url('HelveticaNeueLTPro-Lt.ttf') format('truetype'), | |
url('HelveticaNeueLTPro-Lt.woff') format('woff'), | |
url('HelveticaNeueLTPro-Lt.woff2') format('woff2'); | |
font-weight: 100; | |
font-style: normal; |
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
.grid { | |
display: table; | |
table-layout: fixed; | |
width: 100%; | |
} | |
.col { | |
display: table-cell; | |
} |
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
/* From: https://jsfiddle.net/josedvq/3HG6d/ */ | |
<div class="triangle-up"></div> | |
<div class="triangle-right"></div> | |
<div class="triangle-down"></div> | |
<div class="triangle-left"></div> |
NewerOlder