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 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

              
                
<div class="layer">

</div>



    <div class="circle-container">

        <div id="landingUI">

          <div id="inside_circle">

            <div id="icon_top"></div>

                <div id="center_column">

                  <div class="left"></div>

                  <div class="right"></div>

                </div>

            <div id="icon_bottom"></div>

          </div>

        </div>

    </div>
</html>

              
            
!

CSS

              
                /****
 * some pretty variable in sass
 */
$icon_size: 111px;
$size_landing_round: 500px;

@mixin border-line($width, $color) {
  // just for development
  border: $width solid $color;
}

@mixin icon($icon, $icon_size) {
  background-image: url('/images/icons/#{$icon}.png');
  background-size: $icon_size $icon_size;
  background-repeat: no-repeat;

}

// FIXME: i need some eye candy!
@mixin shadow-icons($icon_size) {
  border-radius: 50%;
  width: $icon_size;
  height: $icon_size;

  border: 2px solid rgba(0, 0, 0, .2);
  -webkit-background-clip: padding-box; /* for Safari */
  background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
}



html, body{
  height:100%;
  width: 100%;
}

body {
  background-image: url('https://snap-photos.s3.amazonaws.com/img-thumbs/960w/59PV3K0KF8.jpg');
  background-size: cover;

  /* Start Flex from w3c */
  display: -webkit-inline-flex;
  display: flex;
  justify-content: center;
  align-items: center;
}

body:after {
  content:'';
  background: url('https://i.imgur.com/1jR9baL.png');
  clip-path: inset(10px 20px 30px 40px);
  width:100%;
  height:100%;
  position:absolute;
  top:0;
  left:0;
}

/* Center the element vertical/horison */
.circle-container {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -ms-flex-align: center;
    -webkit-align-items: center;
    -webkit-box-align: center;
    align-items: center;
    z-index: 3;


}

/* make the round circle */
#landingUI {
  border-radius: 50%;
  width: $size_landing_round;
  height: $size_landing_round;
  
  // FIXME 
  // I would like to not see the parent alpha png
  // So darker outside and light or default bg ground image
  // here
  background-color: rgba(0, 0, 0, .2);
  clip-path: circle(60px at center);
  background-image: url('dd');

  #inside_circle {
    width: inherit;
    height: inherit;

    #icon_top {
      width: $icon_size;
      height: $icon_size;
      margin: 0 auto;
      margin-top: -$icon_size * 0.5;

      @include border-line(1px, red);
      @include shadow_icons($icon_size);
      @include icon(icon1, $icon_size);

    }

    #icon_bottom {
      width: $icon_size;
      height: $icon_size;
      margin: 0 auto;
      margin-top: $size_landing_round + ( $icon_size * -1); /* :D */

      @include border-line(1px, yellow);
      @include shadow_icons($icon_size);
      @include icon(icon2, $icon_size);
    }

    #center_column {
      @include border-line(1px, pink);
      width: $size_landing_round;
      float: left;
      margin-top: $size_landing_round / 2 + ( $icon_size * -1);

      .left {
        float: left;
        width: $icon_size;
        margin-left: -$icon_size / 2;
        height: $icon_size;

        @include border-line(1px, black);
        @include shadow_icons($icon_size);
        @include icon(icon3, $icon_size);
      }

      .right {
        width: $icon_size;
        height: $icon_size;
        margin-left: $size_landing_round - ($icon_size / 2);

        @include border-line(1px, magenta);
        @include shadow_icons($icon_size);
        @include icon(icon4, $icon_size);
      }

    }

  }
}



              
            
!

JS

              
                
              
            
!
999px

Console