Default"

From Documentation
m
 
(6 intermediate revisions by 2 users not shown)
Line 6: Line 6:
  
 
=Source=
 
=Source=
<br />
 
 
{{CSSSource
 
{{CSSSource
| url=
+
| url=zul/src/archive/web/js/zul/db/css/calendar.css.dsp
| control=
+
| control=Calendar
 
|}}
 
|}}
  
 
=Structure=
 
=Structure=
[[Image:Calendar1.jpg]]
+
[[Image:Calendar1.PNG]]
  
[[Image:Calendar2.jpg]]
+
[[Image:Calendar2.PNG]]
 +
 
 +
[[Image:Calendar3.PNG]]
 +
 
 +
[[Image:Calendar4.PNG]]
  
 
=Events=
 
=Events=
<br />
+
 
 
{{Template:Style Guide Event
 
{{Template:Style Guide Event
 
|.z-calendar
 
|.z-calendar
Line 35: Line 38:
  
 
=CSS Specification=
 
=CSS Specification=
<br />
+
 
 
{{Template:ZK Style Guide CSS}}
 
{{Template:ZK Style Guide CSS}}
 
|.z-calendar
 
|.z-calendar
Line 41: Line 44:
 
|Background and font size
 
|Background and font size
  
|background: white; border: 1px solid #7F9DB9; font-family: ${fontFamilyC};font-size: ${fontSizeM}; font-weight: normal;
+
|background: white; border: 1px solid #C5C5C5; font-family: ${fontFamilyC}; font-size: ${fontSizeM}; font-weight: normal; width: 215px; padding: 2px;
|-
 
|.z-calendar-calyear
 
 
 
|Background of year
 
 
 
|background: #e9f1f3; border: 1px solid; border-color: #f8fbff #aca899 #aca899 #f8fbff;
 
|-
 
|.z-calendar-calyear td
 
 
 
|Font size of year
 
 
 
|font-size: ${fontSizeM}; font-weight: bold; text-align: center; white-space: nowrap;
 
|-
 
|.z-calendar-calmon td
 
 
 
|Font size of month
 
 
 
|font-size: ${fontSizeS}; color: #35254F; text-align: center; cursor: pointer; text-decoration: none;
 
|-
 
|.z-calendar-calday
 
 
 
|Border of day
 
 
 
|border: 1px solid #ddd;
 
 
|-
 
|-
|.z-calendar-calday td,
+
|.z-calendar-seld
.z-calendar-calday td a,
 
  
.z-calendar-calday td a:visited
+
|Selected background
  
|Font size of day
+
|background: #CCE0FB;
 
 
|font-size: ${fontSizeS}; color: #35254F; text-align: center; cursor: pointer; text-decoration: none;
 
|-
 
|.z-calendar-calday td
 
 
 
|Padding size of day
 
 
 
|padding: 1px 3px;
 
|-
 
|.z-calendar-caldow
 
 
 
|Font size of DOW (Day Of Week)
 
 
 
|font-size: ${fontSizeS}; color: #333; font-weight: bold; padding: 1px 2px; background: #e8e8f0; text-align: center;
 
 
|}
 
|}
 
=Example=
 
[[Image:Calendar-demo.png]]
 
<source lang="css">
 
.z-calendar {
 
border-color: #34343C;
 
}
 
.z-calendar-calyear, .z-datebox-calyear {
 
background-color: #34343C;
 
color: white;
 
padding: 5px 0;
 
}
 
.z-calendar-over, .z-datebox-over {
 
background-color: #E1E1E1;
 
}
 
.z-calendar-calday td.z-calendar-seld, .z-datebox-calday td.z-datebox-seld, .z-calendar-calmon td.z-calendar-seld, .z-datebox-calmon td.z-datebox-seld {
 
border-color: #B2B1BC;
 
background-color: #6A6970;
 
}
 
.z-calendar-calday td.z-calendar-seld a, .z-datebox-calday td.z-datebox-seld a, .z-calendar-calmon td.z-calendar-seld, .z-datebox-calmon td.z-datebox-seld{
 
color: white;
 
font-weight:bold;
 
}
 
.z-calendar-calday, .z-datebox-calday {
 
border: 0 none;
 
}
 
.z-calendar-caldow td, .z-datebox-caldow td {
 
background: none;
 
border-bottom: 2px solid #34343C;
 
}
 
</source>
 
[[Category:Style Guide|C]]
 
[[Category:XUL Components|C]]
 
 
 
{{ZKStyleGuidePageFooter}}
 

Latest revision as of 06:38, 16 September 2010


This is the Default mold for Calendar.

Source

The CSS source for Calendar from GitHub


Structure

Calendar1.PNG

Calendar2.PNG

Calendar3.PNG

Calendar4.PNG

Events

CSS\Action Normal (Open) Hover Click, Select, and Drag. Focus Focus and Hover Disable
Naming: .z-calendar -over -seld -over-seld -disd
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-calendar Background and font size background: white; border: 1px solid #C5C5C5; font-family: ${fontFamilyC}; font-size: ${fontSizeM}; font-weight: normal; width: 215px; padding: 2px;
.z-calendar-seld Selected background background: #CCE0FB;