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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

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

              
                .header
  img.icon(src="https://picsum.photos/seed/picsum/600/300")
.content.content_grey
 .max_width
  h5 Style Guideline
  h1 品牌視覺引導-40px 大標題
  h1.small_english English Style dudideline for h1 title
  .title_hr
  br
  h2 品牌視覺引導-30px 中標題
  h2.small_english English Style dudideline for h2 title
  br
  h3 品牌視覺引導-20px 小標題
  h3.small_english English Style dudideline for h3 title
  br
  
  hr
  h5 VI COLORS 
  .color_chip
    .color_tag #ffb336
    .color_block.color_block_yellow
  .color_chip
    .color_tag #27232F
    .color_block.color_block_blue
  .color_chip
    .color_tag #f3f7f7
    .color_block.color_block_white
  .color_chip
    .color_tag #333333
    .color_block.color_block_grey
  h5 BUTTON EXAMPLE
  .button 按鈕範例
  .button.button_blue 按鈕範例
  .button.button_yellow 按鈕範例
  
 
.content.content_white
 .max_width
  h5 Style Guideline
  h1 品牌視覺引導-40px 大標題
  h1.small_english English Style dudideline for h1 title
  .title_hr
  br
  h2 品牌視覺引導-30px 中標題
  h2.small_english English Style dudideline for h2 title
  br
  h3 品牌視覺引導-20px 小標題
  h3.small_english English Style dudideline for h3 title
  br
  
  hr
  h5 VI COLORS 
  .color_chip
    .color_tag #ffb336
    .color_block.color_block_yellow
  .color_chip
    .color_tag #27232F
    .color_block.color_block_blue
  .color_chip
    .color_tag #f3f7f7
    .color_block.color_block_white
  .color_chip
    .color_tag #333333
    .color_block.color_block_grey
  h5 BUTTON EXAMPLE
  .button 按鈕範例
  .button.button_blue 按鈕範例
  .button.button_yellow 按鈕範例
  
.content.content_blue
 .max_width
  h5 Style Guideline
  h1 品牌視覺引導-40px 大標題
  h1.small_english English Style dudideline for h1 title
  .title_hr
  br
  h2 品牌視覺引導-30px 中標題
  h2.small_english English Style dudideline for h2 title
  br
  h3 品牌視覺引導-20px 小標題
  h3.small_english English Style dudideline for h3 title
  br
  
  hr
  h5 VI COLORS 
  .color_chip
    .color_tag #ffb336
    .color_block.color_block_yellow
  .color_chip
    .color_tag #27232F
    .color_block.color_block_blue
  .color_chip
    .color_tag #f3f7f7
    .color_block.color_block_white
  .color_chip
    .color_tag #333333
    .color_block.color_block_grey
  h5 BUTTON EXAMPLE
  .button 按鈕範例
  .button.button_blue 按鈕範例
  .button.button_yellow 按鈕範例
              
            
!

CSS

              
                $color_yellow: #ffb336
$color_blue: #27232F
$color_white: #f3f7f7
$color_grey: #333333

$font_base_size: 10px

$max_content_width: 768px

*
  // border: solid 1px
  position: relative

@mixin size($w,$h)
  width: $w
  height: $h
  
html,body
  padding: 0px
  margin: 0px

.max_width
  max-width: $max_content_width
  margin-left: auto
  margin-right: auto
  
.header
  height:300
  background-color: $color_blue
  & .icon
    // width:0px
    position:absolute
    left: 50%
    top: 50%
    transform: translateX(-50%) translateY(0%)
    
  

.content
  font-family: 'Roboto',微軟正黑體
  padding: 50px
  
  & h5
    margin-top: 10px
  & .title_hr
     border: solid 3px $color_yellow
     width:100px
    
  
  & h1
    font-size: $font_base_size*4
  & h2
    font-size: $font_base_size*3
  & h3
    font-size: $font_base_size*2
    
  & h1.small_english
    font-size: $font_base_size*2.4
  & h2.small_english
    font-size: $font_base_size*1.6
  & h3.small_english
    font-size: $font_base_size*1.2
    
  & .small_english
      margin-top: -15px
      
  & .button
    padding: 5px 25px
    display: inline-block
    margin-right: 10px
    letter-spacing: 2px
    font-size: $font_base_size*1.5
    font-weight: bold
    border: solid 1px white
  & .button_blue
    background-color: $color_blue
    color: $color_white
    font-weigth:500
    border: solid 1px white
  & .button_yellow
    background-color: $color_yellow
    border: solid 1px white
    
  & .color_chip
    display: inline-block
    margin-right: 25px
    & .color_block,& .color_tag
      display: inline-block
      vertical-align: middle
    & .color_tag
        width:70px
    & .color_block
      +size(35px,35px)
      border: solid 1px white
    & .color_block_yellow
      background-color: $color_yellow
    & .color_block_blue
      background-color: $color_blue
    & .color_block_white
      background-color: $color_white
    & .color_block_grey
      background-color: $color_grey
      
.content_grey
  background-color: $color_grey
  color: $color_white
  & .small_english
    color: $color_yellow
  & h1,& h2,& h3
    font-weight:500
  & .button
     border-color: $color_white
      
    
.content_white
  background-color: $color_white
  color: $color_blue
  & .small_english
    color: $color_yellow
  & h1,& h2,& h3
      font-weight:500
  & .button
     border-color: $color_blue
      
     
.content_blue
  background-color: $color_blue
  color: $color_white
  & .small_english
    color: $color_yellow
  & h1,& h2,& h3
      // font-weight:500
  & .button
     border-color: $color_white
          
    
    
      
    
  
    
    
              
            
!

JS

              
                
              
            
!
999px

Console