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.

            
              #app
  .view-header
    h2.view-header-sub-title 重要!
    h1.view-header-title 数多くの名誉ある賞!
  .view-content
    ul.view-content-list
      li.view-content-list-item 「このマンガがすごい!2016」
      li.view-content-list-item 「マンガ大賞2016」
      li.view-content-list-item 「第9回 国際漫画賞」
      li.view-content-list-item 「第18回 文化庁メディア芸術祭マンガ部門」
      li.view-content-list-item 「全国書店員が選んだおすすめコミック2016」
      li.view-content-list-item 「第154回 芥川龍之介賞」
    .view-content-image
      h2.view-content-image-title これらは<br />数多くの名誉ある<br />賞なのぢゃ!
      image(src="https://dummyimage.com/100x150/a3a1a1/fff" class="view-content-image-photo")
      
  
            
          
!
            
              @mixin mincho {
font-family: “ヒラギノ明朝 ProN W3”, “Hiragino Mincho ProN”,”游明朝”, YuMincho, “メイリオ”,Meiryo,”MS P明朝”, “MS PMincho”, “MS 明朝”, serif;
}
@mixin gothic {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', '游ゴシック  Medium', meiryo, sans-serif;
}
@mixin tategaki {
  -ms-writing-mode: tb-rl; /* for MS IE11 */
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
}

html, body { font-size: 62.5% !important; }

#app {
  min-width: 650px;
  padding: 10px;
  background-color: #DC513E;
}

.view-header {
  display: flex;
  position: relative;
  &-sub-title {
    color: #fff;
    font-size: 1.7rem;
    @include mincho;
    @include tategaki;
    margin: 0;
    padding: 1px;
    position: absolute;
    top: 10px;
    left: 0px;
    border: 2px solid #fff;
    border-radius: 4px;
    text-align: center;
    height: 90%;
    transform: rotate(-10deg);
    overflow: hidden;
  }
  &-title {
    margin: 0;
    margin-left: 50px;
    font-size: 5.0rem;
    font-weight: 900;
    @include gothic;
    color: #263D8B;
  }
}
.view-content {
  display: flex;
  margin-left: 50px;
  &-list {
    margin: 0;
    padding: 0;
    list-style: none;
    &-item {
      @include mincho;
      font-size: 1.5rem;
      color: #fff;
    }
  }
  &-image {
    display: flex;
    @include mincho;
    margin-left: 5px;
    &-title {
      margin: 0;
      padding: 20px 10px 10px 10px;
      font-size: 1.3rem;
      color: #333;
      background-color: #fff;
      @include tategaki;
      border-radius: 80px / 80px;
      line-height: 1.8;
      position: relative;
      &:after {
        content: "";
        position: absolute;
        width: 0;
        height: 0;
        right: -12px;
        bottom: 35px;
        border-style: solid;
        border-color: transparent transparent transparent #fff;
        border-width: 8px 0 8px 17.32px;
        // transform: rotate(45deg);
      }
    }
    &-photo {
      margin-left: 20px;
    }
  }
}
            
          
!
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