![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@aceandtate/breakpoints
Advanced tools
Ace & Tate's website breakpoints
$ npm install --save @aceandtate/breakpoints
This package exports various forms of breakpoints for use at Ace & Tate
import { sizes } from "@aceandtate/breakpoints";
/*
sizes = {
"tiny": 540,
"small": 768,
"large": 1000,
"xlarge": 1400,
"xxlarge": null
}
*/
import { rules } from "@aceandtate/breakpoints";
/*
rules = {
"tiny": "(max-width: 540px)",
"tinyMax": "(max-width: 540px)",
"small": "(min-width: 541px) and (max-width: 768px)",
"smallMin": "(min-width: 541px)",
"smallMax": "(max-width: 768px)",
... large, xlarge, xxlarge
}
*/
import { breakpoints } from "@aceandtate/breakpoints";
/*
breakpoints = {
"tiny": {
"min": 0,
"max": 540
},
"small": {
"min": 541,
"max": 768
},
"large": {
"min": 769,
"max": 1000
},
"xlarge": {
"min": 1001,
"max": 1400
},
"xxlarge": {
"min": 1401
}
}
*/
import styled from "styled-components";
import { tiny, smallMin } from "@aceandtate/breakpoints/rules";
const myComponent = styled.div`
@media ${tiny} {
/* Show on mobile devices */
width: 100%;
margin: 10px;
}
@media ${smallMin} {
/* Everything else */
width: 400px;
margin: 0 auto;
}
`;
If you want to update or add breakpoints, you can do so in ./sizes.json
, and then run:
$ npm run generate
This will then update the files in ./build/
file accordingly. Note that this task is run automatically before publishing the package to NPM.
MIT © Ace & Tate
FAQs
Ace and Tate's Breakpoints
The npm package @aceandtate/breakpoints receives a total of 2 weekly downloads. As such, @aceandtate/breakpoints popularity was classified as not popular.
We found that @aceandtate/breakpoints demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.