JSFiddle - React, Tailwind, and code Playground

by Michaël van de Weerd

HTML

<div id="expres-host" class="expres-active">
  <main class="compact">
    <fieldset>
      <input type="text" name="search" placeholder="Enter a string or /regular expression/ to search the page ..." >
      <output name="result">match 1 of 10</output>
    </fieldset>
    <nav>
      <input type="button" name="previous">
      <input type="button" name="next">
      <input type="button" name="style">
      <input type="button" name="close">
    </nav>
  </main>
</div>

CSS

* {
  padding: 0;
  margin: 0;
  overflow: hidden;
  font: small/1em sans-serif;
  color: black;
  box-sizing: border-box;
}

div#expres-host {
  padding: 2px;
  margin: 4px;
  top: 0;
  right: 0;
  position: absolute;
  overflow: hidden;
  border: 1px gray solid;
  border-radius: 2px;
  background-color: white;
  box-shadow: 0 2px 1px RGBa(128, 128, 128, 0.8);
}

fieldset {
  padding: 0;
  margin: 0;
  border: none;
  float: left;
}

nav {
  height: 23px;
  padding: 4px;
  margin: 0;
  float: right;
}

input {
  border: none;
  outline: none;
}

input[name=search] {
  width: 512px;
  padding: 4px;
  margin: 0;
  border: none;
  float: left;
}

output {
  width: 128px;
  height: 23px;
  padding: 4px;
  margin: 0;
  margin-right: 4px;
  border-right: 1px solid silver;
  text-align: right;
  float: right;
}

input[type=button] {
  width: 15px;
  height: 15px;
  margin-left: 4px;
  float: left;
}

input[type=button]:first-child {
  margin-left: 0;
}

input[name=previous] {
  background-color: blue;
}

input[name=next] {
  background-color: red;
}

input[name=style] {
  background-color: green;
}

input[name=close] {
  background-color: yellow;
}