@haxtheweb/haxcms-nodejs
Version:
HAXcms single and multisite nodejs server, api, and administration
97 lines (96 loc) • 3.17 kB
JavaScript
/**
@license
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
import"../../polymer/polymer-legacy.js";import"../shadow.js";import{html as a}from"../../polymer/lib/utils/html-tag.js";const e=a`
<dom-module id="paper-material-styles">
<template>
<style>
html {
--paper-material: {
display: block;
position: relative;
};
--paper-material-elevation-1: {
@apply --shadow-elevation-2dp;
};
--paper-material-elevation-2: {
@apply --shadow-elevation-4dp;
};
--paper-material-elevation-3: {
@apply --shadow-elevation-6dp;
};
--paper-material-elevation-4: {
@apply --shadow-elevation-8dp;
};
--paper-material-elevation-5: {
@apply --shadow-elevation-16dp;
};
}
.paper-material {
@apply --paper-material;
}
.paper-material[elevation="1"] {
@apply --paper-material-elevation-1;
}
.paper-material[elevation="2"] {
@apply --paper-material-elevation-2;
}
.paper-material[elevation="3"] {
@apply --paper-material-elevation-3;
}
.paper-material[elevation="4"] {
@apply --paper-material-elevation-4;
}
.paper-material[elevation="5"] {
@apply --paper-material-elevation-5;
}
/* Duplicate the styles because of https://github.com/webcomponents/shadycss/issues/193 */
:host {
--paper-material: {
display: block;
position: relative;
};
--paper-material-elevation-1: {
@apply --shadow-elevation-2dp;
};
--paper-material-elevation-2: {
@apply --shadow-elevation-4dp;
};
--paper-material-elevation-3: {
@apply --shadow-elevation-6dp;
};
--paper-material-elevation-4: {
@apply --shadow-elevation-8dp;
};
--paper-material-elevation-5: {
@apply --shadow-elevation-16dp;
};
}
:host(.paper-material) {
@apply --paper-material;
}
:host(.paper-material[elevation="1"]) {
@apply --paper-material-elevation-1;
}
:host(.paper-material[elevation="2"]) {
@apply --paper-material-elevation-2;
}
:host(.paper-material[elevation="3"]) {
@apply --paper-material-elevation-3;
}
:host(.paper-material[elevation="4"]) {
@apply --paper-material-elevation-4;
}
:host(.paper-material[elevation="5"]) {
@apply --paper-material-elevation-5;
}
</style>
</template>
</dom-module>`;e.setAttribute("style","display: none;"),document.head.appendChild(e.content);