Last active
August 5, 2022 06:54
-
-
Save kobaatsu/62ef426af3260958b592 to your computer and use it in GitHub Desktop.
[縦リボン] #stylus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// あまり見なかったので作った後で整理する | |
.ribbon-vertical | |
w = 46px | |
size = 3px | |
position absolute | |
top t = (-(size px)) | |
left 10px | |
overflow hidden | |
width: (w + size) px | |
height h = 29px | |
&::before | |
position absolute | |
top t | |
left: (w - size) px | |
z-index 1 | |
width 0 | |
height 0 | |
border-width 3px | |
border-style solid | |
border-color transparent transparent #333 | |
content '' | |
&::after | |
position absolute | |
top 0 | |
left 0 | |
z-index 10 | |
display block | |
width w | |
height h | |
background #ccc | |
color #FFF | |
content 'New' | |
text-align center | |
line-height h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment