Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
drop-shadow-converter
Advanced tools
Convert Photoshop Drop Shadows to CSS3 Box & Text Shadows - See more at: http://www.melanieceraso.com/psd-to-css3/
#drop-shadow-converter Convert Photoshop Drop Shadows to CSS3 Box & Text Shadows - See more at: http://www.melanieceraso.com/psd-to-css3/ Use original photoshop drop shadow in your less or scss.
##Less
@import "../less/drop-shadow-converter";
/* just color */
div {
.dropShadowConverter(#123);
box-shadow: @boxShadow;
text-shadow: @textShadow;
}
/* opacity */
div {
.dropShadowConverter(#000, @opacity: 25%);
box-shadow: @boxShadow;
text-shadow: @textShadow;
}
/* distance */
div {
.dropShadowConverter(#000, @distance: 10px);
box-shadow: @boxShadow;
text-shadow: @textShadow;
}
/* distance and angle */
div {
.dropShadowConverter(#000, @angle: 45, @distance: 10px);
box-shadow: @boxShadow;
text-shadow: @textShadow;
}
/* spread and size */
div {
.dropShadowConverter(#000, @spread: 15, @size: 15px);
box-shadow: @boxShadow;
text-shadow: @textShadow;
}
/* all together */
div {
.dropShadowConverter(#123, @angle: 45, @distance: 10px, @spread: 15, @size: 15px, @opacity: 25%);
box-shadow: @boxShadow;
text-shadow: @textShadow;
}
##SCSS
// math functions are not included in sass
@import "../scss/mathfunctions";
// import converter
@import "../scss/drop-shadow-converter";
/* just color */
div {
box-shadow: drop-shadow-converter(#123);
text-shadow: drop-shadow-converter(#123, $is-text-shadow: true);
}
/* opacity */
div {
box-shadow: drop-shadow-converter(#000, $opacity: 25%);
text-shadow: drop-shadow-converter(#000, $opacity: 25%, $is-text-shadow: true);
}
/* distance */
div {
box-shadow: drop-shadow-converter(#000, $distance: 10px);
text-shadow: drop-shadow-converter(#000, $distance: 10px, $is-text-shadow: true);
}
/* distance and angle */
div {
box-shadow: drop-shadow-converter(#000, $angle: 45, $distance: 10px);
text-shadow: drop-shadow-converter(#000, $angle: 45, $distance: 10px, $is-text-shadow: true);
}
/* spread and size */
div {
box-shadow: drop-shadow-converter(#000, $spread: 15, $size: 15px);
text-shadow: drop-shadow-converter(#000, $spread: 15, $size: 15px, $is-text-shadow: true);
}
/* all together */
div {
box-shadow: drop-shadow-converter(#123, $angle: 45, $distance: 10px, $spread: 15, $size: 15px, $opacity: 25%);
text-shadow: drop-shadow-converter(#123, $angle: 45, $distance: 10px, $spread: 15, $size: 15px, $opacity: 25%, $is-text-shadow: true);
}
FAQs
Convert Photoshop Drop Shadows to CSS3 Box & Text Shadows - See more at: http://www.melanieceraso.com/psd-to-css3/
The npm package drop-shadow-converter receives a total of 6 weekly downloads. As such, drop-shadow-converter popularity was classified as not popular.
We found that drop-shadow-converter 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.