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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

            
              <div class="window window__osx">
  <header class="window--header">
    <div class="controls">
      <button class="controls--button controls--button__close"> 
        <svg class="icon" viewBox="0 0 24 24">
          <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
        </svg>
      </button>
      <button class="controls--button controls--button__min">
        <svg class="icon" viewBox="0 0 24 24">
          <path d="M19 13H5v-2h14v2z"/>
        </svg>
      </button>
      <button class="controls--button controls--button__max">
        <svg class="icon" viewBox="0 0 24 24">
          <path d="M7.4 5l11.2 11V5m-2.8 13.8L4.6 7.8v11" />
        </svg>
      </button>
    </div>
    
    <div class="sync-indicator">
      <h6 class="sync-title"></h6>
      <svg class="sync-progress" viewBox="0 0 48 48">
        <circle cx="24" cy="24" r="20" fill="none"></circle>
      </svg>
    </div>
  </header>
  
  <div class="window-content">

    <input class="hide" type="checkbox" id="recoverWallet" />
    <section class="section">
      <h1 class="section--title">Wallet recovery</h1>
      <div class="form--group">
        <input class="form--input" type="text" placeholder="Seed" />
      </div>
      <div class="form--group">
        <input class="form--input" type="password" placeholder="Password" />
      </div>
      
      <button class="form--button">Recover</button>
    </section>
    
    <input class="hide" type="checkbox" id="newWallet" />
    <section class="section">
      <h1 class="section--title">Create a new wallet</h1>
      
      <p>Make sure you save the seed and the password in a secure place. If you lose them you'll be unable to recover your coins.</p>

      <div class="form--group">
        <strong>Seed</strong><span>two to the one for the one to the three</span>
      </div>
      <div class="form--group">
        <strong>Password</strong><input class="form--input" type="text" value="two to the one for the one to the three">
      </div>
      
      <button class="form--button">I've saved them in a safe place</button>
    </section>
    
    <input class="hide" type="checkbox" id="newHost" />
    <section class="section">
      <h1 class="section--title">Hosting</h1>
      <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Est sit temporibus tempore commodi natus minima, totam, consequuntur blanditiis quisquam, quia voluptate laboriosam nobis molestiae tempora eligendi voluptatum deserunt tenetur eveniet.</p>
    </section>

    <svg class="intro-logo" viewBox="0 0 172 173">
      <path d="M40.93 83.44l-.13.12c6.65-18 4.9-31.85-5.27-41.54C20.3 27.5 19.63 30.44 10.4 28.48l.06-.04C4.52 26.82.16 21.4.16 14.94c0-7.74 6.25-14 14-14 7.42 0 13.5 5.8 13.96 13.1h.03c.78 8.18 5 15.6 12.65 22.22 11.44 9.9 20.5 11.57 36.3 7.56 8.34-3.73 17.6-5.8 27.32-5.8 37.04 0 67.06 30.02 67.06 67.05v55.06c0 6.63-5.37 12-12 12h-55.06c-37.04 0-67.06-30.02-67.06-67.06 0-7.57 1.26-14.85 3.57-21.63zm66.1 61.66h28.42c6.62 0 12-5.37 12-12v-28.43c0-22.33-18.1-40.43-40.43-40.43S66.6 82.34 66.6 104.67 84.7 145.1 107 145.1z" fill="#FFF" />
    </svg>

    <div class="welcome-screen">
      <h2 class="greeting">Welcome! choose an option to get started.</h2>
      <ul class="options">
        <li class="option">
          <label for="recoverWallet"></label>
          <div class="option--icon">
            <svg viewBox="0 0 24 24">
              <path d="M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.44C8.04 20.3 9.94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9z"/>
            </svg>
          </div>
          <h4 class="option--title">Recover wallet with your seed and password.</h4>
        </li>
        <li class="option">
          <label for="newWallet"></label>
          <div class="option--icon">
            <svg viewBox="0 0 24 24">
              <path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-2.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5z"/>
            </svg>
          </div>
          <h4 class="option--title">Create a new Sia wallet.</h4>
        </li>
        <li class="option">
          <label for="newHost"></label>
          <div class="option--icon">
            <svg viewBox="0 0 24 24">
              <path d="M19.35 10.04C18.67 6.6 15.65 4 12 4 9.1 4 6.6 5.64 5.35 8.04 2.35 8.36 0 10.9 0 14c0 3.3 2.7 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.2 0-4-1.8-4-4s1.8-4 4-4h.7c.68-2.3 2.8-4 5.3-4 3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3s-1.34 3-3 3z"/>
            </svg>
          </div>
          <h4 class="option--title">Be a host on the Sia network.</h4>
        </li>
      </ul>
    </div>
  </div><!-- /window-content -->
</div>
            
          
!
            
              $siaGreen: rgb(0, 201, 158);
$appBg: #3D4C5F;

.hide {
  display: none;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/128337/sierra.jpg);
  background-size: cover;
  font-family: 'Helvetica Neue', 'Calibri Light', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  border: none;
  outline: none;
}

ul, li {
  margin: 0;
  padding: 0;
}

// -----------
//   Window
// -----------
.window {
  width: 48rem;
  height: 27rem;
  background: $appBg;
  position: relative;
  overflow: hidden;
  &__osx {
    border-radius: 4px;
    box-shadow: 0 0.8rem 3rem rgba(0, 0, 0, 0.5);
  }
}

.window--header {
  z-index: 1;
  height: 3.1rem;
  position: sticky;
  top: 0;
  left: 0;
  display: flex;
}

.controls {
  margin-left: 1rem;
  margin-top: .8rem;
  cursor: default;
  .icon {
    height: 80%;
    position: absolute;
    margin: auto;
    opacity: 0;
    top: 0; bottom: 0;
    left: 0; right: 0;
  }
  &:hover {
    .icon {
      opacity: .5;
    }
  }
  &--button {
    border-radius: 50%;
    width: .8rem;
    height: .8rem;
    margin-right: .2rem;
    position: relative;
    &__close {
      background: rgb(252, 99, 93);
    }
    &__min {
      background: rgb(253, 190, 65);
    }
    &__max {
      background: rgb(53, 203, 75);
    }
  }
}

.window-content {
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

.intro-logo {
  position: absolute;
  top: 0; bottom: 0;
  left: 0; right: 0;
  margin: auto;
  width: 4rem;
  transform: translateY(-3.2rem) scale(1.4);
  animation: intro--logo-translate .8s 2s both cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 9;
  path {
    fill: transparent;
    stroke: #fff;
    stroke-width: 1px;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation:
      intro--stroke-offset 1s both ease-in-out,
      intro--stroke-fill .4s .8s both ease;
  }
}

$logoEndY: -10.3rem;
@keyframes intro--stroke-offset { to { stroke-dashoffset: 0 } }
@keyframes intro--stroke-fill {
  to {
    fill: $siaGreen;
    stroke: $siaGreen;
  }
}
@keyframes intro--logo-translate { to { transform: translateY($logoEndY) scale(1) } }

.sync-title {
  color: rgba(255,255,255,.5);
  margin: .2rem;
  font-weight: 400;
  text-transform: uppercase;
  &:after {
    animation: sync-finish .2s 10s both ease;
    content: 'SYNCHRONIZING'
  }
}

.sync-indicator {
  margin-left: auto;
  margin-right: 1rem;
  margin-top: 1rem;
  display: flex;
}

.sync-progress {
  height: 1.2rem;
  transform: rotate(-90deg);
  margin-left: .2rem;
  animation: sync-shrink .4s 10.1s both cubic-bezier(0.77, 0, 0.175, 1);
  circle {
    stroke-width: 4px;
    stroke: $siaGreen;
    stroke-dasharray: 125;
    stroke-dashoffset: 120;
    animation: sync-progress 10s linear both;
  }
}

@keyframes sync-progress { to { stroke-dashoffset: 0 } }
@keyframes sync-finish { to { content: 'SYNCHRONIZED'; color: $siaGreen } }
@keyframes sync-shrink { to { transform: scale(.5) } }

// ------------------
//   Welcome Screen
// ------------------
.welcome-screen {
  margin: auto;
  bottom: 2.4rem;
  left: 0;
  right: 0;
  font-weight: 300;
  width: 80%;
  height: 18rem;
  position: absolute;
}

$greetingStart: 2.4s;
.greeting {
  margin: auto;
  text-align: center;
  font-weight: 300;
  color: #f0f0f0;
  transform: translateY(1rem);
  opacity: 0;
  animation: greeting--animate-in .4s $greetingStart both ease;
}

.options {
  display: flex;
  margin-top: .8rem;
}

.option {
  label {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
  }
  transform: translateY(1rem);
  opacity: 0;
  animation: greeting--animate-in .4s ($greetingStart + .2s) both ease;
  list-style: none;
  margin: .5rem;
  background: rgba(0,0,0,.2);
  flex: 1;
  height: 12rem;
  border-radius: 4px;
  transition: border .1s ease;
  border: 1px solid transparent;
  &:nth-child(1) {
    animation-delay: $greetingStart + .2s;
  }
  &:nth-child(2) {
    animation-delay: $greetingStart + .3s;
  }
  &:nth-child(3) {
    animation-delay: $greetingStart + .4s;
  }
  &--title {
    color: #ccc;
    font-weight: 400;
    font-size: .9rem;
    padding: 0 1rem;
    text-align: center;
    transition: color .1s ease;
  }
  &--icon {
    width: 5rem;
    margin: auto;
    margin-top: .8rem;
    svg {
      transition: fill .1s ease;
      fill: #ccc;
    }
  }
  
  &:hover {
    border-color: rgba(255,255,255,.2);
    .option--title{
      color: #fff;
    }
    .option--icon svg {
      fill: #fff;
    }
  }
}

@keyframes greeting--animate-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

// --------------
//    Sections
// --------------

input[type="checkbox"]:checked + .section {
  ~ .intro-logo {
    animation: logo--to-topbar .4s forwards ease-in-out;
  }
  animation: section--animate-in .4s both ease-in-out;
  pointer-events: all;
}

.section {
  opacity: 0;
  background: darken($appBg, 10);
  position: absolute;
  height: 100%;
  bottom: 0;
  z-index: 10;
  width: 100%;
  pointer-events: none;
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  p {
    width: 27rem;
    margin: 1rem auto;
    color: rgba(255,255,255,.5);
  }
}

.section--title {
  color: #fff;
  font-weight: 300;
  text-align: center;
}

@keyframes section--animate-in {
  from {
    transform: translateY(9rem);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes logo--to-topbar {
  from { transform: translateY($logoEndY) scale(1) }
  to { transform: translateY($logoEndY - 4.7rem) scale(.4) }
}

.form--input {
  background: transparent;
  color: #fff;
  border: none;
  border-bottom: 2px solid $siaGreen;
  padding: .5rem 0;
  width: 20rem;
  flex: 2;
  &:focus {
    outline: none;
    border-bottom-color: rgb(253, 190, 65);
  }
  &::placeholder {
    color: rgba(255,255,255,.4);
  }
}

.form--button {
  margin: 2rem auto;
  padding: .7rem 1rem;
  color: #fff;
  background: $siaGreen;
  border-radius: 3px;
}

.form--group {
  display: flex;
  margin: 1rem auto;
  width: 24rem;
  strong {
    flex: 0 0 5rem;
    margin: auto;
    margin-right: 2rem;
    color: $siaGreen;
  }
  span {
    flex: 2;
  }
}

            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console