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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <article class="article">
	<div class="grid__item--1of1 text-center">
		<h2>Salesforce Integration</h2>
		<div class="tabs">
			 <input type="radio" name="tabs" id="tab1" checked >
			 <label for="tab1">
				  <i class="icon email-cal"></i><span>Email/Calendar Sync</span>
			 </label>
			 <input type="radio" name="tabs" id="tab2">
			 <label for="tab2">
				  <i class="icon snapshot"></i><span>Customer Snapshots</span>
			 </label>
			 <input type="radio" name="tabs" id="tab3">
			 <label for="tab3">
				  <i class="icon inbox-apps"></i><span>Salesforce Inbox Apps</span>
			 </label>
			 <input type="radio" name="tabs" id="tab4">
			 <label for="tab4">
				  <i class="icon log-calls"></i><span>Log Calls to Salesforce</span>
			 </label>
			 <div id="tab__content--1" class="tab__content">
				 <p>Cirrus Insight automatically syncs your emails and calendar events from Google Calendar, Gmail, Office 365 and Outlook to Salesforce. Now you no longer need to worry about saving emails or events to Salesforce again.</p>
				 <img src="https://placehold.it/800x600" alt="" />
			 </div>
			 <div id="tab__content--2" class="tab__content">
				  <p>Instantly know who you’re talking with and the status of your customer relationship. As you open an email you'll see a snapshot of the sender's records in Salesforce with a summary of Opportunities and Cases, activities, contact info and much more.</p>
				  <img src="https://placehold.it/800x600" alt="" />
			 </div>
			 <div id="tab__content--3" class="tab__content">
				  <p>Cirrus Insight enables Salesforce application developers to bring their CRM applications into Outlook and Gmail. Now you can access the best Salesforce AppExchange apps right from your inbox.</p>
				  <img src="https://placehold.it/800x600" alt="" />
			 </div>
			 <div id="tab__content--4" class="tab__content">
				  <p>Under the Activities tab in the side panel, you click Log Call. Enter your information and the call will be logged to Salesforce.</p>
				  <img src="https://placehold.it/800x600" alt="" />
			 </div>
		</div>
	</div>
</article>
              
            
!

CSS

              
                .tabs {
    list-style: none;
	 display: flex;
	 flex-flow: row wrap;
	 justify-content: flex-start;
}
.tabs:after {
    content: '';
    display: table;
    clear: both;
}
.tabs input[type=radio] {
    display:none;
}
.tabs label {
    display: inline-block;
    min-width: 25%;
	 flex: 1 1 25%;
    color: #ccc;
    text-align: center;
    cursor: pointer;
    -webkit-transition: all 0.5s; /* Safari 3.1 to 6.0 */
    transition: all 0.5s;
}

.tabs label span {
    display: none;
	 font-size: 1rem;
}

.tabs label:hover {
    color: #3498db;
	
	.icon {
      border-color: #3498db;
		background-position: 50px 0;
		background-size: 100px 50px;
	}
}

.tab__content {
    display: none;
	 text-align: center;
    width: 80%;
	 margin: 0 auto;
    box-sizing: border-box;
    background-color:#ffffff;
	 margin-top: 2rem;
}

.tab__content * {
    -webkit-animation: scale 0.2s ease-in-out;
    -moz-animation: scale 0.2s ease-in-out;
    animation: scale 0.2s ease-in-out;
}
@keyframes scale {
  0% {
    transform: scale(0.9);
    opacity: 0;
    }
  50% {
    transform: scale(1.01);
    opacity: 0.5;
    }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.tabs [id^="tab"]:checked + label {
    background: #FFF;
    color: #3498db;
}

.tabs [id^="tab"]:checked + label i {
    border-color: #3498db;
	 background-position: 50px 0;
	 background-size: 100px 50px;
}

// #tab1:checked ~ #tab__content--1,
// #tab2:checked ~ #tab__content--2,
// #tab3:checked ~ #tab__content--3,
// #tab4:checked ~ #tab__content--4{
//     display: block;
// }

@media (min-width: 768px) {
    .tabs label span {
        display: block;
    }
}

.icon {
	margin-top: 1rem;
	display: inline-block;
	width: 54px;
	height: 54px;
	border-radius: 100%;
	border: 2px solid #CACFD6;
	background-size: 100px 50px;
	box-sizing: border-box;
}

.email-cal {
	background: white url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/45910/icon_--_sync.png');
	background-position: 0 0;
	background-size: 100px 50px;
}

.snapshot {
	background: white url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/45910/icon_--_snapshots.png');
	background-size: 100px 50px;
	background-position: 0 0;
}

.inbox-apps {
	background: white url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/45910/icon_--_templates.png');
	background-size: 100px 50px;
	background-position: 0 0;
}

.log-calls {
	background: white url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/45910/icon_--_log_call.png');
	background-size: 100px 50px;
	background-position: 0 0;
}

.tracking {
	background: white url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/45910/icon_--_tracking.png');
	background-size: 100px 50px;
	background-position: 0 0;
}

.book-meetigns {
	background: white url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/45910/icon_--_book_meeting.png');
	background-size: 100px 50px;
	background-position: 0 0;
}

.send-later {
	background: white url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/45910/icon_--_send_later.png');
	background-size: 100px 50px;
	background-position: 0 0;
}

.follow-up {
	background: white url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/45910/icon_--_follow_up.png');
	background-size: 100px 50px;
	background-position: 0 0;
}

              
            
!

JS

              
                
              
            
!
999px

Console