Skip to content

Instantly share code, notes, and snippets.

{
properties: {
user: {
type: Object
},
route: {
type: Object,
notify: true
},
.has-a-data-url {
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiP…pZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9+IA==), none 0 0;
}
:host {
color: blue;
color: var(--gets-applied_-_color);
--gets-applied_-_color: red;;
--big_-_foo1: bar1; --big_-_foo2: bar2; --big_-_foo3: bar3; --big_-_foo4: bar4; --big_-_foo5: bar5; --big_-_foo6: bar6; --big_-_foo7: bar7; --big_-_foo8: bar8; --big_-_foo9: bar9; --big_-_background: linear-gradient(var(--color1), var(--color2) calc(var(--length1)*1px)) 0;;
}
.has-a-data-url {
background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9+IA==), none 0 0;
}
:host {
color: blue;
@apply --gets-applied;
--gets-applied: { color: red; };
--big: {
foo1: bar1;
require('babel-core/register');
const { Parser, NodeFactory, Stringifier, nodeType } = require('../src/shady-css');
class MixinApplyRegistrar extends NodeFactory {
constructor() {
super();
// A map of mixin names to a list of custom declaration nodes that represent
// a "desugared" representation of those mixins. The desugared version is
// an array of custom properties:
<!-- Idempotently create a CouchDB index on the value field -->
<carbon-pouchdb-index
db-name="carbon-pouchdb-demo"
fields='["value"]'>
</carbon-pouchdb-index>
<!-- Declarative conflict resolution strategy -->
<carbon-pouchdb-conflict-resolution
strategy="firstWriteWins">
</carbon-pouchdb-conflict-resolution>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Hemingway Word Processor</title>
<style>
@keyframes fadeAway {
0% {
opacity: 1
<carbon-firebase-storage
id="storage"
location="https://carbon-firebase-test.firebaseio.com/demo"
data="{{data}}">
</carbon-firebase-storage>
<carbon-persistence-service
id="persistence"
data="{{data}}"
persisted-data="{{persistedData}}"
<word-art foreground="😂" background="🍕" text="foobar">
@cdata
cdata / polytiming.user.js
Last active March 30, 2016 01:12
Polymer timing user script
// ==UserScript==
// @name PolyTiming
// @namespace PolyTiming
// @include *
// @version 1
// @run-at document-start
// @grant none
// ==/UserScript==
(function(window) {
@cdata
cdata / chrome-secure-shell-user-css.css
Created March 18, 2016 20:10
Custom CSS for Chrome Secure Shell App
* {
text-rendering: optimizeSpeed;
}