//remember to NOT put a (,) for the last point
.stalle{
background-color: white;
clip-path: polygon(
50% 0%,
61% 35%,
98% 35%,
68% 57%,
79% 91%,
50% 70%,
21% 91%,
32% 57%,
2% 35%,
39% 35%
);
}
//they won't any space between, and the second needs to exceed the first
.ombra{
height: 50px;
width: 120px;
background-color: pink;
box-shadow:
0 0 0 5px blue,
0 0 0 10px orange;
}
//box-sizing: content-box is set by default, it adds border and padding to the width
//border-box sums border and padding to the set width
.come{
background-color: pink;
box-sizing: content-box;
padding: 20px;
border: 10px blue solid;
}
.cane{
background-color: pink;
border: 10px blue solid;
box-sizing: content-box;
}
.lineare{
border-style: solid;
border-width: 15px;
border-image: linear-gradient(90deg, rgb(0,143,104), rgb(250,224,66));
border-image-slice: 1;
}
.gradiale{
border-image: radial-gradient(rgb(0,143,104), rgb(250,224,66)) 1;
}
.conico{
border-image: conic-gradient(red, yellow, lime, aqua, blue, magenta, red) 1;
}
//border-image-slice is needed in border-image
//it's X,Y and can use px/%, for how the image will be cut
.test{
border-style: solid;
border-width: 15px;
border-image: url( https://live.staticflickr.com/65535/49927594376_d7c5d1d0e6_c.jpg );
border-image-slice: 60 30;
}
.grand{
border-style: solid;
border-width: 15px;
border-image: url(https://live.staticflickr.com/65535/49927594376_d7c5d1d0e6_c.jpg);
border-image-slice: 80 fill;
}
//fill will use the image as background+border
//we need to use a gradient in the padding-box only to keep the border colored
.granola{
padding: 15px;
border: 8px solid transparent;
border-radius: 15px;
background:
linear-gradient(white 0 0) padding-box,
linear-gradient(to left, blue, pink) border-box;
}
//we need % for that
.meta{
border-style: solid;
border-width: 15px;
border-image: linear-gradient(to left, pink, blue);
border-image-slice: 100% 1;
}