Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                #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")
      
  
              
            
!

CSS

              
                @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;
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console