This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--translate-item: calc(50% - 20px); | |
} | |
.x-translate { | |
box-sizing: content-box; | |
padding: 8px; | |
width: 24px; | |
height: 24px; | |
background-color: rgba(0,0,0, .8); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"foo": "Hello Template", | |
"repeatCount": 5 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin prefix($property, $value, $prefixes: ()) { | |
@each $prefix in $prefixes { | |
#{"--" + $prefix + "-" + $property}: #{$value}; | |
} | |
#{$property}: $value; | |
} | |
@mixin flexbox { | |
display: -webkit-box; | |
display: -moz-box; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When you load css bundle asyncronously this can happen: | |
>> FYI- bundling assets is a separate issue from CSS core features | |
1) it load: | |
.class-3 { color: green; } | |
<div class="class-3"> | |
2) it load | |
.class-1 { color: red; } | |
.class-2 { color: blue; } |
A Pen by Erik Isaksen on CodePen.
By locking the perspective on the body element and transforming elements in 3D on top of that, you can easily create parallax scrolling effects that don’t require JavaScript and can be much more performant as a result. Mixins can be found here: http://codepen.io/scottkellum/pen/Jwudg
Forked from Scott Kellum's Pen Sass parallax example.
A Pen by Secret Sam on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('web-platform', ["$ComponentSvc","$PolyfillSvc"]).component('ngw-picture', | |
["$components", function($components) { | |
return { | |
scope: {}, | |
link: function($scope, $customElement, $attrs) { | |
var srcSets = $customElement.find('ngw-src-set'); | |
// checks name for syntax - returns error if syntax is incorrect | |
// uses name to generate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON("package.json"), | |
concat: { | |
dest: { | |
files: { | |
'public/js/p3c.js': [ | |
'app/assets/js/*.js', | |
'app/assets/js/services/*.js', | |
'app/assets/js/controllers/*.js', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<polymer-element name="x-picture" attributes="src srcset title alt currentSrc media"> | |
<template> | |
<style> | |
x-picture { | |
text-align: center; | |
object-fit: contain; | |
object-position: center; | |
} |
NewerOlder