Inset-Füllung vertikal
Inset-Füllung vertikal: CSS-Button. Kopiere die Regeln oder den Prompt, der das Ergebnis nachbaut.
CSS
.btn-147 {
font: 600 14px/1 system-ui,sans-serif;
color: #be123c;
background: transparent;
border: 2px solid #be123c;
border-radius: 999px;
padding: 12px 26px;
cursor: pointer;
box-shadow: inset 0 0 0 0 #be123c;
transition: box-shadow .25s,color .25s
}
.btn-147:hover {
box-shadow: inset 0 -48px 0 0 #be123c;
color: #fff
}
.btn-147:focus-visible {
outline: 2px solid #be123c;
outline-offset: 3px
}
.btn-147:active {
box-shadow: inset 0 -48px 0 0 #9f1239;
border-color: #9f1239
}
HTML
<button class="btn-147">Subscribe</button>Prompt
Eine Rosé-Outline-Pille: transparenter Hintergrund, 2px Rahmen #be123c, Rosé-Text 14px semibold, 12px mal 26px Padding. Beim Hover steigt eine Rosé-Füllung von unten auf (inset box-shadow mit -48px vertikalem Versatz) und der Text wird weiß, 250ms. Active nutzt das dunklere #9f1239. Fokus 2px Rosé-Outline mit 3px Offset.