<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kimizuka</author_name>
  <author_url>https://blog.hatena.ne.jp/kimizuka/</author_url>
  <blog_title>みかづきブログ・カスタム</blog_title>
  <blog_url>https://blog.kimizuka.org/</blog_url>
  <categories>
    <anon>CSS</anon>
  </categories>
  <description>DEMO See the Pen Custom CheckBox without JavaScript by kimmy (@kimmy) on CodePen. 解説 checkboxとlabalと隣接セレクタをうまく使えば、JavaScriptを一切書かずにチェックボックスをカスタムすることができます。 ポイントとしては、❶ チェックボックスは非表示にしておく ❷ labelでチェックボックスにチェックが入るようにしておく ❸ :checkedの隣接セレクタでスタイルを整えるの3点です。 ソースコード HTML &lt;p&gt; &lt;input type=&quot;checkbox&quot; id=&quot;c1&quot; /&gt; &lt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kimizuka.org%2Fentry%2F2020%2F08%2F28%2F080000&quot; title=&quot;隣接セレクタを使ってJavaScript無しでチェックボックスをカスタムする ✅ - みかづきブログ・カスタム&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kimizuka/20200824/20200824164050.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-08-28 08:00:00</published>
  <title>隣接セレクタを使ってJavaScript無しでチェックボックスをカスタムする ✅</title>
  <type>rich</type>
  <url>https://blog.kimizuka.org/entry/2020/08/28/080000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
