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

              
                link(href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet")
link(href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css", rel="stylesheet", integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1", crossorigin="anonymous")
.profile-card-1
    .img
        img(src="http://blogs.timesofindia.indiatimes.com/wp-content/uploads/2015/12/mark-zuckerberg.jpg")
    a(href="").view-more
        i(class="fa fa-plus-circle" aria-hidden="true")
        .popup
    .mid-section
        .name Mark Zuckerberg
        .description Founder and Owner at 
            a(href="https://facebook.com") Facebook
        .line
        .stats
            .stat 81.3M
                .subtext Followers
            .stat 822k
                .subtext Likes
            .stat 750k
                .subtext Shares
                
    .links
        a(href="").fb
            i(class="fa fa-facebook-f" aria-hidden="true")
        a(href="").twitter
            i(class="fa fa-twitter" aria-hidden="true")
        a(href="").follow
            i(class="fa fa-rocket" aria-hidden="true")
    
              
            
!

CSS

              
                $main-bg-color: #F2F2F2
$main-color: #2ECC71
$main-bg: linear-gradient(rgba(46,204,113, .4), rgba(46,204,113, .95)), url("https://static.pexels.com/photos/21014/pexels-photo-medium.jpg")
$sub-color: #97e7b9
$grey: #979797
$fb-color: #3b5998
$twitter-color: #55ACEE
$follow-color: $main-color
$top-height: 130px
$bottom-height: 50px
$link-border: lighten($main-color, 6%)
$total-height: 390px
$mid-height: 200px

body
    background: $main-bg-color
    font-family: 'Ubuntu', sans-serif
    
.profile-card-1
    width: 300px
    height: $total-height
    background: white
    margin: 0 auto
    border-radius: 10px
    text-align: center
    box-shadow: 4px 4px 10px #999
    position: relative
    box-sizing: border-box
    overflow: hidden
    .view-more
        position: absolute
        top: calc(50% - .5em)
        left: calc(50% - .5em)
        z-index: 2
        color: $main-color
        font-size: 2em
        .fa-plus-circle
            position: absolute
            background: white
            border-radius: 50%
            width: 1.004em
            &:hover
                background: $main-color
                color: white
    .popup
        height: 500px
        width: 500px
        display: block
        position: absolute
        top: 0
        left: 0

    .mid-section
        position: absolute
        height: $mid-height
        width: 100%
        top: $mid-height
        left: 0
        padding: 10px 20px 0
        box-sizing: border-box
        background: white
        .name
            color: lighten(black, 20%)
            font-size: 1.4em
            padding-top: 5px
            background: rgba(255,255,255,.1)
            font-weight: bold
        .description
            color: lighten(black, 50%)
            font-size: .9em
            padding-bottom: 5px
            background: rgba(255,255,255,.1)
            a
                color: inherit
                text-decoration: none
                font-weight: bold
        .line
            background: lighten($main-color, 20%)
            width: 80%
            height: 2px
            margin: 5px auto -3px
        .stats
            display: flex
            position: absolute
            left: 10%
            padding-top: 10px
            width: 80%
            justify-content: space-around
            .stat
                font-size: 1.3em
                color: lighten(black, 20%)
                padding: 5px
                font-weight: bold
            .subtext
                color: lighten(black, 50%)
                font-size: .6em
                font-weight: normal
    .img
        height: $top-height
        width: 100%
        background-image: $main-bg
        padding: 20px
        box-sizing: border-box
        position: relative
        img
            width: 160px
            height: 160px
            padding: 3px
            border-radius: 50%
            border: 3px solid rgba(255,255,255,.6)
            position: absolute
            left: calc(50% - 84px)
            top: 26px
        &:after
            content: ""
            position: absolute
            width: 180px
            height: 180px
            border-radius: 50%
            left: calc(50% - 91.5px)
            top: 20px
            border: 3px solid rgba(255,255,255,.4)
        &:before
            content: ""
            position: absolute
            width: 190px
            height: 190px
            border-radius: 50%
            left: calc(50% - 95px)
            top: 15.5px
            border: 2px solid rgba(255,255,255,.2)
    .links
        width: 100%
        height: $bottom-height
        background: $main-bg-color
        border-top: 1px solid $link-border
        margin-top: 35px
        border-radius: 5px
        color: white
        font-size: 2em
        line-height: 1.5em
        position: absolute
        bottom: 0
        a
            color: white
        .fb
            position: absolute
            left: 0
            width: 25%
            height: 100%
            background-color: $fb-color
            &:hover
                background-color: lighten($fb-color, 5%)
        .twitter
            position: absolute
            left: 25%
            width: 25%
            height: 100%
            background-color: $twitter-color
            &:hover
                background-color: lighten($twitter-color, 5%)
        .follow
            position: absolute
            left: 50%
            width: 50%
            height: 100%
            background-color: $follow-color
            &:hover
                background-color: lighten($follow-color, 5%)
.profile-card-2
    width: 250px
    height: 500px
    background: $main-color
              
            
!

JS

              
                // no js
              
            
!
999px

Console