Milchglas-Pille
Milchglas-Pille: CSS-Button. Kopiere die Regeln oder den Prompt, der das Ergebnis nachbaut.
CSS
.btn-032 {
font: 600 15px/1 system-ui,sans-serif;
color: #fff;
background: rgba(255,255,255,.18);
border: 1px solid rgba(255,255,255,.4);
border-radius: 999px;
padding: 13px 26px;
cursor: pointer;
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
box-shadow: 0 8px 24px rgba(0,0,0,.15),inset 0 1px 0 rgba(255,255,255,.5);
transition: background .2s,border-color .2s
}
.btn-032:hover {
background: rgba(255,255,255,.28);
border-color: rgba(255,255,255,.7)
}
.btn-032:focus-visible {
outline: 2px solid #fff;
outline-offset: 3px
}
.btn-032:active {
background: rgba(255,255,255,.12)
}
HTML
<div style="background:linear-gradient(135deg,#7c3aed,#06b6d4);padding:28px"><button class="btn-032">Get the app</button></div>Prompt
Eine Milchglas-Pille auf buntem Hintergrund: 18% weiße Füllung, 12px Backdrop-Blur, 1px Rahmen in 40% Weiß, ein 1px innerer Glanz in 50% Weiß oben und ein Schatten 0 8px 24px in 15% Schwarz. Weißer Text 15px semibold, voll abgerundet, 13px mal 26px Padding. Hover hebt die Füllung auf 28% und den Rahmen auf 70%; active senkt die Füllung auf 12%. Fokus-Outline 2px Weiß.