swiss-army-knife-card icon indicating copy to clipboard operation
swiss-army-knife-card copied to clipboard

Add new css value for line, rectangle, cercle ….

Open steph38270 opened this issue 1 year ago • 4 comments

The Problem To Be Solved

It’s possible to add css box-shadow for line, circle, rectangle …

Additional background:

Related Issues (if any)

(Optional): Suggested Solution

(Optional): Alternative Solutions

steph38270 avatar Jul 13 '22 11:07 steph38270

Thank you for creating your first issue for the Swiss Army Knife custom card!

github-actions[bot] avatar Jul 13 '22 11:07 github-actions[bot]

A box-shadow is a CSS setting for HTML boxes. SAK is made with SVG, and you can't have a box-shadow for graphical things like lines, rectangles and circles.

I guess what you are looking for are drop shadows: image

image

image

I added a drop-shadow to all the tools using: filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.5)) as a style.

It works on Chrome and Firefox, but Safari 15.x seems to have problems with that currently 😢 Safari sometimes has a mind on its own regarding CSS/SVG implementations.

AmoebeLabs avatar Jul 14 '22 07:07 AmoebeLabs

Ok thank you, I want this effet : Image PNG

Is it possible with SAK?

steph38270 avatar Jul 15 '22 06:07 steph38270

@steph38270 https://webcode.tools/generators/css/drop-shadow play around with this. You can test the css-function @AmoebeLabs mentioned with different values for the positioning, size and also color.

itkama avatar Sep 02 '22 17:09 itkama