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


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


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.


                <div class="logo-preview">
    <div class="instagram-logo"><div><div></div><div></div></div></div>

<a class="twitter-button" href="" target="_blank" title="Follow on twitter">@MonirAbuHilal</a>


                // Use this variable to resize the logo
@logo-size: 269px;

.instagram-logo {
    position: relative;
    width: @logo-size;
    height: @logo-size;
    overflow: hidden;
    background: linear-gradient(145deg, #3051F1 10%, #C92BB7 70%) no-repeat;
    border-radius: 62px * @LOGO_SCALING_RATIO;
    box-shadow: 0px (2px * @LOGO_SCALING_RATIO) (9px * @LOGO_SCALING_RATIO) rgba(0,0,0,0.25);

    // Radial Gradient
    &:before {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
        content: '';
        background: radial-gradient(circle farthest-corner at 28% 100% ,
            #FCDF8F 0%, 
            #FBD377 10%,
            #FA8E37 22%,
            #F73344 35%,
            fade(#F73344, 0%) 65%
        ) no-repeat;
    &, * {
        box-sizing: border-box;
    * {
        position: absolute;
        display: block;
    // Inner Square
    > div {
        @inner-square-size: 197px;
        @inner-square-size-normalized: @inner-square-size * @LOGO_SCALING_RATIO;
        @inner-square-margin: (@logo-size - @inner-square-size-normalized) / 2;
        top: @inner-square-margin;
        left: @inner-square-margin;
        width: @inner-square-size-normalized;
        height: @inner-square-size-normalized;
        border-radius: 57px * @LOGO_SCALING_RATIO;
        border: @LOGO_BORDER_WIDTH #ffffff solid;
        // Lens
        > div:nth-child(1) {
            @lens-size: 100px;
            @lens-size-normalized: @lens-size * @LOGO_SCALING_RATIO;
            @lens-margin: (@inner-square-size-normalized - @lens-size-normalized) / 2 - @LOGO_BORDER_WIDTH;
            top: @lens-margin;
            left: @lens-margin;
            width: @lens-size-normalized;
            height: @lens-size-normalized;
            border-radius: 50%;
            border: @LOGO_BORDER_WIDTH #ffffff solid;

        // Flash Light
        > div:nth-child(2) {
            @flash-size: 23px;
            @flash-size-normalized: @flash-size * @LOGO_SCALING_RATIO;
            @flash-margin: 17px * @LOGO_SCALING_RATIO;
            display: block;
            width: @flash-size-normalized;
            height: @flash-size-normalized;
            background-color: #ffffff;
            border-radius: 50%;
            right: @flash-margin;
            top: @flash-margin;

// ======== Other Styles =======
html, body {
    margin: 0;
    padding: 0;

.logo-preview {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;

.twitter-button {
    @twitter-brand-color: #55ACEE;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 16px;
    font-family: monospace;
    background: rgba(0,0,0,0);
    color: @twitter-brand-color;
    border-radius: 0px 0px 10px 0px;
    padding: 10px;
    transition: 0.3s all;
    overflow: hidden;
    box-shadow: 0px 0px 10px rgba(0,0,0,0);

    &:hover {
        background-color: @twitter-brand-color;
        color: #ffffff;
        box-shadow: 0px 0px 10px rgba(0,0,0,0.15);