Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2ef01e1

Browse files
committedAug 19, 2024·
Jazz up post entry border colors
1 parent dfb879b commit 2ef01e1

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed
 

‎style.scss

+12-2
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,21 @@
449449
position: relative;
450450
padding: 1rem;
451451
background-color: #fff;
452-
border: 1px solid #4e3107;
453-
border-right-width: 1.5rem;
452+
border-radius: 0.4rem;
454453
@include fontface(serif);
455454
color: #444;
456455
text-align: right;
456+
457+
&:before { // via https://css-tricks.com/gradient-borders-in-css/
458+
content: '';
459+
position: absolute;
460+
top: 0; right: 0; bottom: 0; left: 0;
461+
z-index: -1;
462+
margin: -1px; // !important
463+
margin-right: -1.5rem; // !important
464+
border-radius: inherit; // !important
465+
background: linear-gradient(135deg, #d53a9d 15%, #58357a);
466+
}
457467
}
458468
}
459469

0 commit comments

Comments
 (0)
Please sign in to comment.