Skip to content

Instantly share code, notes, and snippets.

@onestepcreative
Created April 3, 2014 00:49
Show Gist options
  • Save onestepcreative/9946304 to your computer and use it in GitHub Desktop.
Save onestepcreative/9946304 to your computer and use it in GitHub Desktop.
#tabbed-content {
background: #F5F5F5;
height: auto;
margin: 100px auto;
min-height: 240px;
padding: 0;
position: relative;
width: 700px;
}
.tab-triggers {
clear: both;
height: 40px;
width: 700px;
}
.tab-trigger {
color: #FFF;
border-right: 1px solid #FFF;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
display: block;
float: left;
font: Bold 14px/40px Helvetica, Sans-Serif;
height: 40px;
margin: 0 0 1px 0;
padding: 0;
text-align: center;
width: 25%;
}
.tab-trigger:last-of-type {
border-right: none;
}
.tab-trigger.active {
/* border: 3px solid #F00; */
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
-o-box-sizing: border-box;
box-sizing: border-box;
}
.tab-panels {
clear: both;
height: auto;
min-height: 240px;
width: 700px;
}
.tab-panel {
background: transparent;
display: none;
height: auto;
margin: 0;
min-height: 240px;
padding: 0;
width: 700px;
}
.tab-panel.active {
display: block;
}
/* // FOR THE FADE VERSION OF PLUGIN // */
/*
.tab-panel.fade {
opacity: 0;
visibility: hidden;
-webkit-transition: opacity 0.35s linear;
-moz-transition: opacity 0.35s linear;
-o-transition: opacity 0.35s linear;
transition: opacity 0.35s linear;
}
.tab-panel.fade.active {
opacity: 1;
visibility: visible;
-webkit-transition: visibility 0s 0.35s, opacity 0.35s linear;
-moz-transition: visibility 0s 0.35s, opacity 0.35s linear;
-o-transition: visibility 0s 0.35s, opacity 0.35s linear;
transition: visibility 0s 0.35s, opacity 0.35s linear;
}
*/
.tab-panel.fade {
display: block;
height: auto;
margin: 0;
min-height: 240px;
padding: 0;
position: absolute;
width: 700px;
opacity: 0;
visibility: hidden;
-webkit-transition: opacity 0.35s linear;
-moz-transition: opacity 0.35s linear;
-o-transition: opacity 0.35s linear;
transition: opacity 0.35s linear;
}
.tab-panel.fade.active {
opacity: 1;
visibility: visible;
}
.tab-panel.fade.out {
-webkit-transition: visibility 0s 0.35s, opacity 0.35s linear;
-moz-transition: visibility 0s 0.35s, opacity 0.35s linear;
-o-transition: visibility 0s 0.35s, opacity 0.35s linear;
transition: visibility 0s 0.35s, opacity 0.35s linear;
}
/*
.tab-panels .loader {
background: url(http://cdn4.crystalcommerce.com/themes/clients/miniatureexchange/dev/assets/img/ui/loading.gif) center center no-repeat;
height: 200px;
position: absolute;
width: 100%;
}
*/
[data-index="1"] { background: #0066FF; }
[data-index="2"] { background: #FFBB00; }
[data-index="3"] { background: #33DD00; }
[data-index="4"] { background: #FF00DD; }
.tab-panel .logo,
.tab-panel ul {
margin: 0;
}
.tab-panel li {
list-style: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment