Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
8-point
Advanced tools
Readme
A set of 8 point grid classes.
8-point grid is a thing. It's a good thing at that.
8 has a lot of advantages as a number. It's chief adavntage is that it bifurcates evenly. So devices that do any type of strange scaling don't end up with half-values.
This is good.
This lib just offers a set of classes for using an 8-point soft grid with the css box model. It incluedes classes for margin
, padding
, TRBL
, width
, height
, and "size".
The class names break down like this:
{acronymized CSS property}-{n × 8px}
For example:
.p-1 { padding: 8px } /* 1 × 8px */
.p-2 { padding: 16px } /* 2 × 8px */
.p-3 { padding: 24px } /* 3 × 8px */
You can use side-specific properties as well:
.mt-1 { margin-top: 8px }
.mr-1 { margin-right: 8px }
.mb-1 { margin-bottom: 8px }
.ml-1 { margin-left: 8px }
/* x and y added for convenience */
.my-1 { margin-top: 8px; margin-bottom: 8px }
.mx-1 { margin-right: 8px; margin-left: 8px }
m = margin
mt = margin-top
mr = margin-right
mb = margin-bottom
ml = margin-left
my = margin-top; margin-bottom
mx = margin-right; margin-left
p = padding
pt = padding-top
pr = padding-right
pb = padding-bottom
pl = padding-left
py = padding-top; padding-bottom
px = padding-right; margin-left
t = top
r = right
b = bottom
l = left
lh = line-height
w = width
h = height
s = width; height
1 = 8px
2 = 16px
3 = 24px
4 = 32px
5 = 40px
6 = 48px
7 = 56px
8 = 64px
NPM:
npm i -S 8-point
<div class="m-1 p-3">
This has 8px margin and 24px padding.
</div>
<img
src="./path/img.ext"
class="s-8"
alt="this img is 64px high and wide"
/>
MIT License
Copyright (c) 2016 Michael Chan
FAQs
8-point soft-grid classes.
The npm package 8-point receives a total of 580 weekly downloads. As such, 8-point popularity was classified as not popular.
We found that 8-point demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.