Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1010)

Unified Diff: sky/framework/shadow.sky

Issue 999873002: Move sky-*.sky into framework/elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: One missing Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/framework/material-element.sky ('k') | sky/framework/sky-box.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/shadow.sky
diff --git a/sky/framework/shadow.sky b/sky/framework/shadow.sky
deleted file mode 100644
index 03f7eea3fcd78ee646c8642236651bf0f569dda8..0000000000000000000000000000000000000000
--- a/sky/framework/shadow.sky
+++ /dev/null
@@ -1,39 +0,0 @@
-<!--
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
--->
-<template>
- <style>
- :host([level="1"]) {
- box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
- }
- :host([level="2"]) {
- box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
- }
- :host([level="3"]) {
- box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
- }
- :host([level="4"]) {
- box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
- }
- :host([level="5"]) {
- box-shadow: 0 19px 38px rgba(0,0,0,0.30), 0 15px 12px rgba(0,0,0,0.22);
- }
- </style>
-</template>
-<script>
-import "dart:sky";
-
-HTMLStyleElement _kStyleElement;
-
-void applyTo(ShadowRoot shadowRoot) {
- shadowRoot.appendChild(_kStyleElement.cloneNode(deep: true));
-}
-
-_init(script) {
- HTMLTemplateElement template = script.owner.querySelector('template');
- _kStyleElement = template.content.querySelector('style');
-}
-</script>
-</sky-element>
« no previous file with comments | « sky/framework/material-element.sky ('k') | sky/framework/sky-box.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698