Skip to content

Instantly share code, notes, and snippets.

Avatar

Daniel Viedma dviedma

View GitHub Profile
View _homepage-hero.scss
.homepage-hero {
display: flex;
flex-direction: column;
margin-top: 70px;
margin-bottom: 5px;
@include breakpoint(tablet){
margin-top: 50px;
}
View _homepage-hero.scss
$nav-height: 70px;
.homepage-hero {
display: flex;
flex-direction: column;
margin-top: 70px;
margin-bottom: 5px;
@include breakpoint(tablet){
margin-top: 50px;
@dviedma
dviedma / SassMeister-input.scss
Created Nov 18, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
/* way 1: media query inside of the selector */
.error {
color: red;
@media screen and (max-width: 320px) {
color: blue;
}
@dviedma
dviedma / SassMeister-input.scss
Created Nov 18, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
// ----
// libsass (v3.2.5)
// ----
.error {
color: red;
@media screen and (max-width: 320px) {
color: blue;
}
View gist:9144621
describe("directive.calculateHeight", function(){
var $scope,
element,
$element,
$compile;
beforeEach(function(){
module("retail.navigation-ui", "string-utils");
element = angular.element("<ul calculate-height><li></li></ul>");
View gist:9120374
.button {
color: red;
background: blue;
@at-root #{&}--active {
color: green;
}
}
@dviedma
dviedma / SassMeister-input.scss
Last active Aug 29, 2015
Generated by SassMeister.com.
View SassMeister-input.scss
$icons {
search: "\f001";
checkmark: "\f002";
cancel: "\f003";
refresh: "\f004";
}
@each $icon, $code in $icons {
.icon-#{$icon}:before {
content: $code;
View gist:7935736
.factory("navigation", ["$rootScope", "$state", "experienceService",
function navigation($rootScope, $state, experienceService) {
var views;
$rootScope.stateParams = {};
experienceService.getAsync({})
.then(function(experience) {
console.log("experience: ",experience);
View jquery.plugin.boilerplate.js
(function($){
// private methods
var _<#privateMethodName#> = function(){};
// public methods
var methods = {
init: function(options){
if (this.hasInitialized){ return; }
You can’t perform that action at this time.