
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
fluent-css
Advanced tools
cd node_modules/fluent-css
npm install
npm run build
npm run build -- --output='../css'
npm run build -- --watch
npm run watch
npm run build -- --sourcemaps=false
npm run build -- --compress=false
npm run build -- --gzip
npm run gzip -- --clean=false
npm run build -- --filename=main.css
npm run build -- --filename=main.scss
npm run build -- --filename=main
.css
will only create css files. Adding .scss
will only create scss files, filename without ending will create both, scss and css files.npm run build -- --packages='display, position'
npm run build -- --clean=false
npm run clean
npm run build -- --gzip --compress=false --souremap=false --ouput=../ filename=main.css
@import 'fluent-css'; // absolute path from your stylesheet e.g. -> ./sass/fluent-styles/fluent-styles, ('node_modules/fluent-css/dist/fluent-css' if default)
<div class="padding-px pb-14 pl-14">
...
</div>
<div class="margin-percent mb-14 ml-14-important">
...
</div>
.padding-px {
&.pb-1 {
padding-bottom: 1px;
}
&.pb-1-important {
padding-bottom: 1px !important;
}
// also with minus for margin (invalid for padding!)
&.mb-neg-1 {
margin-bottom: -1px;
}
}
<div class="display-inline-block">
<!-- easy! right? -->
</div>
// units: rem, em, px, percent
.margin-px.m-1 // margin: 1px
.margin-px.mb-1 // margin-bottom: 1px; mb, mt, ml, mr
.margin-percent.mb-1 // up to 64 .mb-64
.padding-px.mb-1
// !important
.margin-px.mb-1-important
// negative (not valid for padding!)
.margin-px.mb-neg-1
// dotted, dashed, solid, double, groove, ridge, inset, outset, thin, medium, thick, initial, inherit
.border-1
.border-solid
.border-solid-1 // (1-5)
.border-solid-thin
.border-solid-thin-green // 140 colors
.border-left-1
.border-left-solid
.border-left-solid-1-green
// static, absolute, fixed, relative, sticky, initial, inherit
.position-absolute
.position-absolut-important
// units: rem, em, px, percent
.position-px.top-1 // top: 1px
/*
inline, block, contents, flex, grid, inline-block, inline-flex, inline-grid, inline-table, list-item, run-in, table, table-caption, table-column-group, table-header-group, table-footer-group, table-row-group, table-cell, table-column, table-row, none, initial, inherit
*/
.display-inline
.display-inline-important
.z-index-0 // 0-64
.z-index-0-important
// units: rem, em, px, percent
.font-size-px.font-size-1;
.font-size-percent.font-size-5; // 0, 5, 10... steps of 5 on percent
.font-weight-bold // 100-900, lighter, bold, bolder, normal
.font-color-green
.font-style-italic // normal, italic, oblique, initial, inherit
FAQs
write fluent css
The npm package fluent-css receives a total of 3 weekly downloads. As such, fluent-css popularity was classified as not popular.
We found that fluent-css 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.