
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Small powerfull mixin library for less and styled-components.
Css utils and css hacks kit.
To install hless from npm, run:
$ npm install hless --save
# or
$ bower install hless --save
Finally, use in your js file:
import hlessClearfix from 'hless/styled/hlessClearfix';
hlessClearfix();
import hlessPlaceholder from 'hless/styled/hlessPlaceholder';
hlessPlaceholder(/*color:*/'#eee', /*font-style: */'italic');
import hlessSelectionDisabled from 'hless/styled/hlessSelectionDisabled';
hlessSelectionDisabled(/*color:*/'#eee');
import hlessRatio from 'hless/styled/hlessRatio';
hlessRatio(2.5); // height:width == 2.5:1
import hlessFakeIcon from 'hless/styled/hlessFakeIcon';
hlessFakeIcon(/*color:*/'#eee', /*width:*/'100%', /*border-radius:*/'0');
import hlessFakeText from 'hless/styled/hlessFakeText';
hlessFakeText(/*color:*/'#eee', /*width:*/'100%');
import hlessTriangle from 'hless/styled/hlessTriangle';
hlessTriangle('bottom', /*size:*/'4px', /*color:*/'#eee');
import { helssJustifyParent, helssJustifyChild } from 'hless/styled/helssJustify';
helssJustifyParent();
helssJustifyChild();
import { helssFloatGridRow, helssFloatGridCol } from 'hless/styled/helssFloatGrid';
helssFloatGridRow(/*margin:*/'16px');
helssFloatGridCol(/*factor:*/1/12, /*margin:*/'16px');
import { helssFlexGridRow, helssFlexGridCol } from 'hless/styled/helssFlexGrid';
helssFlexGridRow(/*margin:*/'16px');
helssFlexGridCol(/*factor:*/1/12, /*margin:*/'16px');
Use in your less file:
@import "hless/lib/index.less";
// do something usefull
// STRUCTURE ELEMENTS:
._grid-row(@margin: 0);
._grid-column(@factor, @margin: 0);
._grid-column-factor(@factor);
._center();
._block_justify_parent();
._block_justify_child();
._block_justify_child(@font_size, @line_height);
._position_middle(@height);
._position_middle_parent(@height: 100%);
._position_middle_child();
._clearfix();
// FIGURES:
// counter
._counter(@attr_name, @font_size, @bg, @color, @opacity: 1, @right: -3px, @bottom: -5px);
// rectangle
._ratio(@width, @height);
._ratio_before(@width, @height);
// fake element placeholders
._fake-text(@color-fake: #eee, @width: 80%);
._fake-icon(@color-fake: #eee, @width: 100%, @height-ratio: 1, @radius: 0);
// triangle
._triangle_color(@color);
._triangle_size(@size);
._triangle_bottom();
._triangle_bottom(@size);
._triangle_bottom(@size, @color);
._triangle_top();
._triangle_top(@size);
._triangle_top(@size, @color);
._triangle_left();
._triangle_left(@size);
._triangle_left(@size, @color);
._triangle_right();
._triangle_right(@size);
._triangle_right(@size, @color);
._triangle_right_top();
._triangle_right_top(@size);
._triangle_right_top(@size, @color);
._triangle_right_bottom();
._triangle_right_bottom(@size);
._triangle_right_bottom(@size, @color);
._triangle_left_top();
._triangle_left_top(@size);
._triangle_left_top(@size, @color);
._triangle_left_bottom();
._triangle_left_bottom(@size);
._triangle_left_bottom(@size, @color);
// STYLES
._square-pattern-bg (@bgColor: white, @squareColor: rgba(0,0,0,0.1), @squareSize: 10px);
// TEXT ELEMENTS
._selection_disabled(@color: #444);
._placeholder(@color, @font_style: italic);
// CSS3_shim
._rotate_ie(@deg);
._grad_h_ie(@startColor, @endColor);
._grad_v_ie(@startColor, @endColor);
._opacity_ie(@rate);
You can use this library with another less libraries without name conflicts. This is good idea.
MIT
If you have any problems, catch the bug or have any suggestion - please find an existing issue or create new
Do that! How to contribute open-source projects
FAQs
Powerfull library for lesscss preprocessor
We found that hless 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.