tt-rss/lib/dijit/themes/claro/layout/TabContainer.css

435 lines
14 KiB
CSS
Raw Normal View History

2011-11-08 17:40:44 +01:00
/* TabContainer
*
* Styling TabContainer means styling the TabList and Its content container (dijitTitlePane)
*
* Tab List: (including 4 kinds of tab location)
* .dijitTabContainerTop-tabs - tablist container at top
* .dijitTabContainerBottom-tabs - tablist container at bottom
* .dijitTabContainerLeft-tabs - tablist container at left
* .dijitTabContainerRight-tabs - tablist container at right
*
* Tab Strip Button:
* .dijitTabStripIcon - tab strip button icon
* .dijitTabStripMenuIcon - down arrow icon position
* .dijitTabStripSlideLeftIcon - left arrow icon position
* .dijitTabStripSlideRightIcon - right arrow icon position
*
* .tabStripButtonDisabled - styles for disabled tab strip buttons
*
* Tab Button:
* .dijitTabContainerTop-tabs .dijitTabInnerDiv/.dijitTabContent - styles for top tab button container
* .dijitTabContainerBottom-tabs .dijitTabInnerDiv/.dijitTabContent - styles for bottom tab button container
* .dijitTabContainerLeft-tabs .dijitTabInnerDiv/.dijitTabContent - styles for left tab button container
* .dijitTabContainerRight-tabs .dijitTabInnerDiv/.dijitTabContent - styles for right tab button container
*
* .dijitTabContainerTop-tabs .dijitTabChecked .dijitTabInnerDiv/.dijitTabContent
* - styles for selected status of top tab button
* same to Bottom, Left, Right Tabs
*
* .dijitTabHover .dijitTabInnerDiv - styles when mouse hover on tab buttons
* .dijitTabActive .dijitTabInnerDiv - styles when mouse down on tab buttons
* .dijitTabChecked .dijitTabInnerDiv - styles when on buttons of selected tab
*
* .dijitTabCloseButton - the close action buttons lie at the right top of each tab button on closable tabs
* .dijitTabCloseButtonHover - styles when mouse hover on close action button
* .dijitTabCloseButtonActive - styles when mouse down on close action button
*
* Tab Button: (checked status)
*
* Tab Content Container:
* .dijitTabContainerTop-dijitContentPane
* .dijitTabContainerBottom-dijitContentPane
* .dijitTabContainerLeft-dijitContentPane
* .dijitTabContainerRight-dijitContentPane - for background and padding
*
* Nested Tabs:
* .dijitTabContainerNested - Container for nested tabs
* .dijitTabContainerTabListNested - tab list container for nested tabs
*/
/*** some common features ***/
.claro .dijitTabPaneWrapper {
2011-11-08 17:40:44 +01:00
background: #ffffff;
}
.claro .dijitTabPaneWrapper,
.claro .dijitTabContainerTop-tabs,
.claro .dijitTabContainerBottom-tabs,
.claro .dijitTabContainerLeft-tabs,
.claro .dijitTabContainerRight-tabs {
2011-11-08 17:40:44 +01:00
/* todo: add common class name for this div */
border-color: #b5bcc7;
}
.claro .dijitTabCloseButton {
2011-11-08 17:40:44 +01:00
background: url("images/tabClose.png") no-repeat;
width: 14px;
height: 14px;
margin-left: 5px;
margin-right: -5px;
}
.claro .dijitTabCloseButtonHover {
2011-11-08 17:40:44 +01:00
background-position: -14px;
}
.claro .dijitTabCloseButtonActive {
2011-11-08 17:40:44 +01:00
background-position: -28px;
}
.claro .dijitTabSpacer {
2011-11-08 17:40:44 +01:00
/* set the spacer invisible. note that height:0 doesn't work on IE/quirks, it's still 10px. */
display: none;
}
.claro .dijitTabInnerDiv {
2011-11-08 17:40:44 +01:00
background-color: #efefef;
-webkit-transition-property: background-color, border;
-moz-transition-property: background-color, border;
transition-property: background-color, border;
-webkit-transition-duration: 0.35s;
-moz-transition-duration: 0.35s;
transition-duration: 0.35s;
color: #4a4a4a;
}
.claro .dijitTabHover .dijitTabInnerDiv {
2011-11-08 17:40:44 +01:00
background-color: #abd6ff;
-webkit-transition-duration: 0.25s;
-moz-transition-duration: 0.25s;
transition-duration: 0.25s;
color: #000000;
}
.claro .dijitTabActive .dijitTabInnerDiv {
2011-11-08 17:40:44 +01:00
background-color: #7dbefa;
color: #000000;
-webkit-transition-duration: 0.1s;
-moz-transition-duration: 0.1s;
transition-duration: 0.1s;
}
.claro .dijitTabChecked .dijitTabInnerDiv {
2011-11-08 17:40:44 +01:00
background-color: #cfe5fa;
color: #000000;
}
.claro .dijitTabContent {
2011-11-08 17:40:44 +01:00
border: 1px solid #b5bcc7;
}
.claro .dijitTabHover .dijitTabContent {
border-color: #769dc0;
}
.claro .dijitTabActive .dijitTabContent {
2011-11-08 17:40:44 +01:00
border-color: #769dc0;
}
.claro .dijitTabChecked .dijitTabContent {
2011-11-08 17:40:44 +01:00
color: #000000;
border-color: #b5bcc7;
}
.claro .tabStripButton .dijitTabInnerDiv {
2011-11-08 17:40:44 +01:00
background-color: transparent;
}
.claro .tabStripButton .dijitTabContent {
2011-11-08 17:40:44 +01:00
border: none;
}
2011-11-08 17:40:44 +01:00
/*** end common ***/
/*************** top tab ***************/
.claro .dijitTabContainerTop-tabs .dijitTab {
2011-11-08 17:40:44 +01:00
top: 1px;
/* used for overlap */
margin-right: 1px;
padding-top: 3px;
}
.dj_ie7 .claro .dijitTabContainerTop-tabs .dijitTab {
2011-11-08 17:40:44 +01:00
top: 3px;
}
2011-11-08 17:40:44 +01:00
/* for top tab padding. change height when status changes */
.claro .dijitTabContainerTop-tabs .dijitTabContent {
2011-11-08 17:40:44 +01:00
padding: 3px 6px;
border-bottom-width: 0;
background-image: url("images/tabTop.png");
background-position: 0 0;
background-repeat: repeat-x;
min-width: 60px;
text-align: center;
}
.claro .dijitTabContainerTop-tabs .dijitTabChecked .dijitTabContent {
2011-11-08 17:40:44 +01:00
padding-bottom: 4px;
padding-top: 6px;
}
2011-11-08 17:40:44 +01:00
/* normal status */
.claro .dijitTabContainerTop-tabs .dijitTabInnerDiv {
2011-11-08 17:40:44 +01:00
background-image: url("images/tabTop.png");
background-position: 0 -248px;
background-position: bottom;
background-repeat: repeat-x;
-webkit-box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.04);
-moz-box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.04);
box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.04);
}
/* checked status */
.claro .dijitTabContainerTop-tabs .dijitTabChecked .dijitTabInnerDiv {
2011-11-08 17:40:44 +01:00
background-image: none;
-webkit-box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.05);
-moz-box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.05);
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.05);
}
.claro .dijitTabContainerTop-tabs .dijitTabChecked .dijitTabContent {
2011-11-08 17:40:44 +01:00
background-position: 0 -102px;
background-repeat: repeat-x;
}
2011-11-08 17:40:44 +01:00
/** end top tab **/
/*************** bottom tab ***************/
.claro .dijitTabContainerBottom-tabs .dijitTab {
2011-11-08 17:40:44 +01:00
top: -1px;
/* used for overlap */
margin-right: 1px;
}
2011-11-08 17:40:44 +01:00
/* calculate the position and size */
.claro .dijitTabContainerBottom-tabs .dijitTabContent {
2011-11-08 17:40:44 +01:00
padding: 3px 6px;
border-top-width: 0;
background-image: url("images/tabBottom.png");
background-position: 0 -249px;
background-repeat: repeat-x;
background-position: bottom;
min-width: 60px;
text-align: center;
}
.claro .dijitTabContainerBottom-tabs .dijitTab {
2011-11-08 17:40:44 +01:00
padding-bottom: 3px;
}
2011-11-08 17:40:44 +01:00
/* normal status */
.claro .dijitTabContainerBottom-tabs .dijitTabInnerDiv {
2011-11-08 17:40:44 +01:00
background-image: url("images/tabBottom.png");
background-position: top;
background-repeat: repeat-x;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}
/* checked status */
.claro .dijitTabContainerBottom-tabs .dijitTabChecked .dijitTabContent {
2011-11-08 17:40:44 +01:00
padding-bottom: 7px;
padding-top: 4px;
background-position: 0 -119px;
}
.claro .dijitTabContainerBottom-tabs .dijitTabChecked {
2011-11-08 17:40:44 +01:00
padding-bottom: 0;
}
.claro .dijitTabContainerBottom-tabs .dijitTabChecked .dijitTabInnerDiv {
2011-11-08 17:40:44 +01:00
background-image: none;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
2011-11-08 17:40:44 +01:00
/** end bottom tab **/
/*************** left tab ***************/
.claro .dijitTabContainerLeft-tabs .dijitTab {
2011-11-08 17:40:44 +01:00
border-right-width: 0;
left: 1px;
/* used for overlap */
margin-bottom: 1px;
}
2011-11-08 17:40:44 +01:00
/* normal status */
.claro .dijitTabContainerLeft-tabs .dijitTabInnerDiv {
2011-11-08 17:40:44 +01:00
background-image: url("images/tabLeft.png");
background-position: -347px -340px;
background-repeat: repeat-y;
}
.claro .dijitTabContainerLeft-tabs .dijitTabContent {
2011-11-08 17:40:44 +01:00
padding: 3px 8px 4px 4px;
background-image: url("images/tabLeft.png");
background-repeat: repeat-y;
background-position: 0 0;
}
2011-11-08 17:40:44 +01:00
/* checked status */
.claro .dijitTabContainerLeft-tabs .dijitTabChecked .dijitTabContent {
2011-11-08 17:40:44 +01:00
padding-right: 9px;
border-right: none;
background-image: none;
}
.claro .dijitTabContainerLeft-tabs .dijitTabChecked .dijitTabInnerDiv {
2011-11-08 17:40:44 +01:00
background-position: 0 -179px;
background-repeat: repeat-y;
-webkit-box-shadow: -1px 0 2px rgba(0, 0, 0, 0.05);
-moz-box-shadow: -1px 0 2px rgba(0, 0, 0, 0.05);
box-shadow: -1px 0 2px rgba(0, 0, 0, 0.05);
}
/** end left tab **/
/*************** right tab ***************/
.claro .dijitTabContainerRight-tabs .dijitTab {
2011-11-08 17:40:44 +01:00
border-left-width: 0;
left: -1px;
/* used for overlap */
margin-bottom: 1px;
}
2011-11-08 17:40:44 +01:00
/* normal status */
.claro .dijitTabContainerRight-tabs .dijitTabInnerDiv {
2011-11-08 17:40:44 +01:00
background-image: url("images/tabRight.png");
background-repeat: repeat-y;
background-position: -1px -347px;
}
.claro .dijitTabContainerRight-tabs .dijitTabContent {
2011-11-08 17:40:44 +01:00
padding: 3px 8px 4px 4px;
background-image: url("images/tabRight.png");
background-position: right top;
background-repeat: repeat-y;
}
2011-11-08 17:40:44 +01:00
/* checked status */
.claro .dijitTabContainerRight-tabs .dijitTabChecked .dijitTabContent {
2011-11-08 17:40:44 +01:00
padding-left: 5px;
border-left: none;
background-image: none;
}
.claro .dijitTabContainerRight-tabs .dijitTabChecked .dijitTabInnerDiv {
2011-11-08 17:40:44 +01:00
background-position: -348px -179px;
-webkit-box-shadow: 1px 0 2px rgba(0, 0, 0, 0.07);
-moz-box-shadow: 1px 0 2px rgba(0, 0, 0, 0.07);
box-shadow: 1px 0 2px rgba(0, 0, 0, 0.07);
}
/** end right tab **/
/** round corner **/
.claro .dijitTabContainerTop-tabs .dijitTabInnerDiv, .claro .dijitTabContainerTop-tabs .dijitTabContent {
-moz-border-radius: 2px 2px 0 0;
border-radius: 2px 2px 0 0;
}
.claro .dijitTabContainerBottom-tabs .dijitTabInnerDiv, .claro .dijitTabContainerBottom-tabs .dijitTabContent {
-moz-border-radius: 0 0 2px 2px;
border-radius: 0 0 2px 2px;
}
.claro .dijitTabContainerLeft-tabs .dijitTabInnerDiv, .claro .dijitTabContainerLeft-tabs .dijitTabContent {
-moz-border-radius: 2px 0 0 2px;
border-radius: 2px 0 0 2px;
}
.claro .dijitTabContainerRight-tabs .dijitTabInnerDiv, .claro .dijitTabContainerRight-tabs .dijitTabContent {
-moz-border-radius: 0 2px 2px 0;
border-radius: 0 2px 2px 0;
}
/************ left/right scroll buttons + menu button ************/
.claro .tabStripButton {
2011-11-08 17:40:44 +01:00
background-color: #e9f4fe;
border: 1px solid #b5bcc7;
}
.claro .dijitTabListContainer-top .tabStripButton {
2011-11-08 17:40:44 +01:00
padding: 4px 3px;
margin-top: 7px;
background-image: url("images/tabTop.png");
background-position: 0 0;
}
.claro .dijitTabListContainer-bottom .tabStripButton {
2011-11-08 17:40:44 +01:00
padding: 5px 3px;
margin-bottom: 4px;
background-image: url("images/tabTop.png");
background-position: 0 -248px;
background-position: bottom;
}
.claro .tabStripButtonHover {
2011-11-08 17:40:44 +01:00
background-color: #abd6ff;
}
.claro .tabStripButtonActive {
2011-11-08 17:40:44 +01:00
background-color: #7dbefa;
}
.claro .dijitTabStripIcon {
2011-11-08 17:40:44 +01:00
height: 15px;
width: 15px;
margin: 0 auto;
background: url("../form/images/buttonArrows.png") no-repeat -75px 50%;
background-color: transparent;
}
2011-11-08 17:40:44 +01:00
.claro .dijitTabStripSlideRightIcon {
background-position: -24px 50%;
}
.claro .dijitTabStripMenuIcon {
2011-11-08 17:40:44 +01:00
background-position: -51px 50%;
}
2011-11-08 17:40:44 +01:00
/*disabled styles for tab strip buttons*/
.claro .dijitTabListContainer-top .tabStripButtonDisabled, .claro .dijitTabListContainer-bottom .tabStripButtonDisabled {
background-color: #d3d3d3;
border: 1px solid #b5bcc7;
/* to match border of TabContainer itself */
}
.claro .tabStripButtonDisabled .dijitTabStripSlideLeftIcon {
2011-11-08 17:40:44 +01:00
background-position: -175px 50%;
}
.claro .tabStripButtonDisabled .dijitTabStripSlideRightIcon {
2011-11-08 17:40:44 +01:00
background-position: -124px 50%;
}
.claro .tabStripButtonDisabled .dijitTabStripMenuIcon {
2011-11-08 17:40:44 +01:00
background-position: -151px 50%;
}
/* Nested Tabs */
.claro .dijitTabContainerNested .dijitTabListWrapper {
2011-11-08 17:40:44 +01:00
height: auto;
}
.claro .dijitTabContainerNested .dijitTabContainerTop-tabs {
2011-11-08 17:40:44 +01:00
border-bottom: solid 1px #b5bcc7;
padding: 1px 2px 4px;
margin-top: -2px;
}
.claro .dijitTabContainerTabListNested .dijitTabContent {
2011-11-08 17:40:44 +01:00
background: rgba(255, 255, 255, 0) none repeat scroll 0 0;
border: none;
padding: 4px;
border-color: rgba(118, 157, 192, 0);
-webkit-transition-property: background-color, border-color;
-moz-transition-property: background-color, border-color;
transition-property: background-color, border-color;
-webkit-transition-duration: 0.3s;
-moz-transition-duration: 0.3s;
transition-duration: 0.3s;
-moz-border-radius: 2px;
border-radius: 2px;
}
.claro .dijitTabContainerTabListNested .dijitTab .dijitTabInnerDiv {
2011-11-08 17:40:44 +01:00
/* 4 element selector to override box-shadow setting from above rule:
* .claro .dijitTabContainerTop-tabs .dijitTabChecked .dijitTabInnerDiv { ... }
*/
background: none;
border: none;
top: 0;
/* to override top: 1px/-1px for normal tabs */
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.claro .dijitTabContainerTabListNested .dijitTabHover .dijitTabContent {
2011-11-08 17:40:44 +01:00
background-color: #e9f4fe;
border: solid 1px #cfe5fa;
padding: 3px;
-webkit-transition-duration: 0.2s;
-moz-transition-duration: 0.2s;
transition-duration: 0.2s;
}
.claro .dijitTabContainerTabListNested .dijitTabHover .tabLabel {
2011-11-08 17:40:44 +01:00
text-decoration: none;
}
.claro .dijitTabContainerTabListNested .dijitTabActive .dijitTabContent {
2011-11-08 17:40:44 +01:00
border: solid 1px #769dc0;
padding: 3px;
background: #abd6ff url("images/tabNested.png") repeat-x;
-webkit-transition-duration: 0.1s;
-moz-transition-duration: 0.1s;
transition-duration: 0.1s;
}
.claro .dijitTabContainerTabListNested .dijitTabChecked .dijitTabContent {
2011-11-08 17:40:44 +01:00
padding: 3px;
border: solid 1px #769dc0;
background-position: 0 105px;
background-color: #cfe5fa;
}
.claro .dijitTabContainerTabListNested .dijitTabChecked .tabLabel {
2011-11-08 17:40:44 +01:00
text-decoration: none;
background-image: none;
}
.claro .dijitTabPaneWrapperNested {
2011-11-08 17:40:44 +01:00
border: none;
/* prevent double border */
}
.dj_ie6 .claro .dijitTabContent,
.dj_ie6 .claro .dijitTabInnerDiv,
.dj_ie6 .dijitTabListContainer-top .tabStripButton,
2011-11-08 17:40:44 +01:00
.dj_ie6 .dijitTabListContainer-bottom .tabStripButton {
background-image: none;
}