
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. It is inspired by Angular's flex-layout and can replace the most popular functions of the (by now deprecated) Angular library.
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 sizedata-fx-flex
and data-fx-flex-grow
Using 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 size.fx-flex
and .fx-glex-grow
This 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.
Initially I created this library because I liked the convenient syntax of Angular flex-layout and wanted to use it in non-Angular projects. By now Angular flex-layout has been deprecated and this library can be a replacement for most of the popular parts.
1.1.1 (2022-12-26)
FAQs
A lightweight SCSS flexbox library inspired by Angular Flex-Layout.
The npm package css-fx-layout receives a total of 460 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.