Skip to content

Instantly share code, notes, and snippets.

View mikedup's full-sized avatar

Mike Davis mikedup

View GitHub Profile
@mikedup
mikedup / marketo_overrides.css
Last active December 28, 2015 17:29
Kony Marketo mobile style overrides
.lpeRegForm:after { visibility: hidden; display: block; content: ""; clear: both; height: 0; }
li#mktFrmButtons input#mktFrmSubmit { border: none; border-radius: 4px; box-shadow: none; margin-bottom: 30px; padding: 10px 20px !important; }
@media all and (max-width: 480px) {
.lpeRegForm { padding-bottom: 30px; }
.lpeRegForm ul li { clear: left !important; }
.mktField label { margin: 15px 0 0 0; }
.mktFormText, .mktFormTextarea, .mktFormSelect { margin-top: -5px; }
li#mktFrmButtons input#mktFrmSubmit { width: 100% !important; }
}
@mikedup
mikedup / scrollEvent.js
Created October 30, 2013 16:15
Efficient Scroll Events
$(document).ready(function() {
// Fixed sidebar
var scrolled = false;
var scrollPos;
var sidebarPos = $('#sidebar').offset().top;
$(window).scroll(function() {
scrolled = true;
});
@mikedup
mikedup / gist:6981842
Last active December 25, 2015 13:09
Publet FJ temp styles
div.table-of-contents { margin-top: 17px; }
div.table-of-contents h1 { font: bold 40px serif; padding-bottom: 80px; text-align: center; text-transform: uppercase; }
div.table-of-contents h4 { color: #363636; font: italic 12px serif; margin-bottom: 0; margin-top: 50px; text-align: center; }
div.table-of-contents ul li { margin: 20px 0; }
div.table-of-contents ul li a { font: bold 20px serif; text-decoration: none; }
div.sep { background: #9A9A9A; height: 1px; margin: 30px 0; width: 100%; }
header { background: #323A45; left: 0; height: 50px; margin: 0 !important; position: fixed; top: 0; width: 100%; z-index: 51; }
header h1 { color: transparent; display: block; float: left; width: 10%; }