123

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <body>
    <header id="header">
    <div class="container">
      <!-- checkbox of mainMenuLink -->
      <input type="checkbox" class="checkboxMainMenu" id="labelMainMenu">
      <label class="closeButtonMainMenu" for="labelMainMenu"></label>
      <label class="buttonCancelMainMenu" for="labelMainMenu"><div class="buttonHamburger"></div></label>
      <div id="mainMenuLink">
        <ul>
          <li><a href="">マイメニュー</a></li>
          <li><a href="">設定</a></li>
          <li><a href="">ヘルプ</a></li>
        </ul>
      </div><!-- /mainMenuLink -->
      <!-- checkbox of categoryLink -->
      <input type="checkbox" class="checkboxCategory" id="labelCategory">
      <label class="closeButton" for="labelCategory"></label>
      <label class="buttonCancelCategory" for="labelCategory"><div class="buttonCategory">カテゴリ</div></label>
      <div id="categoryLink">
        <ul>
          <li><a href="">カテゴリ一覧</a></li>
          <li><a href="">タイムライン</a></li>
          <li><a href="">ランキング</a></li>
          <li><a href="">ブックマーク</a></li>
        </ul>
      </div><!-- /categoryLink -->
      <div id="homeButton">
        <a href="">ポコ帳</a>
      </div><!-- /homeButton -->
    </div><!-- /container -->
    </header>
    <main id="main">
      <div class="container">
      <div id="agenda">
        <div class="subHeader">
          <div class="itemInSubHeader">
            議題
          </div><!-- itemInSubHeader -->
        <!-- checkbox of subMenuLink in agenda -->
        <input type="checkbox" class="checkboxAgenda" id="labelAgenda">
        <label class="closeButton" for="labelAgenda"></label>
        <label class="buttonCancelSubMenuLink" for="labelAgenda"><div class="buttonTriangle"></div></label>
        <div class="subMenuLink">
          <ul>
            <li><a href="">議題を新規作成</a></li>
            <li><a href="">ブックマークに登録</a></li>
            <li><a href="">投稿者情報を表示</a></li>
            <li><a href="">違反を通報</a></li>
          </ul>
        </div><!-- /subMenuLink -->
        </div><!-- /subHeader -->
        <div class="contents">
            議題です。議題です。議題です。議題です。議題です。
        </div><!-- /conntens -->
        <div class="prevNextLink">
          <div class="prevLink">
            <a href=""><span class="prevNextLtGt">&lt; </span>前の議題</a>
          </div><!-- /prevLink -->
          <div class="nextLink">
            <a href=""><span class="prevNextLtGt">&gt; </span>次の議題</a>
          </div><!-- /nextLink -->
        </div><!-- /prevNextLink -->
      </div><!-- /agenda -->
      <div id="answer">
        <div class="subHeader">
          <div class="itemInSubHeader">
            答え
          </div><!-- itemInSubHeader -->
        <!-- checkbox of subMenuLink in answer -->
        <input type="checkbox" class="checkboxAnswer" id="labelAnswer">
        <label class="closeButton" for="labelAnswer"></label>
        <label class="buttonCancelSubMenuLink" for="labelAnswer"><div class="buttonTriangle"></div></label>
        <div class="subMenuLink">
          <ul>
            <li><a href="">答えを新規作成</a></li>
            <li><a href="">ブックマークに登録</a></li>
            <li><a href="">投稿者情報を表示</a></li>
            <li><a href="">違反を通報</a></li>
          </ul>
        </div><!-- /subMenuLink -->
        </div><!-- /subHeader -->
        <div class="contents">
            答えです。<br>答えです。答えです。<br>答えです。答えです。答えです。<br>答えです。答えです。答えです。答えです。<br>答えです。答えです。答えです。答えです。答えです。
        </div><!-- /conntens -->
        <div class="prevNextLink">
          <div class="prevLink">
            <a href=""><span class="prevNextLtGt">&lt; </span>前の答え</a>
          </div><!-- /prevLink -->
          <div class="nextLink">
            <a href=""><span class="prevNextLtGt">&gt; </span>次の答え</a>
          </div><!-- /nextLink -->
        </div><!-- /prevNextLink -->
      </div><!-- /answer -->
      <div id="comments">
        <div class="subHeader">
          <div class="itemInSubHeader">
            コメント
          </div><!-- itemInSubHeader -->
        <!-- checkbox of subMenuLink in comments -->
        <input type="checkbox" class="checkboxComments" id="labelComments">
        <label class="closeButton" for="labelComments"></label>
        <label class="buttonCancelSubMenuLink" for="labelComments"><div class="buttonTriangle"></div></label>
        <div class="subMenuLink">
          <ul>
            <li><a href="">コメントを新規作成</a></li>
            <li><a href="">ブックマークに登録</a></li>
            <li><a href="">投稿者情報を表示</a></li>
            <li><a href="">違反を通報</a></li>
          </ul>
        </div><!-- /subMenuLink -->
        </div><!-- /subHeader -->
        <div class="commentsOfComments">
          <a href=""><span class="commentsOfLtGt">&lt;</span> 上層のコメント</a>
        </div><!-- /commentsOfComments -->
        <div class="contents">
            コメントです。コメントです。コメントです。コメントです。コメントです。コメントです。
        </div><!-- /conntens -->
        <div class="prevNextLink">
          <div class="prevLink">
            <a href=""><span class="prevNextLtGt">&lt; </span>前のコメント</a>
          </div><!-- /prevLink -->
          <div class="nextLink">
            <a href=""><span class="prevNextLtGt">&gt; </span>次のコメント</a>
          </div><!-- /nextLink -->
        </div><!-- /prevNextLink -->
        <div class="commentsOfComments">
          <a href=""><span class="commentsOfLtGt">&gt;</span> 下層のコメント</a>
        </div><!-- /commentsOfComments -->
      </div><!-- /comments -->
      </div><!-- /container -->
    </main>
    <footer id="footer">
      <div class="container">
        <div id="footerLink">
          <ul>
            <li><a href="">ポコ帳について</a></li>
            <li><a href="">利用規約</a></li>
            <li><a href="">ヘルプ</a></li>
          </ul>
        </div><!-- /footerLink -->
      </div><!-- /container -->
    </footer>
      <div id="copyright">
        Copyright &copy; 2016 絶対他力
      </div><!-- /copyright -->
  </body>
</html>
            
          
!
            
              @charset "UTF-8";

body{
    font-family: Arial, Verdana, sans-serif;
}

.container{
    width: 95%;
    margin: 0 auto;
    position: relative;
}

#header{
    background: #51b11d;
    position: relative;
    overflow: hidden;
}

#mainMenuLink{
    display: none;
}

#mainMenuLink a{
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    width: 6.5rem;
    color: #000000;
    background: #ffffff;
    text-align: center;
    border: 1px #51b11d solid;
    border-radius: 1rem;
}

#mainMenuLink a:hover{
    color: #ffffff;
    background: #51b11d;
}


#mainMenuLink ul{
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0;
}

#homeButton{
    display: inline-block;
    float: left;
    position: absolute;
    left: 45vw;
    width: 5rem;
    text-align: center;
}

#homeButton a{
    text-decoration: none;
    display: inline-block;
    position: relative;
    left: -50%;
    font-size: 1.2rem;
    width: 4.5rem;
    color: #ffffff;
    font-weight: bold;
}

#categoryLink{
    display: none;
}

#categoryLink a{
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    width: 7rem;
    color: #000000;
    background: #ffffff;
    text-align: center;
    border: 1px #51b11d solid;
    border-radius: 1rem;
}

#categoryLink a:hover{
    color: #ffffff;
    background: #51b11d;
}

#categoryLink ul{
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0;
}

.subMenuLink{
    display: none;
}

.subMenuLink a{
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    width: 10rem;
    text-align: center;
    color: #000000;
    background: #ffffff;
    border: 2px #51b11d solid;
    border-radius: 1rem;
    margin: 1px;
}

.subMenuLink a:hover{
    background: #51b11d;
    color: #ffffff;
}

.subMenuLink ul{
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0;
}

#main{
    background: #ffffff;
}

.subHeader{
    overflow: hidden;
}

.itemInSubHeader{
    display: inline-block;
    float: left;
    width: auto;
    height: auto;
    font-size: 0.9rem;
    font-weight: bold;
}

#agenda {
    border: 1px #000A00 solid;
}

.contents{
    padding: 0.5rem;
    box-sizing: border-box;
    border-top: 1px #000000 solid;
    max-height: 15vh;
    overflow-y: auto;
}

.prevNextLink{
    overflow: hidden;
}

.prevNextLtGt {
    color: #51b11d;
    font-weight: bold;
}

.prevLink a{
    text-decoration: none;
    display: inline-block;
    float: left;
    width: 6rem;
    text-align: center;
    font-size: 0.9rem;
    color: #000000;
    border-radius: 1rem;
    margin: 1px;
}

.prevLink a:hover{
    background: #DEF2DE;
}

.nextLink a{
    text-decoration: none;
    display: inline-block;
    float: right;
    width: 7rem;
    text-align: center;
    font-size: 0.9rem;
    color: #000000;
    border-radius: 1rem;
    margin: 1px;
}

.nextLink a:hover{
    background: #DEF2DE;
}

#answer{
    border: 1px #000A00 solid;
}

#comments{
    border: 1px #000A00 solid;
}

.commentsOfComments {
    text-align: center;
    border-top: 1px #000000 solid;
}

.commentsOfComments a{
    text-decoration: none;
    display: inline-block;
    width: 8rem;
    text-align: center;
    font-size: 0.9rem;
    color: #000000;
    border-radius: 1rem;
    margin: 1px;
}

.commentsOfComments a:hover{
    background: #DEF2DE;
}

.commentsOfLtGt{
     display: inline-block;
     transform: rotate(90deg);
     color: #51b11d;
     font-weight: bold;
}

#footer{
    background: #51b11d;
}

#footerLink{
    text-align: left;
}

#footerLink a{
    text-decoration: none;
    display: inline-block;
    width: 7.5rem;
    color: #ffffff;
    background: #424242;
    text-align: center;
    font-size: 0.9rem;
    border: 1px #51b11d solid;
    border-radius: 1rem;
}

#footerLink a:hover{
    background: #585858;
}


#footerLink ul{
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0;
}

#footerLink ul li{
    display: inline-block;
}

#copyright{
    text-align: center;
    font-size: 0.7rem;
    color: #848484;
}

/* For checkbox */

.checkboxMainMenu, .checkboxCategory, .checkboxAgenda, .checkboxAnswer, .checkboxComments{
    display: none;
}


.buttonCancelMainMenu {
    display: inline-block;
    position: relative;
    float: right;
    padding: 0;
    width: 2.4rem;
    height: 1.2rem;
    background: #51b11d;
    border: 2px #ffffff solid;
    border-radius: 1rem;
    z-index: 0;
    cursor: pointer;
}

.buttonCancelCategory {
    display: inline-block;
    position: relative;
    float: left;
    padding: 0;
    width: 4.5rem;
    height: 1.2rem;
    margin-top: 0.1rem;
    margin-right: 0.1rem;
    background: #000000;
    border-color: #000000;
    z-index: 0;
    cursor: pointer;
}

.buttonCancelSubMenuLink{
    display: inline-block;
    position: relative;
    float: right;
    padding: 0;
    width: 2.4rem;
    height: 1.2rem;
    background: #ffffff;
    border: 2px #51b11d solid;
    border-radius: 1rem;
    z-index: 0;
    cursor: pointer;
}

.buttonCancelMainMenu:before{
    display: block;
    content: "";
    position: absolute;
    top: -0.1rem;
    left: 1.1rem;
    width: 0.2rem;
    height: 1.41rem;
    border-radius: 0.1rem;
    background: #51b11d;
    transform: rotate(45deg);
    z-index: inherit;
}

.buttonCancelMainMenu:after{
    display: block;
    content: "";
    position: absolute;
    top: -0.1rem;
    left: 1.1rem;
    width: 0.2rem;
    height: 1.41rem;
    border-radius: 0.1rem;
    background: #51b11d;
    transform: rotate(-45deg);
    z-index: inherit;
}

.buttonCancelCategory:before{
    display: block;
    content: "";
    position: absolute;
    top: -0.1rem;
    left: 2.2rem;
    width: 0.2rem;
    height: 1.41rem;
    border-radius: 0.1rem;
    background: #51b11d;
    transform: rotate(45deg);
    z-index: inherit;
}

.buttonCancelCategory:after{
    display: block;
    content: "";
    position: absolute;
    top: -0.1rem;
    left: 2.2rem;
    width: 0.2rem;
    height: 1.41rem;
    border-radius: 0.1rem;
    background: #51b11d;
    transform: rotate(-45deg);
    z-index: inherit;
}

.buttonCancelSubMenuLink:before{
    display: block;
    content: "";
    position: absolute;
    top: -0.1rem;
    left: 1.1rem;
    width: 0.2rem;
    height: 1.41rem;
    border-radius: 0.1rem;
    background: #ffffff;
    transform: rotate(45deg);
    z-index: inherit;
}

.buttonCancelSubMenuLink:after{
    display: block;
    content: "";
    position: absolute;
    top: -0.1rem;
    left: 1.1rem;
    width: 0.2rem;
    height: 1.41rem;
    border-radius: 0.1rem;
    background: #ffffff;
    transform: rotate(-45deg);
    z-index: inherit;
}

.buttonHamburger{
    display: inline-block;
    position: relative;
    left: 0.5rem;
    margin: 0 0.2rem 0.22rem 0.2rem;
    padding: 0;
}

.buttonHamburger{
    width: 1rem;
    height: 0.2rem;
    border-radius: 0.1rem;
    background: #ffffff;
    z-index: 1;
}
.buttonHamburger:before{
    width: 1rem;
    height: 0.2rem;
    border-radius: 0.1rem;
    background: #ffffff;
    margin-top: -33%;
    z-index: inherit;
}
.buttonHamburger:after{
    width: 1rem;
    height: 0.2rem;
    border-radius: 0.1rem;
    background: #ffffff;
    z-index: inherit;
    margin-top: 33%;
}

.buttonHamburger:before, .buttonHamburger:after{
    display: block;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
}

.buttonCategory{
    display:inline-block;
    position: relative;
    text-align: center;
    width: 4.5rem;
    height: 1.2rem;
    color: #ffffff;
    background-color: inherit;
    border-color: inherit;
    border-radius: inherit;
    z-index: 1;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
}

.buttonCategory:before{
    display: block;
    position: absolute;
    content: "";
    left: 100%;
    width: 0;
    height: 0;
    border: 0.6rem solid transparent;
    border-left-color: inherit;
}

.buttonTriangle {
    display:inline-block;
    position: absolute;
    width: 0;
    height: 0;
    left: 0.5rem;
    margin: 0.35rem 0 0 0;
    padding: 0;
    border: 0.7rem solid transparent;
    border-top-color: #51b11d;
    z-index: 1;
}

.closeButtonMainMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
}

.closeButton {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
}

.checkboxMainMenu:checked ~ .closeButtonMainMenu {
    visibility: visible;
    background: #000000;
    opacity: 0.3;
    z-index: 1;
}

.checkboxCategory:checked ~ .closeButton {
    visibility: visible;
    background: #000000;
    opacity: 0.3;
    z-index: 1;
}

.checkboxAgenda:checked ~ .closeButton {
    visibility: visible;
    background: #000000;
    opacity: 0.3;
    z-index: 1;
}

.checkboxAnswer:checked ~ .closeButton {
    visibility: visible;
    background: #000000;
    opacity: 0.3;
    z-index: 1;
}

.checkboxComments:checked ~ .closeButton {
    visibility: visible;
    background: #000000;
    opacity: 0.3;
    z-index: 1;
}

.checkboxMainMenu:checked ~ .buttonCancelMainMenu {
    background: #ffffff;
    border: 2px #51b11d solid;
    z-index: 2;
}

.checkboxCategory:checked ~ .buttonCancelCategory {
    background: #ffffff;
    border-color: transparent;
    border-radius: 1rem;
    z-index: 2;
}

.checkboxAgenda:checked ~ .buttonCancelSubMenuLink {
    background: #51b11d;
    border: 2px #ffffff solid;
    z-index: 2;
}

.checkboxAnswer:checked ~ .buttonCancelSubMenuLink {
    background: #51b11d;
    border: 2px #ffffff solid;
    z-index: 2;
}

.checkboxComments:checked ~ .buttonCancelSubMenuLink {
    background: #51b11d;
    border: 2px #ffffff solid;
    z-index: 2;
}

.checkboxMainMenu:checked ~ #mainMenuLink {
    position: relative;
    display: inline-block;
    float: right;
    width: auto;
    height: auto;
    z-index: 2;
}

.checkboxCategory:checked ~ #categoryLink {
    position: relative;
    display: inline-block;
    float: left;
    width: auto;
    height: auto;
    z-index: 2;
}

.checkboxAgenda:checked ~ .subMenuLink {
    position: relative;
    display: inline-block;
    float: right;
    width: auto;
    height: auto;
    z-index: 2;
}

.checkboxAnswer:checked ~ .subMenuLink {
    position: relative;
    display: inline-block;
    float: right;
    width: auto;
    height: auto;
    z-index: 2;
}

.checkboxComments:checked ~ .subMenuLink {
    position: relative;
    display: inline-block;
    float: right;
    width: auto;
    height: auto;
    z-index: 2;
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console