Skip to content

Instantly share code, notes, and snippets.

@jrdn91
jrdn91 / gist:6105456
Created July 29, 2013 16:08
CSS: iOS Form Webkit Overide Dissable
input, select, textarea, option, button, datalist, keygen, output {
-webkit-appearance: none;
}
@jrdn91
jrdn91 / html-css-rollover-solution
Created July 31, 2013 20:17
HTML/CSS: Rollover Solution
<!-- HTML -->
<div><img src="" class="rollover"/></div>
<div></div>
<!-- CSS -->
.rollover {
position: absolute;
opacity: 0;
-webkit-transition: opacity 500ms ease;
-moz-transition: opacity 500ms ease;
-ms-transition: opacity 500ms ease;
.container { width: 1436px; margin: auto; position: relative; }
.row > [class*="grid"]:last-child, .last { margin-right: 0; }
.grid1, .grid2, .grid3, .grid4, .grid5, .grid6, .grid7, .grid8, .grid9, .grid10, .grid11, .grid12 { float: left; margin-right: 40px; }
.grid1 { width: 83px; }
.grid2 { width: 206px; }
.grid3 { width: 329px; }
.grid4 { width: 452px; }
.grid5 { width: 575px; }
.grid6 { width: 698px; }
.grid7 { width: 821px; }
@jrdn91
jrdn91 / CSS: LightCMS Custom Suckerfish
Last active December 21, 2015 08:49
Css snippet to customize the lightcms suckerfish bars
.roundedTop, .roundedTop .rLeft, .roundedMiddle, .roundedMiddle .rLeft, .roundedBottom, .roundedBottom .rLeft {
background: transparent !important;
}
.actions, .inlineContentAdder {
background: #333 !important;
}
.inlineContentAdder a.vwInitialAdd, .inlineContentAdder a.vwInitialAdd:link {
border-left: 3px solid #1cd971 !important;
background: transparent !important;
}
$(document).ready(function() {
function filterPath(string) {
return string
.replace(/^\//,'')
.replace(/(index|default).[a-zA-Z]{3,4}$/,'')
.replace(/\/$/,'');
}
var locationPath = filterPath(location.pathname);
var scrollElem = scrollableElement('html', 'body');
@jrdn91
jrdn91 / jQuery: Firefox Scaling Fix
Created November 20, 2013 21:36
I wrote this little snippet to account for Firefox 22+ scaling sites larger on Windows to honor window DPI scaling settings. Requires the browser plugin found here... http://jquery.thewikies.com/browser/
var windows = (navigator.platform.toLowerCase() == 'win16' || navigator.platform.toLowerCase() == 'win32') ? true : false;
console.log(windows);
if($.browser.name == 'firefox' && $.browser.versionNumber >= 22 && windows == true){
$('html').css('-moz-transform', 'scale(0.8)');
}
@jrdn91
jrdn91 / print.js
Created November 14, 2017 14:22
JSONAPI Server Custom Handler
// RESOURCES/PRINT.JS
var jsonApi = require("jsonapi-server");
var printHandler = require("../handlers/printHandler.js");
let PrintHandler = new printHandler();
jsonApi.define({
resource: "print",
handlers: PrintHandler,
@jrdn91
jrdn91 / npm-debug.log
Created May 22, 2018 17:15
Material UI Next Docs Error
0 info it worked if it ends with ok
1 verbose cli [ '/Users/jordanriser/.nvm/versions/node/v6.11.2/bin/node',
1 verbose cli '/Users/jordanriser/.nvm/versions/node/v6.11.2/bin/npm',
1 verbose cli 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle [email protected]~prestart: [email protected]
6 silly lifecycle [email protected]~prestart: no script for prestart, continuing
7 info lifecycle [email protected]~start: [email protected]
@jrdn91
jrdn91 / index.js
Created February 11, 2019 20:42
Login Page
import React from 'react';
import { connect } from 'react-redux';
import { Container, Button, Form, Item, Input, Label } from 'native-base';
import {
NativeModules,
LayoutAnimation,
Animated,
View,
Keyboard,
ScrollView,