mirror of
git://f0xx.org/ac/ac-platform-web
synced 2026-08-09 20:59:36 +03:00
FOR SALE ribbon: extend band via pseudo-elements, fixed center.
Revert inner padding-block (shifted pivot); ::before/::after extend symmetrically so tape ends clip at viewport without moving band center. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2515,17 +2515,37 @@ button.report-tag--filter:hover {
|
|||||||
}
|
}
|
||||||
.platform-for-sale-badge__outer {
|
.platform-for-sale-badge__outer {
|
||||||
display: block;
|
display: block;
|
||||||
|
position: relative;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 2px solid #c00;
|
border: 2px solid #c00;
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
/* Extend band both ways from letter block — layout box unchanged, center stays put. */
|
||||||
|
.platform-for-sale-badge__outer::before,
|
||||||
|
.platform-for-sale-badge__outer::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: 100vmax;
|
||||||
|
background: #fff;
|
||||||
|
border-left: 2px solid #c00;
|
||||||
|
border-right: 2px solid #c00;
|
||||||
|
box-shadow: inset 3px 0 0 0 #c00, inset -3px 0 0 0 #c00;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
.platform-for-sale-badge__outer::before {
|
||||||
|
bottom: 100%;
|
||||||
|
}
|
||||||
|
.platform-for-sale-badge__outer::after {
|
||||||
|
top: 100%;
|
||||||
}
|
}
|
||||||
.platform-for-sale-badge__inner {
|
.platform-for-sale-badge__inner {
|
||||||
display: block;
|
display: block;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border: 2px solid #c00;
|
border: 2px solid #c00;
|
||||||
padding-inline: 0.45rem;
|
padding: 0.3rem 0.45rem;
|
||||||
/* Long band — ends clip at viewport after -135deg rotation. */
|
|
||||||
padding-block: calc(100vmax + 0.3rem);
|
|
||||||
}
|
}
|
||||||
.platform-for-sale-badge__letters {
|
.platform-for-sale-badge__letters {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user