Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@polymer/paper-material
Advanced tools
A material design container that looks like a lifted sheet of paper
paper-material
is a container that renders two shadows on top of each other to
create the effect of a lifted piece of paper.
⚠️ As of the 2.0 release, this element is deprecated in favour of the shared styles in PolymerElements/paper-styles
. Please see the implementation of PolymerElements/paper-button
for an example.
See: Documentation, Demo.
npm install --save @polymer/paper-material
<html>
<head>
<script type="module">
import '@polymer/paper-material/paper-material.js';
</script>
</head>
<body>
<paper-material elevation="1">
<div>Some content</div>
</paper-material>
</body>
</html>
import {PolymerElement, html} from '@polymer/polymer';
import '@polymer/paper-material/paper-material.js';
class SampleElement extends PolymerElement {
static get template() {
return html`
<paper-material elevation="1">
<div>Some content</div>
</paper-material>
`;
}
}
customElements.define('sample-element', SampleElement);
If you want to send a PR to this element, here are the instructions for running the tests and demo locally:
git clone https://github.com/PolymerElements/paper-material
cd paper-material
npm install
npm install -g polymer-cli
polymer serve --npm
open http://127.0.0.1:<port>/demo/
polymer test --npm
FAQs
A material design container that looks like a lifted sheet of paper
The npm package @polymer/paper-material receives a total of 2,934 weekly downloads. As such, @polymer/paper-material popularity was classified as popular.
We found that @polymer/paper-material demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.