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

              
                .onboarding
  .scroll-onboarding
    // hi welcome 
    .page.one
      h1 Hi name!
      p We're going to take you through steps to best support you.
      img(src="https://i.imgur.com/AikYdYA.png")
    //  whats a checkin
    .page.two
      h2 Let's create a check-in!
      p A check-in means checking in every day about what matters to you - like sleep, feelings, and more.
    // customize checkin
    .page.three
      h2 What would you like to check in about?
      .categories
        button.mindful mindfuless
        button.sleep sleep
        button.food food
        button.fitness fitness
        button.med medication
    // who'll support your plan?
    .page.four
      h2 Great! Who'll support you through this?
      label(for="tag-typer")
        #tags
          input(id="tag-typer" type="text" placeholder="Add email")
      p Don't worry if you can't think of anyone - you can always add them later.    
    // turn on notifs
    .page.five
      h2 Turn on notifications to get reminders
      img(src="https://i.imgur.com/nXZEC2u.png")
      button.enable enable
      button.no not now
    // ready to explore your space?
    .page.six
      h2 This is your space. Ready to explore it?
      img(src="https://i.imgur.com/MEvZDzn.png")
    button.cont-onboarding 
     span.jam.jam-arrow-right
              
            
!

CSS

              
                @mixin absolute {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

* {
  box-sizing: border-box;
}
$light: #eff0da;
$lighter-pink: #f4deda;
$light-pink: #f1d0ca;
$pink: #e38882;
$red: #d55c5a;
$green: #9fc6c1;
$dark-green: #899c7d;
$blue: #91ceec;
$dark: #8a8184;
$black: #635358;
$feed-padding: 20px;

.onboarding {
  @include absolute;
  background: $pink;
  display: flex;
  justify-content: center;
  align-items: center;
  h1, h2 {
    color: $red;
  }
  h1 {
    font-size: 300%;
  }
  h2 {
    font-size: 200%;
  }
  color: $black;
}

.scroll-onboarding {
  background: $light-pink;
  width: 100%;
  height: 100%;
  margin: $feed-padding;
  max-width: 700px;
  max-height: 850px;
  box-shadow: 0 10px 50px -15px rgba($black, 0.8);
  display: flex;
  overflow-x: scroll;
  overflow-y: hidden;
  position: relative;
}

.page {
  width: 100%;
  height: 100%;
  flex: none; 
  padding: $feed-padding*2 $feed-padding*4 $feed-padding*6 $feed-padding*4;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-evenly;
  img {
    align-self: center;
  }
  .categories {
    display: flex;
    flex-direction: column;
    height: 100%;
    button {
      flex: auto;
      margin: $feed-padding/2;
      color: $light;
      border-radius: 10px;
      &.mindful {
        background: #B7A69E;
      }
      &.sleep {
        background: #565E57;
      }
      &.food {
        background: #754067;
      }
      &.fitness {
        background: #D66A63;
      }
      &.med {
        background: #E8CC84;
      }
    }
  }
  
  #tags {
    border-radius: 10px;
    box-shadow: 1px 1px 4px #CCC inset;
    padding: $feed-padding;
    background: #fafafa;
    margin: auto;
  }
    #tag-typer{
    outline: none;
    border: none;
    padding: 6px;
    margin: 3px;
    margin-right: -25px;
    width: 100px;
    background-color: transparent;
    font-size: 20px;
    color: #333;
  }
  
  &.five {
    .enable {
      
    }
    .no {
      
    }
  }

}

.cont-onboarding {
  position: absolute;
  bottom: $feed-padding;
  left: 0;
  right: 0;
  margin: auto;
  background: $dark;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  span {
    font-size: 2rem;
    color: white;
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console