3 * Styling Calendar mainly includes:
5 * 1. Calendar container
6 * .dijitCalendar - main container
7 * .dijitCalendarHover / .dijitCalendarActive - states e.g. hover,active
10 * .dijitCalendarMonthContainer
11 * .dijitCalendarMonthLabel
12 * .dijitCalendarDecrease / .dijitCalendarDecrease - icons for switching to previous/next month
13 * .dijitCalendarArrowActive .dijitCalendarDecrease - states e.g. hover,active
16 * .dijitCalendarDayLabelTemplate - week day column header e.g. S M T W T F S
17 * .dijitCalendarDateTemplate - date label wrapper
18 * .dijitCalendarPreviousMonth .dijitCalendarDateLabel - special labels for previous or next month
19 * .dijitCalendarSelectedDate .dijitCalendarDateLabel - styles for selected date
20 * .dijitCalendarDisabledDate .dijitCalendarDateLabel - styles for disabled date
21 * .dijitCalendarActiveDate .dijitCalendarDateLabel - states e.g. hover,active
24 * .dijitCalendarYearContainer
25 * .dijitCalendarYearLabel
26 * .dijitCalendarPreviousYear /.dijitCalendarNextYear
27 * .dijitCalendarNextYearHover / .dijitCalendarPreviousYearHover - states e.g. hover,active
29 * 5. Dropdown Month Menu
30 * .dijitCalendarMonthMenu - menu container
31 * .dijitCalendarMonthMenu .dijitCalendarMonthLabel - month label in menu item
32 * .dijitCalendarMonthMenu .dijitCalendarMonthLabelHover - menu item hover state
37 .claro .dijitCalendar {
38 border: solid 1px @border-color;
41 // Background color and alpha-gradient
42 background-color: @calendar-background-color;
43 background-image: url("images/calendar.png"); // fallback for browsers that don't support CSS gradients
44 background-repeat: repeat-x; // so bottom of calendar isn't affected by gradient image repeating
45 .alpha-white-gradient(1, 0px, 0.4, 2px, 0, 100%);
48 padding:6px 5px 3px 5px;
50 .dj_ie6 .claro .dijitCalendar {
51 background-image:none; // because on IE6 background-image overrides background-color
53 .claro .dijitCalendar img {
56 .claro .dijitCalendarHover, .claro .dijitCalendar:hover,
57 .claro .dijitCalendarActive {
58 /* treat dijitCalendarActive like hover since there's
59 * no concept of clicking a Calendar as a whole (although you can click things inside the calendar)
61 background-color: @hovered-background-color;
62 border:solid 1px @hovered-border-color;
64 .claro .dijitCalendar table {
65 border-collapse: separate; // in case user CSS has set border-collapse: collapse for tables
67 .claro .dijitCalendarMonthContainer th {
70 vertical-align:middle;
72 .claro .dijitCalendarMonthLabel {
78 /* next/previous month arrows */
79 .claro .dijitCalendarIncrementControl {
82 background-image: url(@image-calendar-arrows);
83 background-repeat: no-repeat;
85 .dj_ie6 .claro .dijitCalendarIncrementControl {
86 background-image: url(@image-calendar-arrows-ie6);
88 .claro .dijitCalendarIncrease {
89 background-position:-18px 0;
91 .claro .dijitCalendarArrowHover .dijitCalendarDecrease,
92 .claro .dijitCalendarArrow:hover .dijitCalendarDecrease {
93 background-position:-36px 0;
95 .claro .dijitCalendarArrowHover .dijitCalendarIncrease,
96 .claro .dijitCalendarArrow:hover .dijitCalendarIncrease {
97 background-position:-55px 0;
99 .claro .dijitCalendarArrowActive .dijitCalendarDecrease,
100 .claro .dijitCalendarArrow:active .dijitCalendarDecrease {
101 background-position:-72px 0;
103 .claro .dijitCalendarArrowActive .dijitCalendarIncrease,
104 .claro .dijitCalendarArrow:active .dijitCalendarIncrease {
105 background-position:-91px 0;
107 .claro .dijitA11ySideArrow {
108 /* text +/- labels instead of arrow icons, for high contrast mode */
112 .claro .dijitCalendarDayLabelTemplate {
115 border-bottom:1px solid @border-color;
118 .claro .dijitCalendarDayLabel {
125 .claro .dijitCalendarDateTemplate {
127 background-color:@calendar-currentmonth-background-color;
128 border-bottom: 1px solid @minor-border-color;
133 letter-spacing:.05em;
137 .dj_ie6 .claro .dijitCalendarDateTemplate {
138 background-image: none;
140 .claro .dijitCalendarPreviousMonth,
141 .claro .dijitCalendarNextMonth {
142 background-color: @calendar-adjacentmonth-background-color;
143 background-image:none;
144 border-bottom:solid 1px @minor-border-color; /* todo: redundant with above .dijitCalendarDateTemplate rule */
146 .claro .dijitCalendarDateTemplate .dijitCalendarDateLabel {
147 text-decoration:none;
149 padding:3px 5px 3px 4px;
150 border:solid 1px @calendar-currentmonth-background-color; /* intentionally matches background-color, no visible border until hover/selection */
151 background-color:rgba(171,212,251,0); /* transparent causes black-flash animation problem on webkit */
152 .transition-property(background-color, border);
153 .transition-duration(.35s);
155 .claro .dijitCalendarPreviousMonth .dijitCalendarDateLabel,
156 .claro .dijitCalendarNextMonth .dijitCalendarDateLabel{
157 color: @calendar-adjacentmonth-text-color;
158 border-color: @calendar-adjacentmonth-background-color; /* intentionally matches background-color, no visible border until hover/selection */
161 .claro .dijitCalendarYearContainer {
162 vertical-align:middle;
164 .claro .dijitCalendarYearControl {
165 padding: 1px 2px 2px 2px;
167 .claro .dijitCalendarYearLabel {
172 .claro .dijitCalendarYearLabel span {
173 /* trying to center next/current/previous year vertically, doesn't work on IE6/7 though */
174 vertical-align:middle;
176 .claro .dijitCalendarSelectedYear {
179 .claro .dijitCalendarNextYear,
180 .claro .dijitCalendarPreviousYear {
181 padding: 1px 6px 1px 6px;
184 .claro .dijitCalendarSelectedYear {
186 color:@selected-text-color;
188 /* End Normal Calendar Style */
189 /* Hovered Calendar Style */
190 .claro .dijitCalendarHoveredDate .dijitCalendarDateLabel,
191 .claro .dijitCalendarLite .dijitCalendarEnabledDate:hover .dijitCalendarDateLabel {
192 background-color:@hovered-background-color;
193 border:solid 1px @hovered-border-color;
194 color:@hovered-text-color;
195 .transition-duration(.2s);
197 .claro .dijitCalendarNextYearHover, .claro .dijitCalendarNextYear:hover,
198 .claro .dijitCalendarPreviousYearHover, .claro .dijitCalendarPreviousYear:hover {
199 color:@hovered-text-color;
200 border:solid 1px @calendar-button-hovered-border-color;
201 padding: 0 5px 0 5px; /* reduced by 1 to make room for border */
202 background-color: @calendar-button-hovered-background-color;
204 /* End Hovered Calendar Style */
205 /* Active Calendar Style */
206 .claro .dijitCalendarNextYearActive, .claro .dijitCalendarNextYear:active
207 .claro .dijitCalendarPreviousYearActive, .claro .dijitCalendarPreviousYear:active {
208 border: solid 1px @calendar-button-pressed-border-color;
209 padding: 0 5px 0 5px; /* reduced by 1 to make room for border */
210 background-color:@calendar-button-pressed-background-color;
212 .claro .dijitCalendarActiveDate .dijitCalendarDateLabel,
213 .claro .dijitCalendarEnabledDate:active .dijitCalendarDateLabel {
214 background-color: @calendar-date-pressed-background-color;
215 border:solid 1px @calendar-date-pressed-border-color;
216 .transition-duration(.1s);
218 .dj_ie6 .claro .dijitCalendarActiveDate .dijitCalendarDateLabel {
219 background-image:none;
221 /* End Active Calendar Style */
222 /* Selected Calendar Style */
223 .claro .dijitCalendarSelectedDate .dijitCalendarDateLabel {
224 color:@selected-text-color;
225 background-color: @calendar-date-selected-background-color;
226 border-color: @calendar-date-selected-border-color;
228 /* End Selected Calendar Style */
229 /* Disabled Calendar Style*/
230 .claro .dijitCalendarDisabledDate .dijitCalendarDateLabel {
231 color: @disabled-text-color;
232 text-decoration:line-through;
235 /* End Disabled Calendar Style */
237 /* Styling for month DropDownButton */
239 .claro .dijitCalendar .dijitDropDownButton {
242 .claro .dijitCalendar .dijitButtonText {
246 .claro .dijitCalendar .dijitDropDownButton .dijitButtonNode {
247 padding: 0 3px 0 2px;
248 border:solid 1px @border-color;
249 .box-shadow(0 0 0 rgba(0,0,0,0));
251 // Override background settings from vanilla .dijitButtonNode. We want to inherit background of Calendar.
252 background-color: transparent;
253 background-image: none;
255 .claro .dijitCalendar .dijitDropDownButtonHover .dijitButtonNode,
256 .claro .dijitCalendar .dijitDropDownButton:hover .dijitButtonNode {
257 background-color: @calendar-button-hovered-background-color;
258 border:solid 1px @calendar-button-hovered-border-color;
261 /* Styling for month drop down list */
263 .claro .dijitCalendarMonthMenu {
264 border-color: @popup-border-color;
265 background-color: @menu-background-color;
267 background-image: none;
269 .claro .dijitCalendarMonthMenu .dijitCalendarMonthLabel {
270 border-top: solid 1px @menu-background-color; /* intentionally invisible until hover */
271 border-bottom: solid 1px @menu-background-color;
274 .claro .dijitCalendarMonthMenu .dijitCalendarMonthLabelHover,
275 .claro .dijitCalendarMonthMenu .dijitCalendarMonthLabelActive {
276 border-color: @hovered-border-color;
278 .gradient-and-filter(@hovered-background-color, 70, 0);