Skip to content

Instantly share code, notes, and snippets.

View mathcale's full-sized avatar
💃

Matheus Calegaro mathcale

💃
View GitHub Profile
@mathcale
mathcale / menuBacana.html
Created January 25, 2016 17:23
Submenu com efeito diagonal com CSS3 puro
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<title>Menu banaca CSS3</title>
<style>
* {
@mathcale
mathcale / background.scss
Created January 5, 2016 18:55
Perfect-fit CSS background
// By CSS-Tricks (SASS-ed by me)
$bgImage: "path/to/image.jpg";
html {
background: url($bgImage) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
@mathcale
mathcale / gulpfile.js
Last active July 25, 2016 18:36
Simple Gulp workflow for Sass and Uglify JS
var gulp = require("gulp"),
sass = require("gulp-sass"),
uglify = require("gulp-uglify"),
rename = require("gulp-rename"),
ignore = require("gulp-ignore");
var sassInput = "sources/stylesheets/**/*.scss";
var sassOutput = "public/stylesheets";
var jsInput = "sources/javascripts/*.js";
var jsOutput = "public/javascripts";