css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              header.width-full
  div.title-container
    h1.title Conundrum
    div.tagline The Game of Hard Choices
  nav.nav-menu
    a.pure-button.nav-menu-item(href="#") 
      i.fa.fa-rocket
      | Register
    a.pure-button.nav-menu-item(href="#")
      i.fa.fa-gamepad
      | Play
    a.pure-button.nav-menu-item(href="#") 
      i.fa.fa-bolt
      | Subscribe
aside.details.pure-g.width-full
  div.pure-u-1.pure-u-sm-1-3.details-pane-item.details-pane-username
    span.details-pane-badge
      i.big-icon.fa.fa-user
      div
        a.text-link(href="#") Ryan Park
        span.user-tag The Big Cheese
    button.pure-button.tag.report
      i.fa.fa-flag
      |  Report
    button.pure-button.tag.visit
      i.fa.fa-share
      |  Visit Profile
  div.pure-u-1.pure-u-sm-1-3.details-pane-item.details-pane-votes
    span.details-pane-yes 42
    span.details-pane-no 21
  div.pure-u-1.pure-u-sm-1-3.details-pane-item.details-pane-share
    input(readonly value='https://www.conundrum.lol/conundrum/RuddyKookyZebra')
    i.fa.fa-facebook-official
    i.fa.fa-twitter-square
    i.fa.fa-share-alt-square
main.conundrum-panel.width-full
  div.equal-height-wrapper.width-full
    .but 
      span BUT
    section.conundrum.card
      h3 This is an example of a potential conundrum! This is an example of a potential conundrum! This is an example of a potential conundrum!
    section.setback.card
      h3 This is an example of a potential setback!
aside.vote-button-pane.width-full
  button.pure-button.vote-button.vote-no Nope
  button.pure-button.vote-button.skip Skip
  button.pure-button.vote-button.vote-yes Sure


            
          
!
            
              * {
  box-sizing: border-box;
}

.width-full {
  width: 100%;
}

body, html {
  height: 100%;
  overflow: hidden;
}

body {
  padding: 20px;
  background-color: #F7F7F7;
  color: #393E41;
  
  display: flex;
  flex-direction: column;
  
  font-family: 'Montserrat', sans-serif;
}

// Header Style
header {
  display: flex;
}

// Title Style
.title-container {
  overflow: hidden;
  display: inline-block;
  margin-right: 80px;
}

.title {
  margin: 0;
  display: inline;  
  text-transform: uppercase;
  border-bottom: 1px solid black;
}

.tagline {
  margin-top: 5px;
  font-weight: 300;
  text-transform: uppercase;
  font-size: 14.45px;
  text-align: center;
}

// Navigation Style
.nav-menu {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  flex-grow: 3;
}

.nav-menu-item {
  background-color: #eee;
  padding: 20px;
  max-width: 200px;
  
  
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  color: #222;
  
  flex: 1 1 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  
  position: relative;
  
  &:not(:last-child) {
    margin-right: 20px;
  }
  
  i {
    margin-right: 5px;
    font-size: 18pt;
  }
}

// Details styling
.details {
  margin-top: 10px;
  padding: 10px;
  border-radius: 3px;
  border: 1px solid #eee;
}

.details-pane-item {
  padding: 5px;
  
  &:not(:last-child) {
    border-right: 1px solid #eee;
  }
}

// Username pane
.details-pane-username {
  position: relative;
  
  .user-tag {
    display: block;
    font-size: 9pt;
    margin-top: 5px;
  }
  
  .details-pane-badge {
    max-width: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    
    display: flex;
    align-items: center;
  }
  
  .big-icon {
    font-size: 36pt;
    margin-right: 10px;
    color: #555;
  }
  
  .text-link {
    text-decoration: none;
    font-weight: 700;
    display: inline;
    color: #3C90B4;
    
    display: inline-block;
    margin-top: -20px;
  }
  
  .tag {
    color: white;
    font-weight: 700;
    font-size: 9pt;
    text-transform: uppercase;
    
    float: right;
    clear: right;
    
    &:not(:last-child) {
      margin-bottom: 5px;
    }
  }
  
  .report {
    background-color: #C93D3F;
  }
  
  .visit {
    background-color: #FEB95F;
  }
}

// Votes pane
.details-pane-votes {
  font-size: 36pt;
  font-weight: 700;
  text-align: center;
  
  span {
    padding: 0 20px;
  }
  
  .details-pane-yes {
    color: #3C90B4;
    border-right: 1px solid #eee;
  }
  
  .details-pane-no {
    color: #C93D3F;
  }
}

// Share pane
.details-pane-share {
  input {
    width: 100%;
    border: 1px solid #eee;
    padding: 5px;
    
    color: #aaa;
    font-size: 12px;
  }
  
  i {
    float: right;
    margin-top: 10px;
    
    &:not(last-child) {
      margin-right: 5px;
    }
  }
}

// Conundrum panel
.conundrum-panel {
  display: flex;
  position: relative;
  
  flex-grow: 100;
  margin: 10px 0;
}

.equal-height-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: center;
}

.card {
  border-radius: 3px;
  border: 1px solid #eee;
  
  width: 100%;
  padding: 20px;
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  
  text-align: center;
  color: #aaa;
  
  &:last-child {
    margin-left: 80px;
  }
}

.conundrum.card {
  animation: slideFromLeft 0.8s ease-in-out;
}

.setback.card {
  animation: slideFromRight 0.8s ease-in-out;
}

// But
.but {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -50px;
  margin-top: -50px;
  z-index: 100;
  
  width: 100px;
  height: 100px;
  border-radius: 50%;
  
  background-color: #393E41;
  
  line-height: 100px;
  text-align: center;
  color: white;
  font-size: 20pt;
  font-weight: 700;
  
  // Animations
  animation: spinIn 0.8s ease-in-out;
  
  span {
    border-top: 4px white solid;
    border-bottom: 4px white solid;
  }
}

// But keyframes
@keyframes spinIn {
  from {
    transform: rotate(0) scale(0);
  }
  to {
    transform: rotate(720deg) scale(1);
  }
}

// Card keyframes
@keyframes slideFromLeft{
  from {
    transform: translateX(-50%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideFromRight{
  from {
    transform: translateX(50%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

// Voting buttons
.vote-button-pane {
  height: 200px;
  align-self: flex-end;
  
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.vote-button {
  height: 120px;
  width: 120px;
  border-radius: 50%;
  border: none;
  
  font-size: 24pt;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  padding: 0;
}

.vote-no {
  background-color: #C93D3F;
}

.vote-yes {
  background-color: #3C90B4;
}

            
          
!
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