matt HOFFNER commited on
Commit
4e2f92f
β€’
1 Parent(s): 4d9d63a
Files changed (1) hide show
  1. app/page.module.css +40 -1
app/page.module.css CHANGED
@@ -305,7 +305,9 @@
305
  .messages {
306
  flex: 1;
307
  overflow-y: auto;
308
- border: 1px solid #ddd;
 
 
309
  padding: 25px;
310
  border-radius: 5px;
311
  }
@@ -417,3 +419,40 @@
417
  .bg-blue-500 {
418
  background-color: #4299e1; /* Approximation of Tailwind's blue-500 */
419
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
305
  .messages {
306
  flex: 1;
307
  overflow-y: auto;
308
+ border-style: solid;
309
+ border-width: 4px;
310
+ border-image: linear-gradient(#6ee7b7, #3b82f6) 30;
311
  padding: 25px;
312
  border-radius: 5px;
313
  }
 
419
  .bg-blue-500 {
420
  background-color: #4299e1; /* Approximation of Tailwind's blue-500 */
421
  }
422
+
423
+ .border-gradient {
424
+ /* Size of your element */
425
+ width: 200px;
426
+ height: 200px;
427
+
428
+ /* Setting up the gradient as a background image */
429
+ background-image: linear-gradient(90deg, #6ee7b7, #3b82f6);
430
+
431
+ /* Positioning and sizing the pseudo-element to match the parent */
432
+ position: relative;
433
+ display: flex;
434
+ justify-content: center;
435
+ align-items: center;
436
+
437
+ /* Adding the border */
438
+ padding: 10px;
439
+ }
440
+
441
+ .border-gradient::after {
442
+ /* Creating the pseudo-element */
443
+ content: "";
444
+ position: absolute;
445
+ top: -10px;
446
+ left: -10px;
447
+ bottom: -10px;
448
+ right: -10px;
449
+
450
+ /* Applying the gradient to the border */
451
+ background-image: inherit;
452
+ background-clip: padding-box, border-box;
453
+ background-origin: padding-box, border-box;
454
+ box-decoration-break: clone;
455
+
456
+ /* Adding a transparent border */
457
+ border: solid 10px transparent;
458
+ }