Skip to content

LESS: Flat-trendy long shadows generator mixins for any inline-text, font-icons or block-elements.

License

Notifications You must be signed in to change notification settings

artsmc/less-long-shadow

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

LESS Long Shadow

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!

Installation

  1. Make shure that you installed client- or server-side LESS css-preprocessor
  2. Clone git repo or Download and copy long-shadow.less to your e.g. /assets directory
  3. Plug it to project by insert @import "long-shadow.less"; at beginning of main LESS/CSS stylesheet file
  4. Assign mixins to elements. Enjoy!

Usage

.box {
	overflow: hidden;

	.longShadow(@color, @size, @spread);
	.longShadowBox(@color, @size, @spread);
}

Params

  • @color of shadow e.g. #00FFFF, @buttonShadowColor or darken(#00FFFF).
  • @size in pixels that shadow would be.
  • @spread shadow opacity. Greater value - straighter edges. Defaults:
  • longShadow: 100
  • longShadowBox: 1

Issues

Have a bug or a feature request? Please open a new issue. Before opening any issue, please search for existing issues.

Changelog

1.0

  • Initial release

Copyright and license

MIT License

About

LESS: Flat-trendy long shadows generator mixins for any inline-text, font-icons or block-elements.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 100.0%