Skip to content

Instantly share code, notes, and snippets.

@danmartin
danmartin / screen.scss
Created December 10, 2012 16:40
Sass Breakpoints Mixin
@mixin breakpoint($point) {
@if $point == sm-max {
@media (max-width: 460px) { @content; }
}
@else if $point == md-max {
@media (max-width: 800px) { @content; }
}
@else if $point == lg-max {
@media (max-width: 1024px) { @content; }
}
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<title>Twitter widget</title>
@danmartin
danmartin / SassMeister-input.scss
Created December 29, 2015 19:18
Generated by SassMeister.com.
// ----
// libsass (v3.3.2)
// ----
@mixin optional-at-root($sel) {
@at-root #{if(not &, $sel, selector-append(&, $sel))} {
@content;
}
}
@danmartin
danmartin / SassMeister-input.scss
Last active January 1, 2016 20:34
Generated by SassMeister.com.
// ----
// libsass (v3.3.2)
// ----
// Set sides and all as a list of booleans
$border-radius-list: (
all : (true, true, true, true),
top : (true true false false),
bottom : (false, false, true, true),
left : (true false false true),
@danmartin
danmartin / SassMeister-input.scss
Last active January 1, 2016 21:08
Generated by SassMeister.com.
// ----
// libsass (v3.3.2)
// ----
// https://web-design-weekly.com/2013/05/12/handy-sass-mixins/
// A mixin for all corners
@mixin border-radius($radius) {
-webkit-border-radius: $radius;
border-radius: $radius;
public function scopeNonRepConfig($query, $feature)
{
return $query->where('feature_name', '=', $feature)
->where('code', '=', '');
}
public function flipNonReps(){
return $this->nonRepConfig('configurator')->update('has_access', '=', 1);
}