
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
This is a lightweight SCSS 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 CSS classes or data-attributes. 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 CSS classes is more verbose but the recommended way to use this library:
.fx-layout-
and .fx-align-
: CSS classes to control the flexbox container.fx-gap--
: CSS classes to add gaps 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
: Classes to control flex behaviour of an elementUsing the data attributes is the easiest way to use this library and easier to migrate to from Angular Flex-Layout:
data-layout
and data-layout-align
: HTML attributes to be used to control the flexbox containerdata-layout-gap
: attribute to add gaps 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
: Control flex behaviour of an elementAdd the library to your project's package.json
:
npm i -s css-fx-layout
Then use the provided mixins in your main stylesheet to include the css-fx-layout selectors. You can choose between using CSS classes or HTML data attributes (or, while not recommended, use both). If you want to use the layout-gap functionality you can customise which selectors are going to be generated by providing the start, end and unit as shown in the example below.
CSS Classes | HTML Data Attributes |
---|---|
|
|
This is the simplest example. It will make the div a flex container and align the three spans in a row:
CSS Classes | Data Attributes |
---|---|
|
|
The resulting layout:
An advanced example that aligns the items in reverse order with a gap of four pixels and vertically centered:
CSS Classes | Data Attributes |
---|---|
|
|
The resulting layout:
Vertically and horizontally center an element in its parent.
CSS Classes | Data Attributes |
---|---|
|
|
The resulting layout:
This will hide the first span on phones and show the second span only on desktop sizes. The third span is always visible.
CSS Classes | Data Attributes |
---|---|
|
|
There are no pre-compiled CSS files available for css-fx-layout 2 and above. Version 1 releases provided minified pre-compiled CSS files. If you are interested in them you can find and download them 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 and without JavaScript.
By now Angular Flex-Layout has been deprecated and this library can be a replacement for most of the popular parts.
2.0.0 (2022-12-27)
The library now only exposes mixins which can be used to generate the desired CSS selectors. There also won't be pre-compiled CSS files available with the releases anymore.
The available selectors don't change. You only have to include the library differently. Please consult the README or the Wiki for detailed instructions on how to get you started with css-fx-layout.
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.