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
<%= render 'layouts/navbar' %> | |
# Put this flash message block between the navbar and the yield | |
<% flash.each do |name, msg| %> | |
<% unless flash_blacklist(name) %> | |
<%= content_tag(:div, class: flash_class(name)) do %> | |
<%= msg %> | |
<button type="button" class="close" data-dismiss="alert">×</button> | |
<% end %> | |
<% end %> |
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
# Store#performance | |
# This is the old way of doing checkbox collections. | |
# Note the hidden field tag to make sure that unchecked items are passed to the server | |
<fieldset class='form-group mx-sm-3'> | |
<legend class='pt-4'>Performance</legend> | |
<div class='row'> | |
<% hidden_field_tag 'store[performance_ids][]', nil %> | |
<% Performance.all.each do |performance| %> | |
<div class='col col-sm-6 pt-2'> |
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
describe 'Expectation Matchers' do | |
describe 'equivalence matchers' do | |
it 'will match loose equality with #eq' do | |
a = "2 cats" | |
b = "2 cats" | |
expect(a).to eq(b) | |
expect(a).to be == b # synonym for #eq |
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
// Foundation for Sites Settings | |
// ----------------------------- | |
// | |
// Table of Contents: | |
// | |
// 1. Global | |
// 2. Breakpoints | |
// 3. The Grid | |
// 4. Base Typography | |
// 5. Typography Helpers |
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
// | |
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ |
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
// you may need to first load jquery | |
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.0/jquery.js'></script> | |
$(document).ready(function () { | |
$('time span').remove(); | |
}); | |
// or if that doesn't work try this.... | |
var monthNames = [ "January", "February", "March", "April", "May", "June", |
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
.max-row-margin | |
width: 100% | |
margin-left: auto | |
margin-right: auto | |
max-width: initial |
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
. | |
_ | |
_._ _..._ .-', _.._(`)) | |
'-. ` ' /-._.-' ',/ | |
) \ '. | |
/ _ _ | \ | |
| a a / | | |
\ .-. ; | |
'-('' ).-' ,' ; | |
'-; | .' |
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
$min-font-size: 10 | |
$max-font-size: 50 | |
@mixin font-sizes | |
@for $i from $min-font-size through $max-font-size | |
.font-#{$i}px | |
font-size: ($i / 16)em | |
@extend .font-normal | |
@include font-sizes |
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
# The basic idea here is that you set a num of pixels before triggering the css "fixed" | |
# which would freeze whatever you div attribute you set, in this case"nav". | |
# This is a simple way to do it but there's a library you can use to do the same thing. | |
# http://imakewebthings.com/jquery-waypoints/shortcuts/sticky-elements/ | |
num = 250 #number of pixels before modifying styles | |
$(window).bind "scroll", -> | |
if $(window).scrollTop() > num | |
$("nav").addClass "fixed" | |
else |
NewerOlder