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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

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="container">
<div class="modal">
  <div class="illustration">
    <svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" stroke-miterlimit="1.414" viewBox="0 0 1004 1001" clip-rule="evenodd" stroke-linejoin="round">
  <path fill="none" d="M0 0h1003.59v1000.16H0z"/>
  <path fill="#03c" d="M838.557 24.618c-15.22-15.22-35.86-23.77-57.383-23.77-21.523 0-42.164 8.55-57.383 23.77L95.72 652.696 349.85 906.83S813.08 443.6 977.93 278.753c15.218-15.22 23.768-35.86 23.768-57.383 0-21.523-8.55-42.164-23.768-57.383-41.64-41.638-97.73-97.73-139.37-139.37z"/>
  <clipPath id="a">
    <path d="M838.557 24.618c-15.22-15.22-35.86-23.77-57.383-23.77-21.523 0-42.164 8.55-57.383 23.77L95.72 652.696 349.85 906.83S813.08 443.6 977.93 278.753c15.218-15.22 23.768-35.86 23.768-57.383 0-21.523-8.55-42.164-23.768-57.383-41.64-41.638-97.73-97.73-139.37-139.37z"/>
  </clipPath>
  <g clip-path="url(#a)">
    <path fill="#006" d="M866.54 220.926l-673.92 673.92 84.71 84.712 673.92-673.92-84.71-84.712z"/>
    <path fill="#69f" d="M827.943-79.44L2.565 745.938l84.71 84.712L912.655 5.272 827.943-79.44z"/>
    <path fill="#f90" d="M1175.42 154.03L848.513-172.88 565.51 110.126l326.906 326.907L1175.42 154.03z"/>
    <clipPath id="b">
      <path d="M1175.42 154.03L848.513-172.88 565.51 110.126l326.906 326.907L1175.42 154.03z"/>
    </clipPath>
    <g clip-path="url(#b)">
      <path fill="#fb5" d="M777.437-170.61L408.46 185.126 606.81 390.86 975.788 35.127 777.438-170.61z"/>
    </g>
    <path fill="#aaa" d="M943.06 541.398L511.787 110.126l-59.73 59.73 431.274 431.27 59.73-59.728z"/>
    <path fill="#d5d5d5" d="M943.06 487.03L537.57 81.542l-42.524 42.525 405.49 405.488 42.524-42.525z"/>
    <path fill="#d5d5d5" d="M870.466 557.56L464.978 152.07l-42.525 42.526L827.94 600.084l42.526-42.525z"/>
  </g>
  <path fill="#ffeed5" d="M94.982 651.966l62.392-.434c13.64-.094 26.73 5.37 36.252 15.135 9.524 9.764 14.66 22.986 14.224 36.62l-1.222 38.234c-.446 13.96 4.948 27.47 14.883 37.29 9.94 9.816 23.52 15.04 37.47 14.42l36.99-1.64c13.56-.6 26.78 4.32 36.65 13.636 9.87 9.315 15.54 22.23 15.723 35.8.42 31.284.87 65.17.87 65.17L2.566 1000.16 94.98 651.968z"/>
  <clipPath id="c">
    <path d="M94.982 651.966l62.392-.434c13.64-.094 26.73 5.37 36.252 15.135 9.524 9.764 14.66 22.986 14.224 36.62l-1.222 38.234c-.446 13.96 4.948 27.47 14.883 37.29 9.94 9.816 23.52 15.04 37.47 14.42l36.99-1.64c13.56-.6 26.78 4.32 36.65 13.636 9.87 9.315 15.54 22.23 15.723 35.8.42 31.284.87 65.17.87 65.17L2.566 1000.16 94.98 651.968z"/>
  </clipPath>
  <g clip-path="url(#c)">
    <path fill="#ffcc80" d="M504.683 809.92l-157.04-157.04-397.02 397.02 157.04 157.04 397.02-397.02z"/>
    <circle cx="2.565" cy="1000.16" r="55.37" fill="gray"/>
  </g>
</svg>
    <div class="logo"><strong>@</strong>todo</div>
    <p class="intro"></p>
  </div>
  <div class="interaction">
    <menu class="tabs">
      <a href="" class="active">Sign Up</a>
      <a href="">Log In</a>
    </menu>
    <form action="">
      <div class="input-field">
      <input type="email" name="email" placeholder="giterdone@todo.com">
        <label for="email">Email address</label>
      </div>
      <div class="input-field">
    <input type="password" name="password" placeholder="************"/>
        <label for="password">Create password</label>
      </div>
      <div class="input-field">
      <input type="password" name="passwordconfirm" placeholder="************"/>
        <label for="passwordconfirm">Confirm your password</label>
        <p class="help">For maximum security, your password should be at least 12 characters long.</p><p class="help"><a target="_blank" href="https://xkcd.com/936/">Need an easy way to remember?</a></p>
      </div>
      <button type="submit">Sign me up!</button>
    </form>
  </div>
</div>
</div>
            
          
!
            
              @import "compass";
@import "modular-scale";

//variables
$ms-base: 17px;
$ms-ratio: 1.2;

$spacer-unit: ms(2);
$border-radius-base: ms(-5);
$border-radius-small: ms(-6);

$color-primary: #03c;
$color-accent: #f90;
$color-white: #fff;
$color-text: #333;
$color-gray-light: #aaa;
$color-dark: #006;
$color-light: #69f;

.container {
  color: $color-text;
  font-family: 'Poppins', sans-serif;
  font-size: ms(0);
  line-height: 1.44; // 24.48px ms(2)
  
  @include background-image(linear-gradient(130deg, $color-light, $color-primary, $color-dark));
  
  height: 100%;
  min-height: 100vh;
  padding-top: $spacer-unit * 2;
  padding-bottom: $spacer-unit * 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

strong {
  font-weight: 600;
}

a {
  color: $color-primary;
  &:hover, &:active, &:focus {
    color: $color-light;
  }
}

.modal {
  width: 80vw;
  display: flex;
  
  border-radius: $border-radius-small;
  background-color: $color-white;
  box-shadow: 0 20px 40px 0 rgba(43,43,43,.3), 0 14px 12px 0 rgba(43,43,43,.17);
  @media (max-width: 960px) {
    flex-direction: column;
  }
}

.illustration {
  flex-basis: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  border-top-left-radius: inherit;
  border-bottom-left-radius: inherit;
  @include background-image(linear-gradient(130deg, $color-primary, $color-light));
  
  svg {
    width: ms(14);
    transform: rotate(45deg);
  }
  @media (max-width: 960px) {
    border-bottom-left-radius: 0;
    border-top-right-radius: inherit;
  }
}

.logo {
  position: relative;
  top: -51px;
  color: $color-primary;
  font-size: ms(6);
}

.interaction {
  padding: $spacer-unit;
}

.tabs {
  font-size: ms(1);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .1em;
  
  display: flex;
  justify-content: space-around;
  padding-bottom: $spacer-unit;
  @media (max-width: 960px) {
    max-width: 80%;
    margin: 0 auto;
  }
  
  a {
    color: $color-text;
    text-decoration: none;
    transition: box-shadow .2s;
    
    flex: 1 1 50%;
    
    &:first-child {
      margin-right: $spacer-unit;
    }
    
    &.active {
      cursor: default;
      box-shadow: 0 5px 0 0 $color-accent;
    }
    
    &:hover:not(.active) {
      box-shadow: 0 5px 0 0 $color-primary
    }
  }
}

form {
  display: flex;
  flex-direction: column;
  @media (max-width: 960px) {
    margin: 0 auto;
    max-width: 80%;
  }
}

label {
  color: $color-gray-light;
  font-size: ms(-3);
  text-transform: uppercase;
  letter-spacing: .1em;
  transform: translateY(-55px);
  transition: color .3s;
}

.input-field {
  display: flex;
  flex-direction: column;
  margin-top: $spacer-unit;
}

input {
  height: ms(5);
  font-size: ms(0);
  background-color: transparent;
  border: none;
  border-bottom: 1px solid tint($color-text, 20%);
  outline: none;
  transition: all .3s;
  
  &:focus {
    border-bottom: 1px solid $color-primary;
    box-shadow: 0 1px 0 0 $color-primary;
    
    &+label {
      color: $color-primary;
    }
  }
}

.help {
  color: darken($color-gray-light, 20%);
  font-size: ms(-2);
  &:last-child {
    margin-bottom: $spacer-unit / 2;
  }
}

button {
  font-family: inherit;
  border: none;
  outline: none;
  
  background-color: $color-accent;
  @include background-image(linear-gradient(top, lighten($color-accent, 20%) 0%,lighten($color-accent, 20%) 47%,$color-accent 48%,$color-accent 100%));
  background-size: contain;
  background-repeat: no-repeat;
  font-size: ms(2);
  text-transform: uppercase;
  letter-spacing: .1em;
  
  cursor: pointer;
  
  align-self: center;
  margin-top: $spacer-unit;
  border-radius: $border-radius-base;
  padding: $spacer-unit / 2 $spacer-unit;
  &:active, &:focus {
    background-image: none;
  }
  
  &:hover {
    @include background-image(linear-gradient(top, lighten($color-accent, 10%) 0%,lighten($color-accent, 10%) 47%,$color-accent 48%,$color-accent 100%));
  }
}
            
          
!
999px
Loading ..................

Console