This LESS loop mixins generates flat-trendy long shadows for any inline-text, font-icons or block-elements. Looks best if wrapped by square overflow: hidden;
block with bold padding and 25% rounded corners. Dont forget about good contrast color palette!
- Source: https://github.com/zensimilia/less-long-shadow
- Author Twitter: @zensimilia
- Make shure that you installed client- or server-side LESS css-preprocessor
- Clone git repo or Download and copy
long-shadow.less
to your e.g./assets
directory - Plug it to project by insert
@import "long-shadow.less";
at beginning of main LESS/CSS stylesheet file - Assign mixins to elements. Enjoy!
.box {
overflow: hidden;
.longShadow(@color, @size, @spread);
.longShadowBox(@color, @size, @spread);
}
- @color of shadow e.g.
#00FFFF
,@buttonShadowColor
ordarken(#00FFFF)
. - @size in pixels that shadow would be.
- @spread shadow opacity. Greater value - straighter edges. Defaults:
- longShadow: 100
- longShadowBox: 1
Have a bug or a feature request? Please open a new issue. Before opening any issue, please search for existing issues.
1.0
- Initial release