Build a basic calendar view
Summary:
This is a very small step toward building a Status and possibly an Oncall tool.
Build a calendar view which renders months.
Much of my hesitance to bang these tools out is that dealing with
dates/calendaring is basically horrible, so I'm trying to ease into it.
This calendar is locale-aware and all that jazz.
Test Plan:
- See:
https://secure.phabricator.com/file/view/PHID-FILE-c07a9c663a7d040d2529/
- Verified that months have the right number of days, today is the right day
of the week, months begin on the day after previous months end on, etc.
Reviewed By: aran
Reviewers: jungejason, tuomaspelkonen, aran
Commenters: cwbeck, jungejason
CC: blair, aran, epriestley, cwbeck, jungejason
Differential Revision: 791
2011-08-08 03:26:31 +02:00
|
|
|
/**
|
|
|
|
* @provides aphront-calendar-view-css
|
|
|
|
*/
|
|
|
|
|
|
|
|
.aphront-calendar-view {
|
2012-12-09 02:00:02 +01:00
|
|
|
width: 100%;
|
|
|
|
border-collapse: collapse;
|
|
|
|
background: #fff;
|
|
|
|
border: 2px solid #4f3612;
|
|
|
|
box-shadow: 0px 2px 6px #ccc;
|
Build a basic calendar view
Summary:
This is a very small step toward building a Status and possibly an Oncall tool.
Build a calendar view which renders months.
Much of my hesitance to bang these tools out is that dealing with
dates/calendaring is basically horrible, so I'm trying to ease into it.
This calendar is locale-aware and all that jazz.
Test Plan:
- See:
https://secure.phabricator.com/file/view/PHID-FILE-c07a9c663a7d040d2529/
- Verified that months have the right number of days, today is the right day
of the week, months begin on the day after previous months end on, etc.
Reviewed By: aran
Reviewers: jungejason, tuomaspelkonen, aran
Commenters: cwbeck, jungejason
CC: blair, aran, epriestley, cwbeck, jungejason
Differential Revision: 791
2011-08-08 03:26:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tr.aphront-calendar-month-year-header th {
|
|
|
|
text-align: center;
|
|
|
|
font-weight: bold;
|
2012-12-09 02:00:02 +01:00
|
|
|
font-size: 20px;
|
|
|
|
padding: 10px;
|
Build a basic calendar view
Summary:
This is a very small step toward building a Status and possibly an Oncall tool.
Build a calendar view which renders months.
Much of my hesitance to bang these tools out is that dealing with
dates/calendaring is basically horrible, so I'm trying to ease into it.
This calendar is locale-aware and all that jazz.
Test Plan:
- See:
https://secure.phabricator.com/file/view/PHID-FILE-c07a9c663a7d040d2529/
- Verified that months have the right number of days, today is the right day
of the week, months begin on the day after previous months end on, etc.
Reviewed By: aran
Reviewers: jungejason, tuomaspelkonen, aran
Commenters: cwbeck, jungejason
CC: blair, aran, epriestley, cwbeck, jungejason
Differential Revision: 791
2011-08-08 03:26:31 +02:00
|
|
|
color: white;
|
2012-12-09 02:00:02 +01:00
|
|
|
background: #4f3612;
|
|
|
|
height: 26px;
|
|
|
|
|
Build a basic calendar view
Summary:
This is a very small step toward building a Status and possibly an Oncall tool.
Build a calendar view which renders months.
Much of my hesitance to bang these tools out is that dealing with
dates/calendaring is basically horrible, so I'm trying to ease into it.
This calendar is locale-aware and all that jazz.
Test Plan:
- See:
https://secure.phabricator.com/file/view/PHID-FILE-c07a9c663a7d040d2529/
- Verified that months have the right number of days, today is the right day
of the week, months begin on the day after previous months end on, etc.
Reviewed By: aran
Reviewers: jungejason, tuomaspelkonen, aran
Commenters: cwbeck, jungejason
CC: blair, aran, epriestley, cwbeck, jungejason
Differential Revision: 791
2011-08-08 03:26:31 +02:00
|
|
|
}
|
|
|
|
|
2012-10-24 22:22:24 +02:00
|
|
|
tr.aphront-calendar-month-year-header th a {
|
|
|
|
color: white;
|
|
|
|
font-weight: bold;
|
|
|
|
text-decoration: none;
|
2012-12-09 02:00:02 +01:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
tr.aphront-calendar-month-year-header th a:hover {
|
|
|
|
color: #feffd0;
|
2012-10-24 22:22:24 +02:00
|
|
|
}
|
|
|
|
|
Build a basic calendar view
Summary:
This is a very small step toward building a Status and possibly an Oncall tool.
Build a calendar view which renders months.
Much of my hesitance to bang these tools out is that dealing with
dates/calendaring is basically horrible, so I'm trying to ease into it.
This calendar is locale-aware and all that jazz.
Test Plan:
- See:
https://secure.phabricator.com/file/view/PHID-FILE-c07a9c663a7d040d2529/
- Verified that months have the right number of days, today is the right day
of the week, months begin on the day after previous months end on, etc.
Reviewed By: aran
Reviewers: jungejason, tuomaspelkonen, aran
Commenters: cwbeck, jungejason
CC: blair, aran, epriestley, cwbeck, jungejason
Differential Revision: 791
2011-08-08 03:26:31 +02:00
|
|
|
tr.aphront-calendar-day-of-week-header th {
|
|
|
|
text-align: center;
|
|
|
|
font-size: 11px;
|
2012-12-09 02:00:02 +01:00
|
|
|
padding: 3px;
|
Build a basic calendar view
Summary:
This is a very small step toward building a Status and possibly an Oncall tool.
Build a calendar view which renders months.
Much of my hesitance to bang these tools out is that dealing with
dates/calendaring is basically horrible, so I'm trying to ease into it.
This calendar is locale-aware and all that jazz.
Test Plan:
- See:
https://secure.phabricator.com/file/view/PHID-FILE-c07a9c663a7d040d2529/
- Verified that months have the right number of days, today is the right day
of the week, months begin on the day after previous months end on, etc.
Reviewed By: aran
Reviewers: jungejason, tuomaspelkonen, aran
Commenters: cwbeck, jungejason
CC: blair, aran, epriestley, cwbeck, jungejason
Differential Revision: 791
2011-08-08 03:26:31 +02:00
|
|
|
color: white;
|
2012-12-09 02:00:02 +01:00
|
|
|
background: #896c45;
|
Build a basic calendar view
Summary:
This is a very small step toward building a Status and possibly an Oncall tool.
Build a calendar view which renders months.
Much of my hesitance to bang these tools out is that dealing with
dates/calendaring is basically horrible, so I'm trying to ease into it.
This calendar is locale-aware and all that jazz.
Test Plan:
- See:
https://secure.phabricator.com/file/view/PHID-FILE-c07a9c663a7d040d2529/
- Verified that months have the right number of days, today is the right day
of the week, months begin on the day after previous months end on, etc.
Reviewed By: aran
Reviewers: jungejason, tuomaspelkonen, aran
Commenters: cwbeck, jungejason
CC: blair, aran, epriestley, cwbeck, jungejason
Differential Revision: 791
2011-08-08 03:26:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
table.aphront-calendar-view td {
|
|
|
|
border: 1px solid #dfdfdf;
|
2012-05-21 19:24:23 +02:00
|
|
|
width: 14.2857%; /* This is one seventh, approximately. */
|
|
|
|
}
|
|
|
|
|
|
|
|
table.aphront-calendar-view td div.aphront-calendar-day {
|
2012-12-09 02:00:02 +01:00
|
|
|
min-height: 125px;
|
Build a basic calendar view
Summary:
This is a very small step toward building a Status and possibly an Oncall tool.
Build a calendar view which renders months.
Much of my hesitance to bang these tools out is that dealing with
dates/calendaring is basically horrible, so I'm trying to ease into it.
This calendar is locale-aware and all that jazz.
Test Plan:
- See:
https://secure.phabricator.com/file/view/PHID-FILE-c07a9c663a7d040d2529/
- Verified that months have the right number of days, today is the right day
of the week, months begin on the day after previous months end on, etc.
Reviewed By: aran
Reviewers: jungejason, tuomaspelkonen, aran
Commenters: cwbeck, jungejason
CC: blair, aran, epriestley, cwbeck, jungejason
Differential Revision: 791
2011-08-08 03:26:31 +02:00
|
|
|
}
|
|
|
|
|
2012-05-21 19:24:23 +02:00
|
|
|
.aphront-calendar-holiday {
|
|
|
|
color: #666666;
|
|
|
|
padding: .5em;
|
2012-05-21 20:59:12 +02:00
|
|
|
max-height: 1em;
|
|
|
|
overflow: hidden;
|
Build a basic calendar view
Summary:
This is a very small step toward building a Status and possibly an Oncall tool.
Build a calendar view which renders months.
Much of my hesitance to bang these tools out is that dealing with
dates/calendaring is basically horrible, so I'm trying to ease into it.
This calendar is locale-aware and all that jazz.
Test Plan:
- See:
https://secure.phabricator.com/file/view/PHID-FILE-c07a9c663a7d040d2529/
- Verified that months have the right number of days, today is the right day
of the week, months begin on the day after previous months end on, etc.
Reviewed By: aran
Reviewers: jungejason, tuomaspelkonen, aran
Commenters: cwbeck, jungejason
CC: blair, aran, epriestley, cwbeck, jungejason
Differential Revision: 791
2011-08-08 03:26:31 +02:00
|
|
|
}
|
|
|
|
|
2012-05-21 19:24:23 +02:00
|
|
|
.aphront-calendar-date-number {
|
2012-12-09 02:00:02 +01:00
|
|
|
font-weight: normal;
|
|
|
|
color: #999;
|
|
|
|
padding: 4px;
|
2012-05-21 19:24:23 +02:00
|
|
|
border-color: #dfdfdf;
|
|
|
|
border-style: solid;
|
|
|
|
border-width: 0 0 1px 1px;
|
|
|
|
float: right;
|
|
|
|
background: #ffffff;
|
|
|
|
width: 1.25em;
|
|
|
|
height: 1.25em;
|
|
|
|
text-align: center;
|
|
|
|
margin-bottom: 3px;
|
Build a basic calendar view
Summary:
This is a very small step toward building a Status and possibly an Oncall tool.
Build a calendar view which renders months.
Much of my hesitance to bang these tools out is that dealing with
dates/calendaring is basically horrible, so I'm trying to ease into it.
This calendar is locale-aware and all that jazz.
Test Plan:
- See:
https://secure.phabricator.com/file/view/PHID-FILE-c07a9c663a7d040d2529/
- Verified that months have the right number of days, today is the right day
of the week, months begin on the day after previous months end on, etc.
Reviewed By: aran
Reviewers: jungejason, tuomaspelkonen, aran
Commenters: cwbeck, jungejason
CC: blair, aran, epriestley, cwbeck, jungejason
Differential Revision: 791
2011-08-08 03:26:31 +02:00
|
|
|
}
|
2012-05-03 09:21:47 +02:00
|
|
|
|
|
|
|
.aphront-calendar-not-work-day {
|
|
|
|
background-color: #fdfae7;
|
|
|
|
}
|
2012-05-21 19:24:23 +02:00
|
|
|
|
|
|
|
.aphront-calendar-empty {
|
|
|
|
background-color: #ededed;
|
|
|
|
}
|
|
|
|
|
|
|
|
.aphront-calendar-event {
|
|
|
|
clear: both;
|
|
|
|
|
2012-12-09 02:00:02 +01:00
|
|
|
background: #006799;
|
2012-05-21 19:24:23 +02:00
|
|
|
font-size: 11px;
|
|
|
|
margin: 2px 0;
|
2012-12-09 02:00:02 +01:00
|
|
|
border-radius: 10px;
|
2012-05-21 19:24:23 +02:00
|
|
|
padding: 3px 5%;
|
|
|
|
width: 90%;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2012-12-09 02:00:02 +01:00
|
|
|
.aphront-calendar-event a {
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
2012-05-21 20:59:12 +02:00
|
|
|
.aphront-calendar-event-empty {
|
|
|
|
border-color: transparent;
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
2012-05-21 19:24:23 +02:00
|
|
|
.aphront-calendar-event-text {
|
2012-12-21 19:15:48 +01:00
|
|
|
color: #fff;
|
2012-05-21 19:24:23 +02:00
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.aphront-calendar-event-continues-before {
|
|
|
|
border-top-left-radius: 0px;
|
|
|
|
border-bottom-left-radius: 0px;
|
|
|
|
border-left-width: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.aphront-calendar-event-continues-after {
|
|
|
|
border-top-right-radius: 0px;
|
|
|
|
border-bottom-right-radius: 0px;
|
|
|
|
border-right-width: 0px;
|
|
|
|
}
|