UNPKG

1.7 kBJavaScriptView Raw
1/**
2@license
3Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4This code may only be used under the BSD style license found at
5http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
6http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
7found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
8part of the polymer project is also subject to an additional IP rights grant
9found at http://polymer.github.io/PATENTS.txt
10*/
11
12import '@polymer/polymer/polymer-legacy.js';
13import '@polymer/iron-flex-layout/iron-flex-layout.js';
14import '@polymer/font-roboto/roboto.js';
15import {html} from '@polymer/polymer/lib/utils/html-tag.js';
16
17const template = html`
18<dom-module id="demo-pages-shared-styles">
19 <template>
20 <style>
21 body {
22 font-family: 'Roboto', 'Noto', sans-serif;
23 font-size: 14px;
24 margin: 0;
25 padding: 24px;
26 background-color: #fafafa;
27 }
28
29 .horizontal-section-container {
30 @apply --layout-horizontal;
31 @apply --layout-center-justified;
32 @apply --layout-wrap;
33 }
34
35 .vertical-section-container {
36 @apply --layout-vertical;
37 @apply --center-justified;
38 }
39
40 .centered {
41 max-width: 600px;
42 margin-left: auto;
43 margin-right: auto;
44 }
45
46 demo-snippet.centered-demo {
47 --demo-snippet-demo: {
48 @apply --layout-horizontal;
49 @apply --layout-wrap;
50 @apply --layout-center-justified;
51 };
52 }
53 </style>
54 </template>
55</dom-module>
56`;
57
58template.setAttribute('style', 'display: none;');
59document.head.appendChild(template.content);