Back to CSS Search Boxes Brutalist Stamp Pure CSS
Share
HTML
<form class="csb-brut" role="search">
  <label class="csb-sr" for="csb-brut-i">Search</label>
  <input id="csb-brut-i" type="search" name="q" placeholder="SEARCH..." />
  <button type="submit">GO</button>
</form>
CSS
.csb-brut {
  display: inline-flex; align-items: stretch;
  background: #f0eeff;
  border: 2.5px solid #1a1a2e;
  box-shadow: 5px 5px 0 #ff6c8a;
  transition: transform 0.1s, box-shadow 0.1s;
}
.csb-brut:focus-within { transform: translate(-1px,-1px); box-shadow: 6px 6px 0 #ff6c8a; }
.csb-brut input {
  width: 220px; padding: 11px 14px;
  border: 0; outline: none; background: transparent;
  color: #1a1a2e; font: 700 13px/1 'Courier New', monospace;
  letter-spacing: 0.08em;
}
.csb-brut input::placeholder { color: rgba(26,26,46,0.5); }
.csb-brut button {
  padding: 0 20px;
  border: 0; border-left: 2.5px solid #1a1a2e;
  cursor: pointer;
  background: #1a1a2e; color: #fff;
  font: 800 12px/1 'Courier New', monospace;
  letter-spacing: 0.12em;
}

.csb-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}