1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-26 23:40:57 +01:00
phorge-phorge/webroot/rsrc/css/phui/calendar/phui-calendar-month.css
lkassianik f087d7c08a Add week numbers to Calendar month view.
Summary: Closes T8184, Add week numbers to Calendar month view.

Test Plan: Calendar month view should now show week numbers, incrementing on Mondays, regardless of week start day.

Reviewers: chad, #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T8184

Differential Revision: https://secure.phabricator.com/D12886
2015-05-17 12:31:26 -07:00

228 lines
4.3 KiB
CSS

/**
* @provides phui-calendar-month-css
*/
.phui-calendar-view {
width: 100%;
border-collapse: collapse;
background: #fff;
}
tr.phui-calendar-day-of-week-header th {
text-align: center;
font-size: 13px;
padding: 3px;
color: {$lightbluetext};
background: {$lightgreybackground};
}
tr.phui-calendar-day-of-week-header th.weekend-day-header {
background: {$greybackground};
}
.device tr.phui-calendar-day-of-week-header th .long-weekday-name {
display: none;
}
tr.phui-calendar-day-of-week-header th .short-weekday-name {
display: none;
}
.device tr.phui-calendar-day-of-week-header th .short-weekday-name {
display: inline;
}
table.phui-calendar-view td {
border: solid #dfdfdf;
border-width: 1px 1px 0 1px;
width: 14.2857%; /* This is one seventh, approximately. */
}
.phui-calendar-month-cell-div {
position: relative;
}
.phui-calendar-month-event-list .phui-calendar-month-cell-div {
min-height: 125px;
}
.device .phui-calendar-month-event-list .phui-calendar-month-cell-div {
min-height: 32px;
}
a.phui-calendar-month-secret-link {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
outline: 0;
}
table.phui-calendar-view tr td:first-child {
border-left-width: 0px;
}
.device table.phui-calendar-view .phui-calendar-event-list {
display: none;
}
.phui-calendar-month-event-count {
display: none;
}
.device .phui-calendar-month-event-count {
display: block;
text-align: center;
padding-top: 8px;
}
.phui-calendar-month-event-count .phui-calendar-month-count-badge {
border: 1px solid {$lightgreyborder};
color: {$lightgreytext};
width: 20px;
height: 20px;
border-radius: 50%;
text-align: center;
vertical-align: middle;
padding: 4px 2px 0px 2px;
margin: 0 auto;
}
.phui-calendar-month-count-badge.viewer-invited-day-badge {
border-color: {$green};
color: {$green};
}
table.phui-calendar-view a.phui-calendar-week-number {
color: {$lightgreyborder};
padding: 4px;
display: inline-block;
min-width: 16px;
text-align: center;
float: left;
}
table.phui-calendar-view a.phui-calendar-date-number {
color: {$lightgreytext};
padding: 4px;
display: inline-block;
min-width: 16px;
text-align: center;
}
table.phui-calendar-view td.phui-calendar-date-number-container {
font-weight: normal;
color: {$lightgreytext};
border-width: 0 1px 0 1px;
text-align: right;
}
.phui-calendar-today-slot {
display: block;
height: 4px;
position: absolute;
left: 0;
right: -1px;
bottom: 0;
}
.phui-calendar-today-slot.last-weekday {
right: 0px;
}
.phui-calendar-today-slot.phui-calendar-this-week {
background-color: {$blueborder};
}
.phui-calendar-today-slot.phui-calendar-today {
background-color: {$lightblueborder};
}
.phui-calendar-event-empty {
border-color: transparent;
background: transparent;
}
.phui-calendar-view .phui-calendar-list {
padding: 1px;
}
.phui-calendar-list-item.all-day span {
padding: 0;
margin: 0;
}
.phui-calendar-view .phui-calendar-list li.phui-calendar-list-item.all-day {
margin: 0;
padding: 4px 4px 0px 4px;
background-color: {$darkgreybackground};
display: block;
float: none;
}
.phui-calendar-view
.phui-calendar-list
li.phui-calendar-viewer-invited.all-day {
background-color: {$lightgreen};
}
li.phui-calendar-list-item.all-day:first-child {
margin-top: 0;
}
.phui-calendar-view .phui-calendar-list li {
margin: 0 8px;
}
.phui-calendar-view .phui-calendar-list li:first-child {
margin-top: 8px;
}
.phui-calendar-view .phui-calendar-list-dot {
width: 3px;
height: 3px;
margin-right: 4px;
border-radius: 10px;
position: absolute;
top: 5px;
left: 0;
}
.phui-calendar-view .phui-calendar-list-title {
width: auto;
white-space: normal;
word-break: break-word;
}
li.phui-calendar-list-item .phui-calendar-list-title a {
text-align: left;
padding-left: 8px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
li.phui-calendar-list-item.all-day .phui-calendar-list-title a{
color: {$greytext};
}
li.phui-calendar-viewer-invited.all-day .phui-calendar-list-title a{
color: {$green};
}
.phui-calendar-view li.phui-calendar-list-item .phui-calendar-list-time {
position: absolute;
width: 60px;
right: 0;
top: 1px;
color: {$lightgreytext};
text-align: right;
}
.phui-calendar-view
li.phui-calendar-list-item.all-day
.phui-calendar-list-time {
top: 4px;
right: 8px;
}