
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
css-fx-layout
Advanced tools
A lightweight SCSS only flexbox library inspired by Angular's flex-layout.
This is a lightweight SCSS/CSS only flexbox library inspired by Angular's flex-layout.
This library gives you the option between using data-attributes or CSS classes. Both options give you the same features but the CSS classes can be more verbose when you want a more complex layout. Check out the Wiki for a detailed documentation.
Using the data attributes is the easiest way to use this library:
data-layout
, data-layout-align
HTML attributes to be used to control the flexbox containerdata-layout-gap
attribute to add margin between the elements in a flex containerdata-hide-
and data-show-
attributes which can be used to show/hide elements depending on the screen sizeUsing the CSS classes is more verbose but there are reasons why one might prefer this:
.fx-layout-
and .fx-align-
CSS classes to control the flexbox container.fx-gap-
CSS classes to add margin between the elements in a flex container.show-
and .hide-
CSS classes which can be used to show/hide elements depending on the screen sizeThis is the most simple example. It will make the div a flex container and align the three spans in a row:
<div data-layout="row">
<span>One</span>
<span>Two</span>
<span>Three</span>
</div>
Here's the same example using the CSS classes:
<div class="fx-layout-row">
<span>One</span>
<span>Two</span>
<span>Three</span>
</div>
An advanced example that aligns the items in reverse order with a margin of four pixels and vertically centered:
<div data-layout="row reverse" data-layout-align="start center" data-layout-gap="4px">
<span>One</span>
<span>Two</span>
<span>Three</span>
</div>
The same example using CSS classes:
<div class="fx-layout-row fx-layout-reverse fx-align--start-x fx-align--x-center fx-gap--4px">
<span>One</span>
<span>Two</span>
<span>Three</span>
</div>
This will hide the first span on phones and show the second span only on desktop sizes. The third span is always visible.
<div>
<span data-hide-phone>One</span>
<span data-show-desktop>Two</span>
<span>Three</span>
</div>
The same example using CSS classes:
<div>
<span class="hide-phone">One</span>
<span class="show-desktop">Two</span>
<span>Three</span>
</div>
npm i -s css-fx-layout
Download the minified CSS from the releases page.
At work I use Angular (and Angular flex-layout) a lot and I've come to like the convenient layout directives Angular flex-layout offers. Recently I found myself creating a plain static website and I wanted to make sure it works without unnecessary JavaScript. As I didn't use Angular or any other JS framework, I had to either layout everything in (S)CSS or create a library that tries to provide a similar experience to what I liked from Angular's flex-layout. This was when I created this.
1.0.1 (2019-08-31)
FAQs
A lightweight SCSS flexbox library inspired by Angular Flex-Layout.
The npm package css-fx-layout receives a total of 545 weekly downloads. As such, css-fx-layout popularity was classified as not popular.
We found that css-fx-layout demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.