Default (Horizontal)"
m |
m (→Source) |
||
(6 intermediate revisions by one other user not shown) | |||
Line 6: | Line 6: | ||
=Source= | =Source= | ||
− | + | ||
{{CSSSource | {{CSSSource | ||
− | | url= | + | | url=zul/src/archive/web/js/zul/tab/css/tabbox.css.dsp |
− | | control= | + | | control=Tabbox |
|}} | |}} | ||
Line 18: | Line 18: | ||
=Events= | =Events= | ||
− | + | ||
{{Template:Style Guide Event | {{Template:Style Guide Event | ||
|.z-tabbox | |.z-tabbox | ||
Line 35: | Line 35: | ||
=CSS Specification= | =CSS Specification= | ||
− | + | ||
{{Template:ZK Style Guide CSS}} | {{Template:ZK Style Guide CSS}} | ||
|.z-tabbox | |.z-tabbox | ||
Line 42: | Line 42: | ||
|} | |} | ||
− | |||
=Tabs= | =Tabs= | ||
Line 50: | Line 49: | ||
[[Image:Tabs-hor1.jpg]] | [[Image:Tabs-hor1.jpg]] | ||
=Events= | =Events= | ||
− | + | ||
{{Template:Style Guide Event | {{Template:Style Guide Event | ||
|.z-tabs | |.z-tabs | ||
Line 85: | Line 84: | ||
}} | }} | ||
=CSS Specification= | =CSS Specification= | ||
− | + | ||
{{Template:ZK Style Guide CSS}} | {{Template:ZK Style Guide CSS}} | ||
+ | |- | ||
+ | |.z-tabs | ||
+ | |The tabs | ||
+ | |overflow: hidden; | ||
+ | background: transparent none repeat scroll 0 0; | ||
+ | border: 0; | ||
+ | padding: 0; | ||
+ | margin: 0; | ||
+ | position: relative; | ||
+ | |- | ||
+ | |.z-tabs-cnt | ||
+ | |The tabs' background | ||
+ | |background: #C7E3F3 repeat-x scroll 0 top; | ||
+ | background-image: url(${c:encodeURL('~./zul/img/tab/tabs-bg.png')}); | ||
+ | border-bottom: 1px solid #7EAAC6; | ||
+ | padding-left: 5px; | ||
+ | padding-top: 1px; | ||
+ | list-style-image: none; | ||
+ | list-style-position: outside; | ||
+ | list-style-type: none; | ||
+ | display: block; | ||
+ | margin: 0; | ||
+ | zoom: 1; | ||
+ | |- | ||
+ | |.z-tabs-header-scroll | ||
+ | |The space for scroll button | ||
+ | |margin-left: 18px; | ||
+ | margin-right: 18px; | ||
+ | |- | ||
+ | |.z-tabs-header | ||
+ | |The whole tabs | ||
+ | |width: 100%; | ||
+ | margin: 0px; | ||
+ | position: relative; | ||
+ | overflow: hidden; | ||
+ | zoom: 1; | ||
+ | |- | ||
+ | |.z-tabs-left-scroll | ||
+ | |Scroll left button | ||
+ | |left: 0; | ||
+ | top: 0; | ||
+ | width: 18px; | ||
+ | height: 64px; | ||
+ | |||
+ | background: transparent no-repeat scroll 0 -1px; | ||
+ | background-image: url(${c:encodeURL('~./zul/img/tab/scroll-l.png')}); | ||
+ | border-bottom: 1px solid #8DB2E3; | ||
+ | cursor: pointer; | ||
+ | position: absolute; | ||
+ | z-index: 25; | ||
+ | |- | ||
+ | |.z-tabs-right-scroll | ||
+ | |Scroll right button | ||
+ | |right: 0; | ||
+ | top: 0; | ||
+ | width: 18px; | ||
+ | height: 64px; | ||
+ | background: transparent no-repeat scroll -18px -1px; | ||
+ | background-image: url(${c:encodeURL('~./zul/img/tab/scroll-r.png')}); | ||
+ | border-bottom: 1px solid #8DB2E3; | ||
+ | cursor: pointer; | ||
+ | position: absolute; | ||
+ | z-index: 25; | ||
+ | |} | ||
+ | |||
+ | =Tab= | ||
+ | =Structure= | ||
+ | [[Image:Tabbox-hor1.jpg]] | ||
+ | |||
+ | [[Image:Tab-hor1.jpg]] | ||
+ | |||
+ | |||
+ | =Events= | ||
+ | |||
+ | {{Template:Style Guide Event | ||
+ | |.z-tab | ||
+ | |:hover | ||
+ | |-seld | ||
+ | | | ||
+ | |-disd-seld | ||
+ | |-disd | ||
+ | |V | ||
+ | |V | ||
+ | |V | ||
+ | | | ||
+ | |! | ||
+ | |! | ||
+ | }} | ||
+ | |||
+ | =CSS Specification= | ||
+ | |||
+ | {{Template:ZK Style Guide CSS}} | ||
+ | |- | ||
+ | |.z-tab-hl | ||
+ | |Left of tab | ||
+ | |position: relative; | ||
+ | padding-left: 10px; | ||
+ | background: transparent no-repeat 0 -128px; | ||
+ | background-image: url(${c:encodeURL('~./zul/img/tab/tab-corner.png')}); | ||
+ | outline: none; | ||
+ | cursor: pointer; | ||
+ | |- | ||
+ | |.z-tab-hr | ||
+ | |Right of tab | ||
+ | |background: transparent no-repeat scroll right -128px; | ||
+ | background-image: url(${c:encodeURL('~./zul/img/tab/tab-corner.png')}); | ||
+ | padding-right: 10px; | ||
+ | display: block; | ||
+ | |- | ||
+ | |.z-tab-hm | ||
+ | |Middle of tab | ||
+ | |padding-left: 2px; | ||
+ | padding-right: 1px; | ||
+ | overflow: hidden; | ||
+ | cursor: pointer; | ||
+ | background: transparent repeat-x scroll 0 -128px; | ||
+ | background-image: url(${c:encodeURL('~./zul/img/tab/tab-hm.png')}); | ||
+ | |- | ||
+ | |.z-tab .z-tab-text | ||
+ | |Color and font of tab | ||
+ | |color: #416AA3; | ||
+ | cursor: pointer; | ||
+ | font-style: normal; | ||
+ | font-family: ${fontFamilyT}; | ||
+ | font-size: ${fontSizeM}; | ||
+ | font-size-adjust: none; | ||
+ | padding:4px 0 4px; | ||
+ | white-space: nowrap; | ||
+ | |- | ||
+ | |.z-tab-seld .z-tab-text | ||
+ | |Color and font of tab when it's choiced | ||
+ | |color: #0F3B82; | ||
+ | cursor: default; | ||
+ | font-weight: bold; | ||
+ | font-style: normal; | ||
+ | font-family: ${fontFamilyT}; | ||
+ | font-size: ${fontSizeM}; | ||
+ | white-space: nowrap; | ||
+ | padding:4px 0 5px; | ||
+ | |- | ||
+ | |.z-tab-hm-close | ||
+ | |The space when tab is closable | ||
+ | |padding-right: 10px; | ||
+ | |- | ||
+ | |z-tab-close | ||
+ | |The close button background and size | ||
+ | |background-image: url(${c:encodeURL('~./zul/img/tab/tab-close.gif')}); | ||
+ | background-repeat: no-repeat; | ||
+ | |||
+ | cursor: pointer; | ||
+ | display: block; | ||
+ | width: 11px; | ||
+ | height: 12px; | ||
+ | position: absolute; | ||
+ | right: 3px; | ||
+ | top: 3px; | ||
+ | z-index: 15; | ||
+ | opacity: .8; | ||
+ | filter: alpha(opacity=80); | ||
+ | zoom: 1; | ||
+ | |} | ||
+ | |||
+ | =Tabpanels and Tabpanel= | ||
+ | =Structure= | ||
+ | [[Image:Tabbox-hor1.jpg]] | ||
+ | |||
+ | [[Image:Tabpanels-hor1.jpg]] | ||
+ | |||
+ | |||
+ | =Events= | ||
+ | |||
+ | {{Template:Style Guide Event | ||
+ | |.z-tabpanels, | ||
+ | .z-tabpanel | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |V | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | }} | ||
+ | |||
+ | =CSS Specification= | ||
+ | |||
+ | {{Template:ZK Style Guide CSS}} | ||
+ | |- | ||
+ | |.z-tabpanel | ||
+ | |The tabpanel | ||
+ | |padding: 5px; | ||
+ | zoom: 1; | ||
+ | |- | ||
+ | |.z-tabpanel-cnt | ||
+ | |The content of tabpanel | ||
+ | |height: 100%; | ||
+ | |} | ||
+ | |||
{{ZKStyleGuidePageFooter}} | {{ZKStyleGuidePageFooter}} |
Latest revision as of 01:51, 13 September 2010
This is the Default (Horizontal) mold for Tabbox.
Source
The CSS source for Tabbox from GitHub
Structure
Events
CSS\Action | Normal (Open) | Hover | Click, Select, and Drag. | Focus | Focus and Hover | Disable |
Naming: | .z-tabbox | |||||
Supported: | V |
Note: An exclamation mark(!) means that the action effect is done by CSS background , not CSS background-position
CSS Specification
Class Name | Description | Default Values |
.z-tabbox | Overflow | overflow: hidden; visibility: hidden; |
Tabs
Structure
Events
CSS\Action | Normal (Open) | Hover | Click, Select, and Drag. | Focus | Focus and Hover | Disable |
Naming: | .z-tabs | |||||
Supported: | V |
CSS\Action | Normal (Open) | Hover | Click, Select, and Drag. | Focus | Focus and Hover | Disable |
Naming: | .z-tabs-right-scroll,
.z-tabs-left-scroll |
:hover | ||||
Supported: | V | V |
Note: An exclamation mark(!) means that the action effect is done by CSS background , not CSS background-position
CSS Specification
Class Name | Description | Default Values |
.z-tabs | The tabs | overflow: hidden;
background: transparent none repeat scroll 0 0; border: 0; padding: 0; margin: 0; position: relative; |
.z-tabs-cnt | The tabs' background | background: #C7E3F3 repeat-x scroll 0 top;
background-image: url(${c:encodeURL('~./zul/img/tab/tabs-bg.png')}); border-bottom: 1px solid #7EAAC6; padding-left: 5px; padding-top: 1px; list-style-image: none; list-style-position: outside; list-style-type: none; display: block; margin: 0; zoom: 1; |
.z-tabs-header-scroll | The space for scroll button | margin-left: 18px;
margin-right: 18px; |
.z-tabs-header | The whole tabs | width: 100%;
margin: 0px; position: relative; overflow: hidden; zoom: 1; |
.z-tabs-left-scroll | Scroll left button | left: 0;
top: 0; width: 18px; height: 64px; background: transparent no-repeat scroll 0 -1px; background-image: url(${c:encodeURL('~./zul/img/tab/scroll-l.png')}); border-bottom: 1px solid #8DB2E3; cursor: pointer; position: absolute; z-index: 25; |
.z-tabs-right-scroll | Scroll right button | right: 0;
top: 0; width: 18px; height: 64px; background: transparent no-repeat scroll -18px -1px; background-image: url(${c:encodeURL('~./zul/img/tab/scroll-r.png')}); border-bottom: 1px solid #8DB2E3; cursor: pointer; position: absolute; z-index: 25; |
Tab
Structure
Events
CSS\Action | Normal (Open) | Hover | Click, Select, and Drag. | Focus | Focus and Hover | Disable |
Naming: | .z-tab | :hover | -seld | -disd-seld | -disd | |
Supported: | V | V | V | ! | ! |
Note: An exclamation mark(!) means that the action effect is done by CSS background , not CSS background-position
CSS Specification
Class Name | Description | Default Values |
.z-tab-hl | Left of tab | position: relative;
padding-left: 10px; background: transparent no-repeat 0 -128px; background-image: url(${c:encodeURL('~./zul/img/tab/tab-corner.png')}); outline: none; cursor: pointer; |
.z-tab-hr | Right of tab | background: transparent no-repeat scroll right -128px;
background-image: url(${c:encodeURL('~./zul/img/tab/tab-corner.png')}); padding-right: 10px; display: block; |
.z-tab-hm | Middle of tab | padding-left: 2px;
padding-right: 1px; overflow: hidden; cursor: pointer; background: transparent repeat-x scroll 0 -128px; background-image: url(${c:encodeURL('~./zul/img/tab/tab-hm.png')}); |
.z-tab .z-tab-text | Color and font of tab | color: #416AA3;
cursor: pointer; font-style: normal; font-family: ${fontFamilyT}; font-size: ${fontSizeM}; font-size-adjust: none; padding:4px 0 4px; white-space: nowrap; |
.z-tab-seld .z-tab-text | Color and font of tab when it's choiced | color: #0F3B82;
cursor: default; font-weight: bold; font-style: normal; font-family: ${fontFamilyT}; font-size: ${fontSizeM}; white-space: nowrap; padding:4px 0 5px; |
.z-tab-hm-close | The space when tab is closable | padding-right: 10px; |
z-tab-close | The close button background and size | background-image: url(${c:encodeURL('~./zul/img/tab/tab-close.gif')});
background-repeat: no-repeat; cursor: pointer; display: block; width: 11px; height: 12px; position: absolute; right: 3px; top: 3px; z-index: 15; opacity: .8; filter: alpha(opacity=80); zoom: 1; |
Tabpanels and Tabpanel
Structure
Events
CSS\Action | Normal (Open) | Hover | Click, Select, and Drag. | Focus | Focus and Hover | Disable |
Naming: | .z-tabpanels,
.z-tabpanel |
|||||
Supported: | V |
Note: An exclamation mark(!) means that the action effect is done by CSS background , not CSS background-position
CSS Specification
Class Name | Description | Default Values |
.z-tabpanel | The tabpanel | padding: 5px;
zoom: 1; |
.z-tabpanel-cnt | The content of tabpanel | height: 100%; |