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

              
                <div ng-cloak="" class="LoginForm" ng-app="MyApp" flex>
   <div class="wrapper">
      <h1>LOGO</h1>
      <h2>A cool headline</h2>
      <md-content flex>
         <div id='loginDialog'>
            <md-tabs class='loginTabs' md-dynamic-height md-no-ink md-stretch-tabs="always">
               <md-tabs-wrapper  class="tb-wrp md-stretch-tabs">
                  <md-tab class="lbl-tabs"  label="Login">
                     <md-content class="tab-content md-padding" flex>
                        <md-input-container class="md-block">
                           <md-icon md-svg-src="img/icons/ic_email_24px.svg" class="email"></md-icon>
                           <input ng-model="user.email" type="email" placeholder="Email" ng-required="true">
                        </md-input-container>
                        <md-input-container class="md-block">
                           <md-icon class="password">lock</md-icon>
                           <input ng-model="user.password" type="password" placeholder="Password" ng-required="true">
                        </md-input-container>
                        <div layout="row" id="labels">
                           <label class="logLink" for="reset">Forgot Password? <span>Reset</span></label>
                           <span flex></span>
                           <div>
                              <md-button class="md-raised md-primary" type="submit">Login</md-button>
                           </div>
                        </div>

                        <div class="social" flex> <span>or login with social media</span></div>
                        <div class="buttons">
                           <md-button class="google"><i class="fa fa-google-plus-square"></i></md-button>
                           <md-button class="facebook"><i class="fa fa-facebook-official"></i></md-button>
                           <md-button class="twitter"><i class="fa fa-twitter-square"></i></md-button>
                           <md-button class="linkedin"><i class="fa fa-linkedin-square"></i></md-button>
                        </div>
                     </md-content>
                  </md-tab>


                  <md-tab label="Sign up">
                     <md-content class="md-padding">
                        <md-input-container class="md-block">
                           <md-icon md-svg-src="img/icons/ic_email_24px.svg" class="email"></md-icon>
                           <input ng-model="user.email" type="email" placeholder="Email" ng-required="true">
                        </md-input-container>
                        <md-input-container class="md-block">
                           <md-icon class="password">lock</md-icon>
                           <input ng-model="user.password" type="password" placeholder="Password" ng-required="true">
                        </md-input-container>
                        <md-input-container class="md-block">
                           <md-icon md-svg-src="img/icons/ic_lock_24px.svg" class="password"></md-icon>
                           <input ng-model="user.repeat" type="password" placeholder="Repeat Password" ng-required="true">
                        </md-input-container>
                        <span class="passwordMatchMessage" ng-if="user.password==user.repeat && user.repeat">Passwords match!<br>
                     </span>
                        <md-input-container class="md-block">
                           <div layout="row">
                              <md-checkbox name="tos" ng-model="project.tos" required>
                              </md-checkbox>
                              <div class="logLink md-padding">I have read and agree to the <span href="#">Terms of Use</span> and <span href="#">Privacy Policy</span>.</div>
                           </div>
                           <div ng-messages="projectForm.tos.$error" multiple md-auto-hide="false">
                              <div ng-message="required">
                                 You must accept the terms and conditions before you can proceed.
                              </div>
                           </div>
                        </md-input-container>
                        <div layout="row" flex>
                           <span flex></span>
                           <md-button class="md-raised md-primary" type="submit">Submit</md-button>
                        </div>
                     </md-content>
                  </md-tab>
               </md-tabs-wrapper>
            </md-tabs>
         </div>
      </md-content>
   </div>
</div>
              
            
!

CSS

              
                body {
   background-image: url("http://subtlepatterns2015.subtlepatterns.netdna-cdn.com/patterns/escheresque_ste.png");
   /* Background pattern from subtlepatterns.com */
   background-color: #111;
   color: #fff;
   padding: 4%;
}

.LoginForm md-content {
   background-color: transparent !important;
   padding: 5% 10%;
}

.LoginForm md-content md-tabs {}

.LoginForm md-content md-tabs md-tabs-wrapper {
   background: #fff;
}

.LoginForm md-content h1:first-child {
   margin-top: 0;
}

md-tabs md-ink-bar {
   background: #c47135;
   
}



#loginDialog {
   background-color: #fff;
   font-family: 'Roboto', sans-serif;
   font-size: 1.0em;
   opacity: 0.8;
   text-transform: none;
}

.inputdemoErrors .inputErrorsApp {
   min-height: 48px;
}

.inputdemoErrors md-input-container > p {
   font-size: 0.8em;
   text-align: left;
   width: 100%;
}

.logLink {
   color: #333;
   cursor: default;
   font-weight: 600;
   overflow: hidden;
   span {
      cursor: pointer;
      color: #c47135;
   }
}

.social {
   
   margin-top:10%;
  overflow: hidden;
   position: relative;
   text-align: center; 
   width: 100%;
   span {
      display: inline-block;
      padding: 0 20px;
      vertical-align: baseline;
      &:before,
      &:after {
         border-top: 1px solid #ccc;
         content: '';
         display: block;
         position: absolute;
         top: 0.9em;
         width: 500px;
      }
      &:before {
         right: 75%;
      }
      &:after {
         left: 75%;
      }
   }
}

.buttons {
   width: 100%;
   margin: 20px 0 0;
   button {
      float: left;
      margin: 0px 1.5%;
      width: 1%;
      i {
         padding-right: 7px;
      }
      &.facebook {
         color: #4464B2;
      }
      &.twitter {
         color: #28A9E0;
      }
      &.google {
         color: #DA4735;
      }
   } // button
   &:after {
      content: "";
      display: block;
      clear: both;
   }
} // .buttons
              
            
!

JS

              
                angular.module('MyApp',['ngMaterial', 'ngMessages', 'material.svgAssetsCache']);


/**
Copyright 2016 Google Inc. All Rights Reserved. 
Use of this source code is governed by an MIT-style license that can be foundin the LICENSE file at https://material.angularjs.org/HEAD/license.
**/
              
            
!
999px

Console