Various improvements

This commit is contained in:
2024-05-14 17:44:57 +02:00
parent 49d874ad6d
commit b24f87e883
15 changed files with 1885 additions and 91 deletions

View File

@@ -1,3 +1,25 @@
#canvas {
border: 1px solid black;
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
.rainbow-border {
position: relative;
display: inline-block;
border-radius: 0.5rem; /* Rounded corners */
padding: 5px; /* Space for the border */
background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
}
.rainbow-border::before {
content: '';
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: -5px; /* Negative margin to overlap the gradient */
border-radius: 0.5rem; /* Match the rounded corners */
background: white;
z-index: -1; /* Place behind the content */
}
}