Patch #41509 » calendar-day_css_classes.patch
app/assets/stylesheets/application.css | ||
---|---|---|
1245 | 1245 | |
1246 | 1246 |
.cal .calbody p.day-num {font-size: 1.1em; text-align:right;} |
1247 | 1247 |
.cal .calbody .abbr-day {display:none} |
1248 |
.cal .calbody.odd p.day-num {color: #bbb;} |
|
1248 |
.cal .calbody.this-month {background-color:#fff;} |
|
1249 |
.cal .calbody.other-month {background-color:#f6f7f8;} |
|
1250 |
.cal .calbody.other-month p.day-num {color: #bbb;} |
|
1249 | 1251 |
.cal .calbody.today {background:#ffd;} |
1250 | 1252 |
.cal .calbody.today p.day-num {font-weight: bold;} |
1251 | 1253 | |
1252 | 1254 |
.cal .calbody .icon {padding-top: 2px; padding-bottom: 3px;} |
1253 |
.cal .calbody.nwday:not(.odd) {background-color:#f1f1f1;}
|
|
1255 |
.cal .calbody.nwday:not(.other-month) {background-color:#f1f1f1;}
|
|
1254 | 1256 | |
1255 | 1257 |
p.cal.legend span {display:flex;} |
1256 | 1258 |
.controller-calendars p.buttons {margin-top: unset;} |
lib/redmine/helpers/calendar.rb | ||
---|---|---|
57 | 57 |
end |
58 | 58 | |
59 | 59 |
def day_css_classes(day) |
60 |
css = day.month==month ? +'even' : +'odd'
|
|
60 |
css = day.month==month ? +'this-month' : +'other-month'
|
|
61 | 61 |
css << " today" if User.current.today == day |
62 | 62 |
css << " nwday" if non_working_week_days.include?(day.cwday) |
63 | 63 |
css |