Skip to content

Instantly share code, notes, and snippets.

View jasonmelgoza's full-sized avatar
🏠
Working from home

Jason Melgoza jasonmelgoza

🏠
Working from home
View GitHub Profile
@function calculateWidth($cols, $margin) {
@return ((100% - (($cols - 1)*$margin)) / $cols)
}
@mixin one-whole {
width: 100%;
}
@mixin one-half {
$margin: 2;
@jasonmelgoza
jasonmelgoza / _variables.scss
Last active August 29, 2015 14:02
Bootstrap-Sass variable sheet
//
// Just the Variables
// https://gist.github.com/054d248ea40cb1a912eb.git
// For Bootstrap-Sass v3.1.1
// --------------------------------------------------
$bootstrap-sass-asset-helper: (twbs-font-path("") != unquote('twbs-font-path("")'));
// Colors
<div class="panel panel-default panel-activity">
<div class="panel-heading">
<h3 class="panel-title">Recent Activity</h3>
</div>
<div class="clearfix">
<div class="list-activity-date">Thursday, May 29, 2014</div>
<ul class="list-activity">
<li class="clearfix">
<div class="list-activity-row">
<div class="list-activity-column">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close">&times</button>
<h4>Recent Activity</h4>
</div>
<div class="modal-body modal-activity">
<div class="clearfix">
<div class="list-activity-date">Monday, June 23rd, 2014</div>
<ul class="list-activity">
<script>
$(window).resize(function() {
var windowWidth = $(window).width();
$('.screen-width').text(windowWidth + 'px');
});
</script>
<div id="debug" style="position:fixed;padding:0.3em 0.6em;background:#f1f1f1;font-size:0.6em;bottom:0;left:50%;">
<span class="screen-width">0</span>
</div>
element.style {
}
.modal.visible>.modal-view {
opacity: 1;
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
-webkit-transition: opacity 200ms linear,-webkit-transform 250ms cubic-bezier(0.4,1.5,.5,1);
-moz-transition: opacity 200ms linear,-moz-transform 250ms cubic-bezier(0.4,1.5,.5,1);
// http://css-tricks.com/transitions-only-after-page-load/
.preload *
-webkit-transition: none !important
-moz-transition: none !important
-ms-transition: none !important
-o-transition: none !important
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
<script src="http://momentjs.com/downloads/moment.min.js"></script>
<script src="http://momentjs.com/downloads/moment-timezone-with-data-2010-2020.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style>
body {
upstream designerUi {
server 127.0.0.1:8888;
}
upstream designerApi {
server 127.0.0.1:8888;
}
upstream catalogUi {
server 127.0.0.1:8889;
}
upstream catalogApi {