fork download
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <!--
  6. metaタグでcharsetをUTF-8に設定しています。
  7. (モチロン他のキャラクターセットに変更しても良いですが)必ずcharsetに設定されているキャラクターセットでセーブして下さい。
  8. -->
  9. <title></title>
  10. <style>
  11. .Display_Container {}
  12.  
  13. .Display_LSwitcher {
  14. user-select: none;
  15. display: inline-block;
  16. font-weight: bold;
  17. color: #fef;
  18. background: #0bb;
  19. border-radius: 0.5rem;
  20. padding: 0.1rem 0.5rem;
  21. }
  22.  
  23. .Display_Content {
  24. display: none;
  25. border: solid thin #000;
  26. }
  27.  
  28. .Display_Switch {
  29. display: none;
  30. }
  31.  
  32. .Display_Switch:checked+.Display_LSwitcher {
  33. font-weight: bold;
  34. color: #767;
  35. background: #0f7;
  36. }
  37.  
  38. .Display_LSwitcher:hover {
  39. font-weight: bold;
  40. color: #767;
  41. background: #5ef;
  42. }
  43.  
  44. .Display_Switch:checked+.Display_LSwitcher:hover {
  45. font-weight: bold;
  46. color: #767;
  47. background: #5ef;
  48. }
  49.  
  50. .Display_Main {
  51. margin: 0.25rem 0;
  52. }
  53.  
  54. .Display_Unit-001 {
  55. display: flex;
  56. justify-content: center;
  57. background: #0ff;
  58. }
  59.  
  60. .Display_Unit-001-Box {
  61. visibility: hidden;
  62. background: #000;
  63. border-radius: 10vw;
  64. width: 20vw;
  65. height: 20vw;
  66. }
  67.  
  68. .Display_Unit-002 {
  69. border: solid thin #000;
  70. border-radius: 0.5rem;
  71. padding: 0.25rem;
  72. margin: 0.25rem;
  73. }
  74.  
  75. .Display_Unit-002-Box {
  76. visibility: hidden;
  77. }
  78.  
  79. .Display_Switch:checked+.Display_LSwitcher+.Display_Main .Display_Unit-001-Box {
  80. visibility: visible;
  81. }
  82.  
  83. .Display_Switch:checked+.Display_LSwitcher+.Display_Main .Display_Unit-002-Box {
  84. visibility: visible;
  85. }
  86.  
  87. </style>
  88. </head>
  89. <body>
  90. <input id="Tab-001" type="checkbox" name="Tab-001" class="Display_Switch">
  91. <label class="Display_LSwitcher" for="Tab-001">Click!</label>
  92. <div class="Display_Main">
  93. <div class="Display_Unit-001">
  94. <div class="Display_Unit-001-Box">
  95. </div>
  96. </div>
  97. <div class="Display_Unit-002">
  98. <div class="Display_Unit-002-Box">
  99. いろはにほへと ちりぬるを<br>
  100. わかよたれそ つねならむ<br>
  101. うゐのおくやま けふこえて<br>
  102. あさきゆめみし ゑひもせす<br>
  103. </div>
  104. </div>
  105. </div>
  106.  
  107. </body>
  108. </html>
  109.  
Success #stdin #stdout 0.02s 25552KB
stdin
Standard input is empty
stdout
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <!--
metaタグでcharsetをUTF-8に設定しています。
(モチロン他のキャラクターセットに変更しても良いですが)必ずcharsetに設定されているキャラクターセットでセーブして下さい。
-->
  <title></title>
  <style>
    .Display_Container {}

    .Display_LSwitcher {
      user-select: none;
      display: inline-block;
      font-weight: bold;
      color: #fef;
      background: #0bb;
      border-radius: 0.5rem;
      padding: 0.1rem 0.5rem;
    }

    .Display_Content {
      display: none;
      border: solid thin #000;
    }

    .Display_Switch {
      display: none;
    }

    .Display_Switch:checked+.Display_LSwitcher {
      font-weight: bold;
      color: #767;
      background: #0f7;
    }

    .Display_LSwitcher:hover {
      font-weight: bold;
      color: #767;
      background: #5ef;
    }

    .Display_Switch:checked+.Display_LSwitcher:hover {
      font-weight: bold;
      color: #767;
      background: #5ef;
    }

    .Display_Main {
      margin: 0.25rem 0;
    }

    .Display_Unit-001 {
      display: flex;
      justify-content: center;
      background: #0ff;
    }

    .Display_Unit-001-Box {
      visibility: hidden;
      background: #000;
      border-radius: 10vw;
      width: 20vw;
      height: 20vw;
    }

    .Display_Unit-002 {
      border: solid thin #000;
      border-radius: 0.5rem;
      padding: 0.25rem;
      margin: 0.25rem;
    }

    .Display_Unit-002-Box {
      visibility: hidden;
    }

    .Display_Switch:checked+.Display_LSwitcher+.Display_Main .Display_Unit-001-Box {
      visibility: visible;
    }

    .Display_Switch:checked+.Display_LSwitcher+.Display_Main .Display_Unit-002-Box {
      visibility: visible;
    }

  </style>
</head>
<body>
  <input id="Tab-001" type="checkbox" name="Tab-001" class="Display_Switch">
  <label class="Display_LSwitcher" for="Tab-001">Click!</label>
  <div class="Display_Main">
    <div class="Display_Unit-001">
      <div class="Display_Unit-001-Box">
      </div>
    </div>
    <div class="Display_Unit-002">
      <div class="Display_Unit-002-Box">
        いろはにほへと ちりぬるを<br>
        わかよたれそ つねならむ<br>
        うゐのおくやま けふこえて<br>
        あさきゆめみし ゑひもせす<br>
      </div>
    </div>
  </div>

</body>
</html>