123

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.

            
              - menu = []

- menu << {title: 'BREAKFAST', time: '08:00', elements: [{title: "PROTEIN", items: [['Meat\Fish\Cheese\Yogurt', '150 gr']] }, {title: "FATS", items: [['Cheese or Nuts ', '40-30 gr'],  ['Red fish or Avocado', '70-50 gr'],  ['Butter\Olive oil\Peanut butter ', '1-1.5 tbs']] }, {title: "CARBS", items: [['Buckwheat\Rice\Oatmeal\Pasta', '40 gr']] }]}

- menu << {title: 'SNACK 1', time: '11:00', elements: [{title: "PROTEIN", items: [['Meat\Fish\Cheese\Yogurt', '150 gr']] }, {title: "CARBOHYDRATES", items: [['Fruit', '100 gr']] }]}

- menu << {title: 'Lunch', time: '14:00', elements: [{title: "PROTEIN", items: [['Meat\Fish\Cheese\Yogurt', '150 gr']] }, {title: "FATS", items: [['Cheese or Nuts ', '40-30 gr'],  ['Red fish or Avocado', '70-50 gr'],  ['Butter\Olive oil\Peanut butter ', '1-1.5 tbs']] }, {title: "CARBS", items: [['Buckwheat\Rice\Oatmeal\Pasta', '30 gr']] }]}

- menu << {title: 'SNACK 2', time: '17:00', elements: [{title: "PROTEIN", items: [['Meat\Fish\Cheese\Yogurt', '150 gr']] }, {title: "CARBS", items: [['Fruit', '100 gr']] }]}

- menu << {title: 'Dinner', time: '20:00', elements: [{title: "PROTEIN", items: [['Meat\Fish\Cheese\Yogurt', '100 gr']] }]}

%h1 
  Meal Plan
  
.container
  - menu.each do |item|
    .col
      .carrot
      %time
        = item[:time]
      %h2
        = item[:title]
      
      - item[:elements].each do |element|
        %dl
          %dt= element[:title]
          -element[:items].each do |item|
            %dd
              %span
                =item[0]
              %span
                =item[1]
            
          
!
            
              $color-1: #4B3C3D
$color-2: #317E6C
$color-3: #FCF95C
$color-4: #FCF95C
$color-5: #f5612e
$tranition:  all 0.6s ease-in

body
  background-color: #C6D03B
  font-family: 'Overpass Mono', monospace
 
.container
  display: flex
  flex-direction: column
  justify-content: center
 
  .col
    margin: 0 auto 50px
    background-color: $color-4
    padding: 10px 40px 50px
    width: 360px
    position: relative
    &:hover
      time
        left: -140px
    time
      position: absolute
      font-size: 24px
      color: $color-5
      text-shadow: 0px 0px 2px #fcf95b80
      left: -120px
      top: 30px
      z-index: -1
      transition: $tranition
      &:before
        content: '' 
        position: absolute
        border-bottom: 4px dotted $color-5
        width: 100px
        top: 16px
        left: 110%
        
h1
  margin-top: 40px
  text-align: center
  color: $color-2
  font-size: 50px
  
h2
  color: $color-2
  text-transform: uppercase

dl
  margin: 0
  cursor: pointer
  &:hover
    dt
      color: $color-5
    dd
      color: $color-5
      &:before
        opacity: 0.2
      span
        color: $color-5
  
  + dl
    margin-top: 40px
  
dt
  color: $color-1
  margin-bottom: 10px
  transition: $tranition
 
dd 
  font-family: 'Raleway', sans-serif
  position: relative
  margin: 0 0 10px 20px
  color: $color-1
  transition: $tranition
  
  span
    display: inline-block
    position: relative
    z-index: 1
    background-color: $color-4
    transition: $tranition
  
    &:nth-child(1)
      padding: 0 8px 0 0
  
    &:nth-child(2)
      float: right
      padding: 0 0 0 8px
    
  &:before
    content: ''
    position: absolute
    right: 0
    bottom: 4px
    width: 100%
    height: 0px
    border-bottom: 2px dotted $color-2
    z-index: 0
    transition: $tranition
  
.carrot
  position: absolute
  top: -37px
  right: -3px
  width: 34px
  height: 100px
  background-size: contain
  transform: rotate(-30deg)
  background-image:         url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNzguMDUgNTI3LjE4Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2Y1NjIyZDt9LmNscy0ye2ZpbGw6Izc0YTIwODt9LmNscy0ze2ZpbGw6IzA2NzUyYzt9LmNscy00e2ZpbGw6I2ZmOTMxZTt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmNhcnJvdC1zaW5nbGU8L3RpdGxlPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJjYXJyb3Rfc2VhbWxlc3MiIGRhdGEtbmFtZT0iY2Fycm90IHNlYW1sZXNzIj48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik05NC4yNiwyMTkuNDZjLTIzLDAtNDEuNjMtMTcuNi00MS42Myw1NS44MnMxOC42NCwyNTEuOSw0MS42MywyNTEuOSw0MS42My0xNzguNDgsNDEuNjMtMjUxLjlTMTE3LjI1LDIxOS40Niw5NC4yNiwyMTkuNDZaTTY3LjY0LDI0My44MmM3LjkxLDUuODcsMTYuOTQsNy42NSwyNi4zOSw0Ljc2LDguMDgtMi40NywxMS41LDEwLjE1LDMuNDgsMTIuNkE0MSw0MSwwLDAsMSw2MSwyNTUuMTFDNTQuMzUsMjUwLjE1LDYwLjg3LDIzOC44MSw2Ny42NCwyNDMuODJabTIuMTUsOTIuNjJhNTEuMDgsNTEuMDgsMCwwLDAsMjkuMzcsMy4zYzguM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k2LjkxLDQ0NVoiLz48L2c+PC9nPjwvc3ZnPg==)
  
  

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

Console