mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-08-06 14:16:50 +02:00
fix: Ribbon
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
.avatar {
|
||||
height: 8rem;
|
||||
width: 8rem;
|
||||
height: 4rem;
|
||||
width: 4rem;
|
||||
|
||||
background-color: #d1d5db;
|
||||
/* Rounded border */
|
||||
|
@@ -1,6 +1,8 @@
|
||||
.swatch {
|
||||
/* Wrap the items */
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.swatch__item {
|
||||
|
@@ -24,9 +24,6 @@
|
||||
bottom: -0.5rem;
|
||||
position: absolute;
|
||||
|
||||
/* Displayed under the ribbon */
|
||||
z-index: 1;
|
||||
|
||||
/* Background */
|
||||
border: 1rem solid #d1d5db;
|
||||
}
|
||||
@@ -49,7 +46,8 @@
|
||||
|
||||
border: 0.5rem solid transparent;
|
||||
border-bottom-width: 0;
|
||||
border-top-color: #aaa;
|
||||
border-top-color: #6b7280;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.ribbon__triangle--l {
|
||||
|
Reference in New Issue
Block a user