1
0
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:
Phuoc Nguyen
2022-09-22 10:26:13 +07:00
parent 80d924aeaf
commit d25c54f261
3 changed files with 6 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
.avatar {
height: 8rem;
width: 8rem;
height: 4rem;
width: 4rem;
background-color: #d1d5db;
/* Rounded border */

View File

@@ -1,6 +1,8 @@
.swatch {
/* Wrap the items */
align-items: center;
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.swatch__item {

View File

@@ -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 {