Zurück zur Lektion

Ursprüngliche Arbeitsdatei

worked-solution/style.css

Code und funktionsfähige Beispielseiten behalten ihre ursprünglichen Bezeichner und Beispieltexte. Die Lektion und die Dateihinweise erklären sie in deiner Sprache.

:root {
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  font: 18px/1.65 system-ui;
  margin: 40px auto;
  max-width: 680px;
  padding: 0 24px;
  color: #173b3b;
  background: #f5f1e6;
}
h1 {
  line-height: 1.15;
}
label {
  display: block;
  margin: 20px 0 6px;
}
input,
textarea,
select {
  font: inherit;
  width: 100%;
  padding: 12px;
  border: 1px solid #6a8981;
  border-radius: 5px;
}
button,
.button {
  display: inline-block;
  font: 600 18px system-ui;
  padding: 14px 22px;
  margin-top: 20px;
  color: white;
  background: #22665b;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}
a {
  color: #22665b;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a45e22;
  outline-offset: 4px;
}