Skip to content

Instantly share code, notes, and snippets.

@Pavan-Kumar122
Created July 14, 2020 09:37
Show Gist options
  • Save Pavan-Kumar122/d7348573490fdf03abb8fc569df9d3f9 to your computer and use it in GitHub Desktop.
Save Pavan-Kumar122/d7348573490fdf03abb8fc569df9d3f9 to your computer and use it in GitHub Desktop.
Tabbed Content Section
<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>
.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;
}
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.2/css/font-awesome.min.css" rel="stylesheet" />
<link href="https://s3-us-west-2.amazonaws.com/s.cdpn.io/49833/main.css" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment