Skip to content

Instantly share code, notes, and snippets.

View bhalash's full-sized avatar
💭
🌈

Mark bhalash

💭
🌈
  • Ireland
View GitHub Profile
@bhalash
bhalash / gist:9cafa6e13b0b7839191f
Last active August 29, 2015 14:18
Sass media query mixin
/**
* Media Queries
* -------------
* @category Stylesheet
* @package Tuairisc.ie Theme
* @author Mark Grealish <[email protected]>
* @copyright Copyright (c) 2015, Mark Grealish
* @license https://www.gnu.org/copyleft/gpl.html The GNU General Public License v3.0
* @version 2.0
* @link https://github.com/bhalash/tuairisc.ie
@mixin breakpoint($point, $size: '') {
$cell_min: 200px;
$cell_max: 599px;
$tablet_min: 600px;
$tablet_max: 1024px;
@if $point == smartphone {
@media only screen and (min-device-width: $cell_min) and (max-device-width: $cell_max) and (orientation: portrait),
only screen and (min-device-width: $cell_min) and (max-device-width: $cell_max) and (orientation: landscape) {
var nav = {
id: 'nav#top-menu',
anchor: 'nav#top-menu li',
content: '#content',
shadow: 'nav-box-shadow',
boxShadow: function() {
// Set box shadow at bottom of nav menu on window scroll.
if ($(window).scrollTop() === 0) {
$(nav.id).removeClass(nav.shadow);
} else {
@bhalash
bhalash / GPL.md
Created March 5, 2014 19:56 — forked from jnrbsn/GPL.md

GNU GENERAL PUBLIC LICENSE

Version 3, 29 June 2007

Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>

Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.