Created
August 22, 2012 11:32
-
-
Save besedin-art/3424680 to your computer and use it in GitHub Desktop.
btn tabs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* btn tabs | |
*/ | |
.btn, | |
.btn_text { | |
display: inline-block; | |
border-radius: 3px; | |
position: relative; | |
} | |
.btn { | |
position: relative; | |
padding: 1px; | |
color: #fff; | |
text-decoration: none; | |
font-family: sans-serif; | |
font-size: 12px; | |
line-height: 2.6667; /*32px*/ | |
background: rgb(91,91,91); /* Old browsers */ | |
background: -moz-linear-gradient(top, rgba(91,91,91,1) 0%, rgba(36,36,36,1) 100%); /* FF3.6+ */ | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(91,91,91,1)), color-stop(100%,rgba(36,36,36,1))); /* Chrome,Safari4+ */ | |
background: -webkit-linear-gradient(top, rgba(91,91,91,1) 0%,rgba(36,36,36,1) 100%); /* Chrome10+,Safari5.1+ */ | |
background: -o-linear-gradient(top, rgba(91,91,91,1) 0%,rgba(36,36,36,1) 100%); /* Opera 11.10+ */ | |
background: -ms-linear-gradient(top, rgba(91,91,91,1) 0%,rgba(36,36,36,1) 100%); /* IE10+ */ | |
background: linear-gradient(to bottom, rgba(91,91,91,1) 0%,rgba(36,36,36,1) 100%); /* W3C */ | |
} | |
.ie ie_bg { | |
position: absolute; | |
top: 0; | |
right: 0; | |
bottom: 0; | |
left: 0; | |
} | |
.lt-ie9 .ie_btn_bg { | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5d5d5d', endColorstr='#393939',GradientType=0 ); | |
} | |
.btn_text { | |
padding: 0 9px; | |
box-shadow: 0 1px 2px -1px rgba(255, 255, 255, .75) inset; | |
background: rgb(93,93,93); | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(93,93,93,1)), color-stop(100%,rgba(57,57,57,1))); | |
background: -webkit-linear-gradient(top, rgba(93,93,93,1) 0%, rgba(57,57,57,1) 100%); | |
background: -moz-linear-gradient(top, rgba(93,93,93,1) 0%, rgba(57,57,57,1) 100%); | |
background: -ms-linear-gradient(top, rgba(93,93,93,1) 0%, rgba(57,57,57,1) 100%); | |
background: -o-linear-gradient(top, rgba(93,93,93,1) 0%, rgba(57,57,57,1) 100%); | |
background: linear-gradient(to bottom, rgba(93,93,93,1) 0%,rgba(57,57,57,1) 100%); | |
} | |
.lt-ie9 .ie_btn_text_bg { | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#5d5d5d', endColorstr='#393939',GradientType=0 ); | |
} | |
.btn:hover .btn_text { | |
background: rgb(86,86,86); /* Old browsers */ | |
background: -moz-linear-gradient(top, rgba(86,86,86,1) 0%, rgba(48,48,48,1) 100%); /* FF3.6+ */ | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(86,86,86,1)), color-stop(100%,rgba(48,48,48,1))); /* Chrome,Safari4+ */ | |
background: -webkit-linear-gradient(top, rgba(86,86,86,1) 0%,rgba(48,48,48,1) 100%); /* Chrome10+,Safari5.1+ */ | |
background: -o-linear-gradient(top, rgba(86,86,86,1) 0%,rgba(48,48,48,1) 100%); /* Opera 11.10+ */ | |
background: -ms-linear-gradient(top, rgba(86,86,86,1) 0%,rgba(48,48,48,1) 100%); /* IE10+ */ | |
background: linear-gradient(to bottom, rgba(86,86,86,1) 0%,rgba(48,48,48,1) 100%); /* W3C */ | |
} | |
.lt-ie9 .btn:hover .ie_btn_text_bg { | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#565656', endColorstr='#303030',GradientType=0 ); /* IE6-9 */} | |
.btn.active, | |
.btn:active { | |
background: #222222; | |
} | |
.btn.active .btn_text, | |
.btn:active .btn_text { | |
box-shadow: none; | |
background: #222222; | |
} | |
.ie_before { | |
position: absolute; | |
right: 1px; | |
left: 1px; | |
top: 1px; | |
display: block; | |
height: 2px; | |
z-index: -1; | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#80ffffff', endColorstr='#00ffffff',GradientType=0 ); | |
} | |
/* tabs */ | |
.tabs { | |
list-style: none; | |
padding: 0; | |
float: left; | |
overflow: hidden; | |
} | |
.tab_item { | |
float: left; | |
} | |
/* reducing border-radiuses */ | |
.tab_item .btn, | |
.tab_item .btn_text { | |
border-radius: 0; | |
} | |
.tab_item_first .btn, | |
.tab_item_first .btn_text { | |
border-radius: 3px 0 0 3px; | |
} | |
.tab_item_last .btn, | |
.tab_item_last .btn_text { | |
border-radius: 0 3px 3px 0; | |
} | |
.tab_item + .tab_item .btn { | |
padding-left: 0; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--[if lt IE 7]> | |
<div class="no-js ie lt-ie10 lt-ie9 lt-ie8 lt-ie7" lang="en"> | |
<![endif]--> | |
<!--[if IE 7]> | |
<div class="no-js ie lt-ie10 lt-ie9 lt-ie8 ie7" lang="en"> | |
<![endif]--> | |
<!--[if IE 8]> | |
<div class="no-js ie lt-ie10 lt-ie9 ie8" lang="en"> | |
<![endif]--> | |
<!--[if IE 9]> | |
<div class="no-js ie lt-ie10 ie8" lang="en"> | |
<![endif]--> | |
<!--[if gt IE 9]><!--> | |
<div class="no-js no-ie" lang="en"> | |
<!--<![endif]--> | |
<a class="btn" href="#"> | |
<span class="btn_text"> | |
Обычная | |
<span class="ie_btn_text_bg ie_bg"></span> | |
<span class="ie_before"></span> | |
</span> | |
<span class="ie_btn_bg ie_bg"></span> | |
</a> | |
<a class="btn active" href="#"> | |
<span class="btn_text"> | |
Активная | |
<span class="ie_btn_text_bg ie_bg"></span> | |
<span class="ie_before"></span> | |
</span> | |
<span class="ie_btn_bg ie_bg"></span> | |
</a> | |
<ul class="tabs"> | |
<li class="tab_item tab_item_first"> | |
<a class="btn" href="#"> | |
<span class="btn_text"> | |
Таб 1 | |
<span class="ie_btn_text_bg ie_bg"></span> | |
<span class="ie_before"></span> | |
</span> | |
<span class="ie_btn_bg ie_bg"></span> | |
</a> | |
</li> | |
<li class="tab_item"> | |
<a class="btn" href="#"> | |
<span class="btn_text"> | |
Таб 22 | |
<span class="ie_btn_text_bg ie_bg"></span> | |
<span class="ie_before"></span> | |
</span> | |
<span class="ie_btn_bg ie_bg"></span> | |
</a> | |
</li> | |
<li class="tab_item tab_item_last"> | |
<a class="btn" href="#"> | |
<span class="btn_text"> | |
Таб 333 | |
<span class="ie_btn_text_bg ie_bg"></span> | |
<span class="ie_before"></span> | |
</span> | |
<span class="ie_btn_bg ie_bg"></span> | |
</a> | |
</li> | |
</ul> | |
<!--[if IE]> | |
</div> | |
<!--<![endif]--> | |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment