Skip to content

Instantly share code, notes, and snippets.

View lmartins's full-sized avatar

Luis Martins lmartins

  • Goodwin Media, Multiweb
  • Portugal
View GitHub Profile
@lmartins
lmartins / gist:3810251
Created October 1, 2012 08:12
scss: Adjust Color
adjust-color(#000, $lightness: 70%)
@lmartins
lmartins / gist:3810273
Created October 1, 2012 08:18
scss: Sprite Dimensions
width: image-width(sprite-file($icon-sprites, badgeNew));
height: image-height(sprite-file($icon-sprites, badgeNew));
@lmartins
lmartins / gist:3836485
Created October 4, 2012 21:10
scss: Responsive mixin
@mixin breakpoint($point) {
@if $point == mama-bear {
@media (max-width: 1250px) { @content; }
}
@if $point == baby-bear {
@media (max-width: 800px) { @content; }
}
@if $point == reverso-baby-bear {
@media (min-width: 800px) { @content; }
}
@lmartins
lmartins / index.html
Created October 17, 2012 13:05
An attempt to improve the user experience of the text box, by allowing the text to shrink to fit when it is full... and a slightly different focus effect.
<input type='text' id='resizer' placeholder='Fill me with text.'>
<!--
Resizing text, text box
A little experiment to improve the user experience of the text box by:
1. Using a focusing shadow effect when the box is being used
@lmartins
lmartins / gist:4007169
Created November 3, 2012 11:57 — forked from tomschlick/gist:3984898
Sublime Text 2 Keybindings to Resize Split Panes
[
{
"keys": ["super+shift+left"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.33, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
@lmartins
lmartins / gist:4055263
Last active October 12, 2015 16:28
Sublime Settings
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Solarized (Light).tmTheme",
"folder_exclude_patterns":
[
".git",
".sass-cache",
"coverage",
"log",
@lmartins
lmartins / gist:4096776
Created November 17, 2012 15:26
Sublime Keymap Settings
[
{
"keys": ["super+ctrl+left"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.33, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
@lmartins
lmartins / gist:5194675
Created March 19, 2013 09:10
First attempt at configuring Grunt to compile Sass and soft refresh the browser
/*global module:false*/
var path = require('path');
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var folderMount = function folderMount(connect, point) {
return connect.static(path.resolve(point));
};
module.exports = function(grunt) {
@lmartins
lmartins / gist:5273059
Created March 29, 2013 19:34
Still cant have the JS soft refresh with grunt running livereload.
var path = require('path');
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var folderMount = function folderMount(connect, point) {
return connect.static(path.resolve(point));
};
module.exports = function(grunt) {
// Project configuration.
@lmartins
lmartins / gist:5347664
Created April 9, 2013 17:31
Grunt config to install grunt-concurrent
'use strict';
var path = require('path');
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var folderMount = function folderMount(connect, point) {
return connect.static(path.resolve(point));
};
module.exports = function(grunt) {