cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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.

            
              .wrapper
  .card-wrapper
    .bg
       span.corner-border-btn 气泡、时间轴测试
    .content
      .timeline-item
        .bubble-box
          .bubble.yellow 你喜欢我吗
      .timeline-item
        .bubble-box
          .bubble.pink 我喜欢你哦
  .card-wrapper.time
    .bg
      span.corner-border-btn(style="top: 15%") hover行列高亮测试
    .content
      table.hover-link-table
        tr
          td 姓名
          td 年龄
          td 婚恋
        tr
          td 鸿
          td 23
          td 单身
        tr
          td 红
          td 24
          td 已婚
          
  
            
          
!
            
              $themeColor = #FFDAB9
$borderSize = 12px
$borderPadding = 10px
$tableBorderColor = #FFF68F
body
  background #343338
.wrapper
   margin 10vh auto
   text-align center
.timeline-item
  position relative
  width 65%
  margin 0 auto
  padding 0px 20px 0px
  border-left 2px solid $themeColor
  &::before
    position absolute
    content ''
    border-radius 50%
    background $themeColor
    width 10px
    height 10px
    left -6px
.bubble-box
  overflow hidden
.bubble
  height 20px
  // margin 20% auto
  margin-bottom 30px
  border-radius 5px
  padding 10px
  position relative
  &.pink
    background pink
    &:after
      border-color transparent pink
      left 10%
      border-width 0px 20px 20px 0px
  &.yellow
    background #FFF68F
    &:after
      border-color #FFF68F transparent
      right 10%
      border-width 20px 20px 0px 0px
  &:after
    position absolute
    content ''
    bottom -20px
    border-style solid
.corner-border-btn
  color #000
  position relative
  cursor pointer
  top 30%
  padding 0px 10px
  transition all .5s
  &:hover
    padding 0px 30px
    font-size 1.2rem
  &:before, &:after
    content ''
    position absolute
    width $borderSize
    height $borderSize
  &:before
    border-left 1px solid #000
    border-top 1px solid #000
    left -($borderPadding)
    top -($borderPadding)
  &:after
    border-right 1px solid #000
    border-bottom 1px solid #000
    bottom -($borderPadding)
    right -($borderPadding)
.hover-link-table
  margin 10% auto
  border 1px solid #ccc
  width 90%
  table-layout fixed
  border-collapse collapse
  overflow hidden
  tr:not(:last-child)
    border-bottom 1px solid #ccc
  tr td:not(:last-child)
    border-right 1px solid #ccc
  td
    height 30px
    position relative
    cursor pointer
    z-index 1
    &:hover
      z-index 0
      &:after, &:before
        z-index -1
        position absolute
        content ''
        background rgba(255, 248,220, .5)
      &:after
        top 0px
        left -1000px
        height 100%
        width 2000px
      &:before
        left 0px
        top -1000px
        width 100%
        height 2000px
.card-wrapper
  display inline-block
  width 300px
  height 500px
  overflow hidden
  border-radius 10px
  box-shadow 0px 0px 15px rgba(255, 255, 255, 1)
  margin 50px
  .bg
    width 100%
    height 250px
    background-image url('http://img1.3lian.com/2015/a1/20/d/136.jpg')
    background-position 80% 42%
  &.time > .bg
    background-position 53% 50%
  .content
     background #fff
     height 250px
     padding 10px
     position relative
     &::before
       content ''
       border-color transparent #fff #fff transparent
       border-width 30px 150px 30px 150px
       border-style solid
       position absolute
       top -60px
       left 0px
       
            
          
!
999px
Loading ..................

Console