JSFiddle - React, Tailwind, and code Playground

by takumi091111

HTML

<div class="inner">
  <header class="two-column">
    <img src="http://placehold.jp/32x32.png" alt="Naoshite">
    <p>Naoshite</p>
  </header>
  <main>
    <h1 class="heading-one">設定</h1>
    <form class="grid">
      <div>
        <h2 class="heading-two">スクリーンショット画像の保存形式</h2>
        <div class="two-column">
          <input id="jpeg" class="radiobox" type="radio" name="imageType" value="jpeg" required checked>
          <label class="label" for="jpeg">jpeg</label>
        </div>
        <div class="two-column">
          <input id="png" class="radiobox" type="radio" name="imageType" value="png" required>
          <label class="label" for="png">png</label>
        </div>
      </div>
      <div>
        <h2 class="heading-two">撮影時のページスクロール方法</h2>
        <div class="two-column">
          <input id="translate" class="radiobox" type="radio" name="scrollMethod" value="translate" required checked>
          <label class="label" for="translate">transform:translate()</label>
        </div>
        <div class="two-column">
          <input id="wheel" class="radiobox" type="radio" name="scrollMethod" value="wheel" required>
          <label class="label" for="wheel">WheelEvent</label>
        </div>
      </div>
      <div>
        <h2 class="heading-two">撮影時のスクロール対象となる要素</h2>
        <div class="two-column">
          <input id="largestElement" class="radiobox" type="radio" name="scrollElement" value="largestElement" required checked>
          <label class="label" for="largestElement">ページ上で最もサイズが大きい要素</label>
        </div>
        <div class="two-column">
          <input id="documentElement" class="radiobox" type="radio" name="scrollElement" value="documentElement" required>
          <label class="label" for="documentElement">documentElement</label>
        </div>
      </div>
      <div>
        <h2 class="heading-two">ページスクロール時の遅延秒数(ミリ秒)</h2>
        <div class="two-column">
          <input id="scrollDelay" class="input" type="number" name="scrollDelay"...

CSS

body {
  font-family: "游ゴシック Medium", "游ゴシック体", "Yu Gothic Medium", YuGothic,
  "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo,
  "MS Pゴシック", "MS PGothic", sans-serif;
  color: #333333;
  background-color: #CCC;
  font-size: 15px;
  margin: 0;
}

input {
  margin: 0;
}

.inner {
  display: grid;
  grid-template-rows: repeat(2, auto);
  row-gap: 20px;
  max-width: 340px;
  background-color: #FFF;
  padding: 20px 30px;
  border-radius: 6px;
}

.heading-one {
  font-size: 24px;
  font-weight: bold;
  padding-bottom: 15px;
  margin: 0;
}

.heading-two {
  font-size: 15px;
  font-weight: bold;
  padding-bottom: 8px;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-rows: repeat(6, auto);
  row-gap: 2em;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: 1fr;
  column-gap: 10px;
  align-items: center;
  justify-content: left;
}

.radiobox, .checkbox {
  margin-left: 5px;
}

.input {
  width: 100px;
  border: none;
  background-color: #F5F5F5;
  padding: 8px 10px;
  font-size: 14px;
}

.button-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}