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

Unified Diff: src/site/samples/dnd/example/basics.css

Issue 30853002: Added several more HTML5 samples (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: Created 7 years, 2 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
Index: src/site/samples/dnd/example/basics.css
diff --git a/src/site/samples/dnd/example/basics.css b/src/site/samples/dnd/example/basics.css
new file mode 100644
index 0000000000000000000000000000000000000000..84b5a1bc7226363c264fe34e5fb94dd908dbf045
--- /dev/null
+++ b/src/site/samples/dnd/example/basics.css
@@ -0,0 +1,82 @@
+/*
+ Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+ for details. All rights reserved. Use of this source code is governed by a
+ BSD-style license that can be found in the COPYING file.
+*/
+
+body {
+ background-color: #F8F8F8;
+ font-family: 'Open Sans', sans-serif;
+ font-size: 14px;
+ font-weight: normal;
+ line-height: 1.2em;
+ margin: 15px;
+}
+
+/* Prevent the text contents of draggable elements from being selectable. */
+[draggable] {
+ -moz-user-select: none;
+ -khtml-user-select: none;
+ -webkit-user-select: none;
+ user-select: none;
+}
+
+.column {
+ background-color: #ccc;
+ -webkit-border-radius: 10px;
+ -moz-border-radius: 10px;
+ -ms-border-radius: 10px;
+ border: 2px solid #666;
+ border-radius: 10px;
+ -webkit-box-shadow: inset 0 0 3px #000;
+ -ms-box-shadow: inset 0 0 3px #000;
+ box-shadow: inset 0 0 3px #000;
+ cursor: move;
+ height: 150px;
+ float: left;
+ margin-right: 5px;
+ text-align: center;
+ -webkit-transition: -webkit-transform 0.2s ease-out;
+ -moz-transition: -moz-transform 0.2s ease-out;
+ -ms-transition: -moz-transform 0.2s ease-out;
+ transition: transform 0.2s ease-out;
+ width: 150px;
+}
+
+.column header {
+ background: -moz-linear-gradient(left center,
+ rgb(0, 0, 0), rgb(79, 79, 79), rgb(21, 21, 21));
+ background: -webkit-linear-gradient(linear, left top, right top,
+ color-stop(0, rgb(0, 0, 0)),
+ color-stop(0.5, rgb(79, 79, 79)),
+ color-stop(1, rgb(21, 21, 21)));
+ background: -webkit-linear-gradient(left center,
+ rgb(0, 0, 0), rgb(79, 79, 79), rgb(21, 21, 21));
+ background: -ms-linear-gradient(left center,
+ rgb(0, 0, 0), rgb(79, 79, 79), rgb(21, 21, 21));
+ border-bottom: 1px solid #ddd;
+ -webkit-border-top-left-radius: 10px;
+ -moz-border-radius-topleft: 10px;
+ -ms-border-radius-topleft: 10px;
+ border-top-left-radius: 10px;
+ -webkit-border-top-right-radius: 10px;
+ -moz-border-radius-topright: 10px;
+ -ms-border-radius-topright: 10px;
+ border-top-right-radius: 10px;
+ box-shadow: 5px;
+ color: #fff;
+ padding: 5px;
+ text-shadow: #000 0 1px;
+}
+
+.column.over {
+ border: 2px dashed #000;
+}
+
+.column.moving {
+ opacity: 0.25;
+ -webkit-transform: scale(0.8);
+ -moz-transform: scale(0.8);
+ -ms-transform: scale(0.8);
+ transform: scale(0.8);
+}
« no previous file with comments | « src/site/samples/appcache/example/packages/browser/interop.js ('k') | src/site/samples/dnd/example/basics.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698