Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <section class="main">
  <div class="main-card">
    <div class="card-top">
      <h3>Add your teammates</h3>
      <p>People you add will recive an invite <br> automatically</p>
      <div class="drop-down">
        <div class="option">Select Project</div>
        <i class="fa fa-chevron-down" aria-hidden="true"></i>
      </div>
    </div>
    <div class="card-bottom">
      <h3>Connect from</h3>
      <div class="sign-as">
        <div class="social">
          <div class="logo">
            <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/53/Google_%22G%22_Logo.svg/300px-Google_%22G%22_Logo.svg.png">
          </div>
          <span>Google</span>
        </div>
        <div class="social">
          <div class="logo">
            <img src="https://cdn.mos.cms.futurecdn.net/SDDw7CnuoUGax6x9mTo7dd.jpg">
          </div>
          <span>Slack</span>
        </div>
        <div class="social">
          <div class="logo">
            <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQZLoNujaqRPu7XFemvBYsB68MD_XPTrK3xqqNYuol8qH9jNmrRu6fe22tKsjGyUI_OApI&usqp=CAU">
          </div>
          <span>Microsoft</span>
        </div>
      </div>
      <h4>Or</h4>
      <input type="" class="email" name="" placeholder="Enter email address">
      <div class="btn-grp">
        <button>Cancel</button>
        <button>Add teammates</button>
      </div>
    </div>
  </div>
</section>
              
            
!

CSS

              
                :root
{
	--comman-radious :3px;
	--comman-padding: 25px 40px;
}	

*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Rubik', sans-serif;
}
.main{
	min-height: 100vh;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #dbdbe6;
}
.main-card
{
	max-width:400px;
	width: 100%;
	border-radius: 20px;
	background-color: #fff;
	/*padding: 50px;*/
}
.card-top
{
	display: flex;
	min-height: 100px;
	justify-content: space-between;
	flex-direction: column;
	padding: var(--comman-padding);
}
.card-bottom
{
	min-height:320px;
	background-color: #f6f6fb;
	display: flex;
	flex-direction: column;
	padding: var(--comman-padding);
	border-radius: 0 0 20px 20px;
}
.card-top h3,p
{
 padding-top: 15px;
}
.card-top h3
{
 font-size:1.3rem;
}
.card-top p{
	font-size:0.7rem;
}
.drop-down
{
	margin-top:15px;
	width:100%;
	padding: 16px;
	border: 1px solid #eee;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-radius: var(--comman-radious);
}
.drop-down .option
{
	font-size: 0.8rem;
}

.card-bottom h3,.sign-as,h4,input,.btn-grp
{
 margin-top: 15px;
}
.card-bottom h3
{
	font-size: 0.9rem;
}
.card-bottom h4
{
	font-size: 0.7rem;
}
.sign-as
{
	display: flex;
	justify-content: space-between;
	align-items: center;

}
.social
{
	/*width:33%;*/
	display: flex;
	justify-content: space-around;
	align-items: center;
	border: 1px solid #eee;
	background-color: #fff;
	padding: 10px 15px;
	border-radius: var(--comman-radious);
	width:104px;
	cursor: pointer;
	transition: 0.3s;

}
.social:hover
{
	transform: scale(1.1);
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}
.social .logo img
{
 width: 20px;
 height: 20px;
 object-fit: cover;
}
.social span{
	font-size: 0.7rem;
	padding-left: 5px;
}
.card-bottom input
{
	padding: 16px 0;
	border-radius: var(--comman-radious);
	border: none;
	border: 1px solid #DEDEE6;
	text-indent: 13px;
	font-size: 0.75rem;
}
.card-bottom .btn-grp
{
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}
.card-bottom .btn-grp button{
	width: 100%;
	padding:17px 20px;
	cursor: pointer;
	font-size: 0.7rem;
	border-radius: var(--comman-radious);
	transition: 0.5s;
}
.card-bottom .btn-grp button:nth-child(1):hover
{
	border: 1px solid #aaa;
}
.card-bottom .btn-grp button:nth-child(2):hover
{
	transform: scale(1.1);
	box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.card-bottom .btn-grp button:nth-child(1)
{
	background-color: transparent;
	border: none;
}
.card-bottom .btn-grp button:nth-child(2)
{
	background-color: #12143B;
	border: none;
	color: #fff;
}
              
            
!

JS

              
                
              
            
!
999px

Console