This repository was archived by the owner on Sep 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +27
-19
lines changed Expand file tree Collapse file tree 4 files changed +27
-19
lines changed Original file line number Diff line number Diff line change 1
1
// Theme styles for mdCalendar.
2
2
3
+ .md-calendar {
4
+ color : ' {{foreground-2}}' ;
5
+
6
+ tr :last-child td {
7
+ border-bottom-color : ' {{background-200}}' ;
8
+ }
9
+ }
10
+
3
11
.md-calendar-day-header {
4
- background-color : #eeeeee ; // grey-200
5
- color : #616161 ; // need spec; currently grey-700
12
+ background-color : ' {{background-200}} ' ; // grey-200
13
+ color : ' {{foreground-2}} ' ; // grey-700
6
14
}
7
15
8
16
.md-calendar-date.md-calendar-date-today {
9
- color : #2196f3 ; // blue-500
17
+ color : ' {{primary-500}} ' ; // blue-500
10
18
}
11
19
12
20
.md-calendar-date :focus {
13
21
.md-calendar-date-selection-indicator {
14
- background-color : #e0e0e0 ; // grey-300
22
+ background-color : ' {{background-300}} ' ; // grey-300
15
23
}
16
24
}
17
25
18
26
.md-calendar-date-selection-indicator :hover {
19
- background-color : #e0e0e0 ; // grey-300
27
+ background-color : ' {{background-300}} ' ; // grey-300
20
28
}
21
29
22
30
// Selected style goes after hover and focus so that it takes priority.
23
31
.md-calendar-date.md-calendar-selected-date {
24
32
.md-calendar-date-selection-indicator {
25
- background-color : #2196f3 ; // blue-500
26
- color : white ; // ?
33
+ background-color : ' {{primary-500}} ' ; // blue-500
34
+ color : ' {{primary-contrast}} ' ; // SHOULD BE WHITE (ish)
27
35
}
28
36
}
Original file line number Diff line number Diff line change 17
17
// TODO(jelbourn): read-only state.
18
18
// TODO(jelbourn): Date "isComplete" logic
19
19
// TODO(jelbourn): Apple + up / down == PgDown and PgUp
20
- // TODO(jelbourn): Documentation
21
- // TODO(jelbourn): Demo that uses moment.js
22
20
// TODO(jelbourn): Fix NVDA stealing key presses (IE) ???
23
21
24
- // FUTURE VERSION
25
- // TODO(jelbourn): Animated month transition on ng-model change.
26
- // TODO(jelbourn): Scroll snapping
27
- // TODO(jelbourn): Month headers stick to top when scrolling
22
+ // POST RELEASE
23
+ // TODO(jelbourn): Animated month transition on ng-model change (virtual-repeat)
24
+ // TODO(jelbourn): Scroll snapping (virtual repeat)
25
+ // TODO(jelbourn): Remove superfluous row from short months (virtual-repeat)
26
+ // TODO(jelbourn): Month headers stick to top when scrolling.
28
27
// TODO(jelbourn): Previous month opacity is lowered when partially scrolled out of view.
29
28
// TODO(jelbourn): Support md-calendar standalone on a page (as a tabstop w/ aria-live
30
29
// announcement and key handling).
Original file line number Diff line number Diff line change @@ -122,11 +122,11 @@ md-calendar {
122
122
// Primary table containing all date cells. Each month is a tbody in this table.
123
123
.md-calendar {
124
124
@include md-calendar-table ();
125
- color : rgba (black , 0.7 ); // secondary
126
125
127
126
// Divider between months.
128
127
tr :last-child td {
129
- border-bottom : 1px solid #e9e9e9 ;
128
+ border-bottom-width : 1px ;
129
+ border-bottom-style : solid ;
130
130
}
131
131
132
132
// The divider between months doesn't actualyl change the height of the tbody in which the
@@ -136,4 +136,3 @@ md-calendar {
136
136
border-top : 1px solid transparent ;
137
137
}
138
138
}
139
-
Original file line number Diff line number Diff line change 2
2
'use strict' ;
3
3
4
4
// PRE RELEASE
5
+ // TODO(jelbourn): Documentation
6
+ // TODO(jelbourn): Demo that uses moment.js
5
7
// TODO(jelbourn): aria attributes tying together date input and floating calendar.
6
- // TODO(jelbourn): something for mobile (probably calendar panel should take up entire screen)
7
8
// TODO(jelbourn): make sure this plays well with validation and ngMessages.
8
9
// TODO(jelbourn): forward more attributes to the internal input (required, autofocus, etc.)
9
10
// TODO(jelbourn): floating panel open animation (see animation for menu in spec).
10
- // TODO(jelbourn): error state
11
11
// TODO(jelbourn): auto-grow input to accomodate longer dates
12
12
13
- // FUTURE VERSION
13
+ // POST RELEASE
14
+ // TODO(jelbourn): error state
15
+ // TODO(jelbourn): something better for mobile (calendar panel takes up entire screen?)
14
16
// TODO(jelbourn): input behavior (masking? auto-complete?)
15
17
// TODO(jelbourn): UTC mode
16
18
// TODO(jelbourn): RTL
You can’t perform that action at this time.
0 commit comments