Doppellinie Outline
Doppellinie Outline: CSS-Button. Kopiere die Regeln oder den Prompt, der das Ergebnis nachbaut.
CSS
.btn-013 {
font: 500 14px/1 Georgia,serif;
color: #1c1917;
background: transparent;
border: 1px solid #1c1917;
outline: 1px solid #1c1917;
outline-offset: 3px;
border-radius: 0;
padding: 12px 24px;
cursor: pointer;
transition: outline-offset .15s,background .15s,color .15s
}
.btn-013:hover {
outline-offset: 0;
background: #1c1917;
color: #fafaf9
}
.btn-013:focus-visible {
outline: 2px solid #b45309;
outline-offset: 4px
}
.btn-013:active {
background: #292524
}
HTML
<button class="btn-013">Read the essay</button>Prompt
Ein redaktioneller Outline-Button in einer Serifenschrift: transparenter Hintergrund, 1px Rahmen #1c1917 plus eine zweite 1px Linie 3px außerhalb, eckige Ecken, 12px mal 24px Padding. Beim Hover klappt die äußere Linie auf den Rahmen zusammen und der Button füllt sich #1c1917 mit cremeweißem Text. Active #292524. Fokus ersetzt die äußere Linie durch 2px Bernstein #b45309.