Permalink
Browse files

reorg: Renamed example to samples (Dart 1.12)

  • Loading branch information...
MikeMitterer committed Sep 1, 2015
1 parent 9ab5b39 commit 34e0563781515c69fecda6576ea7c2ee8b646c55
Showing 974 changed files with 64,161 additions and 58 deletions.
@@ -95,10 +95,9 @@ class DomRenderer {
});
} on Error {
_logger.shout("Invalid content:\n\t$content\n"
} on Error catch (e) {
_logger.shout("Invalid content:\n\t$content\n(Orig. Error: $e)\n"
"Usually this error occures if content has not just ONE single root element.");
//throw e;
}
});
@@ -165,11 +164,13 @@ class DomRenderer {
dom.NodeValidator _validator() {
final dom.NodeValidator validator = new dom.NodeValidatorBuilder.common() // html5 + Templating
..allowNavigation()
..allowImages()
..allowTextElements()
..allowInlineStyles()
..allowSvg()
..add(new _AllowAllAttributesNodeValidator());
return validator;
@@ -218,7 +218,7 @@ class MaterialRepeat extends MdlTemplateComponent {
final dom.Element templateTag = _templateTag;
_template = templateTag.innerHtml.trim().replaceAll(new RegExp(r"\s+")," ").replaceAll(new RegExp(r""),"");
// _logger.info("Template: ${_template}");
//_logger.info("Template: |${_template}|");
templateTag.remove();
_mustacheTemplate = new Template(template,htmlEscapeValues: false);
File renamed without changes.
View
@@ -0,0 +1,94 @@
html, body {
margin: 0;
padding: 0;
}
h1, h2 {
font-family: 'Roboto','Helvetica','Arial',sans-serif;
font-weight: 400;
}
h2 {
font-size: 24px;
line-height: 1.35;
margin-top: 0.66em;
margin-bottom: 0.66em;
}
.ribbon {
width: 100%;
height: 30vh;
}
.demo-page > .mdl-layout__container > .mdl-layout > * {
flex-shrink: 0;
}
.demo-page > .mdl-layout__container > .mdl-layout > main.mdl-layout__content.mdl-layout__content {
margin-top: -25vh;
}
/*header.mdl-layout__header {*/
/*display: flex !important;*/
/*}*/
.container {
max-width: 1600px;
width: 100%;
margin: 0 auto;
}
.content {
border-radius: 2px;
padding: 24px;
}
.mdl-layout__content .demo-section { min-height: 500px; }
.mdl-mini-footer {
padding-top: 12px;
padding-bottom: 12px;
}
#view-source {
position: fixed;
display: block;
right: 0;
top: 37px;
margin-right: 40px;
z-index: 900;
}
.sitegen-link, .mm-link { margin-bottom: 0; }
.is-small-screen .sitegen-link .additional-info { display: none; }
.mm-link { font-size: 12px; }
/*
Solves bug in grid...
*/
@media (max-width: 479px) {
.mdl-grid {
padding: 0;
}
}
@media (max-width: 640px) {
.mm-link {
display: none;
}
}
@media (max-width: 839px) and (min-width: 480px) {
.mdl-grid {
padding: 0;
}
}
@media (max-width: 850px) {
#view-source {
top: 29px;
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,110 @@
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* Copyright (c) 2015, Michael Mitterer (office@mikemitterer.at),
* IT-Consulting and Development Limited.
*
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* TOOLTIP */
.demo-page--animation, .demo-section--animation {
/* Outside the view, on the left.
We leave the view when moving to this state, so we use fast-out-linear-in. */
/* Left side.
We enter the view when moving to this state, so we use linear-out-slow-in. */
/* Right side.
We're always visible when moving to this state, so we use default. */
/* Outside the view, on the right.
We leave the view when moving to this state, so we use fast-out-linear-in. */
/* Right side.
We enter the view when moving to this state, so we use linear-out-slow-in. */
/* Left side.
We're always visible when moving to this state, so we use default. */ }
.demo-page--animation .demo-animation, .demo-section--animation .demo-animation {
height: 200px;
width: 300px;
padding: 0;
background: none; }
.demo-page--animation .demo-animation__container, .demo-section--animation .demo-animation__container {
position: relative;
overflow: hidden;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
text-align: center;
background-color: #ddd; }
.demo-page--animation .demo-animation__container-foreground, .demo-section--animation .demo-animation__container-foreground {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
z-index: 100; }
.demo-page--animation .demo-animation__container-background, .demo-section--animation .demo-animation__container-background {
line-height: 200px;
z-index: -100; }
.demo-page--animation .demo-animation--position-0, .demo-section--animation .demo-animation--position-0 {
left: -102px; }
.demo-page--animation .demo-animation--position-1, .demo-section--animation .demo-animation--position-1 {
left: 20px; }
.demo-page--animation .demo-animation--position-2, .demo-section--animation .demo-animation--position-2 {
left: 180px; }
.demo-page--animation .demo-animation--position-3, .demo-section--animation .demo-animation--position-3 {
left: 302px; }
.demo-page--animation .demo-animation--position-4, .demo-section--animation .demo-animation--position-4 {
left: 180px; }
.demo-page--animation .demo-animation--position-5, .demo-section--animation .demo-animation--position-5 {
left: 20px; }
.demo-page--animation .demo-animation__movable, .demo-section--animation .demo-animation__movable {
background-color: blue;
border-radius: 2px;
display: block;
height: 100px;
width: 100px;
position: absolute;
top: 50px;
transition-property: left;
transition-duration: 0.2s; }
/*# sourceMappingURL=demo.css.map */
@@ -0,0 +1,95 @@
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.demo-animation {
height: 200px;
width: 300px;
padding: 0;
background: none;
}
.demo-animation__container {
position: relative;
overflow: hidden;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
text-align: center;
background-color: #ddd;
}
.demo-animation__container-foreground {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
z-index: 100;
}
.demo-animation__container-background {
line-height: 200px;
z-index: -100;
}
/* Outside the view, on the left.
We leave the view when moving to this state, so we use fast-out-linear-in. */
.demo-animation--position-0 {
left: -102px;
}
/* Left side.
We enter the view when moving to this state, so we use linear-out-slow-in. */
.demo-animation--position-1 {
left: 20px;
}
/* Right side.
We're always visible when moving to this state, so we use default. */
.demo-animation--position-2 {
left: 180px;
}
/* Outside the view, on the right.
We leave the view when moving to this state, so we use fast-out-linear-in. */
.demo-animation--position-3 {
left: 302px;
}
/* Right side.
We enter the view when moving to this state, so we use linear-out-slow-in. */
.demo-animation--position-4 {
left: 180px;
}
/* Left side.
We're always visible when moving to this state, so we use default. */
.demo-animation--position-5 {
left: 20px;
}
.demo-animation__movable {
background-color: red;
border-radius: 2px;
display: block;
height: 100px;
width: 100px;
position: absolute;
top: 50px;
transition-property: left;
transition-duration: 0.2s;
}
Oops, something went wrong.

0 comments on commit 34e0563

Please sign in to comment.