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
<style> | |
em.sarcastic { | |
display: inline-block; | |
font-style: normal; | |
-webkit-transform: rotate(-15deg) skew(0, 15deg); | |
-moz-transform: rotate(-15deg) skew(0, 15deg); |
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
Headers as columns: | |
<table> | |
<tr> | |
<th scope="col">User costs</th> | |
<th scope="col">Business costs</th> | |
</tr> | |
<tr> | |
<td>What about your product might the user ignore if a form is onerous?</td> | |
<td>Where will you keep all of this stuff?</td> | |
</tr> |
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
Email regex: (supports pluses and dots in username) | |
/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/ | |
URL regex: (validates both with and without http://) | |
/^((http|https):\/\/)?(www[.])?([a-zA-Z0-9]|-)+([.][a-zA-Z0-9(-|\/|=|?)?]+)+$/ |
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
RewriteRule /assets_content/(.*)/_thumbs/(.*)\.svg$ /assets_content/$1/$2.svg [NC,L] |
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($){ | |
$(document).ready(function (){ | |
$('textarea[data-autoresize]').on('input propertychange', function() { | |
autoResize($(this)); | |
}); |
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
.columns { | |
display: block; | |
list-style-type: none; | |
margin-bottom: 24px; | |
-moz-column-count: 2; | |
-moz-column-gap: 24px; | |
-webkit-column-count: 2; | |
-webkit-column-gap: 24px; | |
column-count: 2; | |
column-gap: 24px; |
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 (!Modernizr.input.placeholder) { | |
$('*[placeholder]').each(function() { | |
placeholder = $(this).attr('placeholder'); | |
$(this).attr('value', placeholder).addClass('fakePlaceholder'); | |
}); |
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
// hides the yellow indication of an annotation | |
genius-referent { | |
background: transparent !important; | |
cursor: text !important; | |
} | |
// hides the "Annotate" popup that appears when you select text | |
genius-pre-annotation-prompt { | |
display: none !important; | |
} |