Project

General

Profile

Patch #41509 » calendar-day_css_classes.patch

Go MAEDA, 2024-10-20 01:24

View differences:

app/assets/stylesheets/application.css
.cal .calbody p.day-num {font-size: 1.1em; text-align:right;}
.cal .calbody .abbr-day {display:none}
.cal .calbody.odd p.day-num {color: #bbb;}
.cal .calbody.this-month {background-color:#fff;}
.cal .calbody.other-month {background-color:#f6f7f8;}
.cal .calbody.other-month p.day-num {color: #bbb;}
.cal .calbody.today {background:#ffd;}
.cal .calbody.today p.day-num {font-weight: bold;}
.cal .calbody .icon {padding-top: 2px; padding-bottom: 3px;}
.cal .calbody.nwday:not(.odd) {background-color:#f1f1f1;}
.cal .calbody.nwday:not(.other-month) {background-color:#f1f1f1;}
p.cal.legend span {display:flex;}
.controller-calendars p.buttons {margin-top: unset;}
lib/redmine/helpers/calendar.rb
end
def day_css_classes(day)
css = day.month==month ? +'even' : +'odd'
css = day.month==month ? +'this-month' : +'other-month'
css << " today" if User.current.today == day
css << " nwday" if non_working_week_days.include?(day.cwday)
css
(1-1/2)