Skip to content

Commit c9394ae

Browse files
committed
Make the selection more obvious in the meeting schedule editor
- Legacy-Id: 17887
1 parent 65e5245 commit c9394ae

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

ietf/meeting/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@ def cubehelix(i, total, hue=1.2, start_angle=0.5):
607607
for i, p in enumerate(session_parents):
608608
rgb_color = cubehelix(i, len(session_parents))
609609
p.scheduling_color = "rgb({}, {}, {})".format(*tuple(int(round(x * 255)) for x in rgb_color))
610+
p.light_scheduling_color = "rgb({}, {}, {})".format(*tuple(int(round((0.9 + 0.1 * x) * 255)) for x in rgb_color))
610611

611612
# dig out historic AD names
612613
ad_names = {}

ietf/static/ietf/css/ietf.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,8 +1108,8 @@ a.fc-event, .fc-event, .fc-content, .fc-title, .fc-event-container {
11081108
cursor: pointer;
11091109
}
11101110

1111-
.edit-meeting-schedule .session.selected {
1112-
background-color: #fcfcfc;
1111+
.edit-meeting-schedule .session.selected .session-label {
1112+
font-weight: bold;
11131113
}
11141114

11151115
.edit-meeting-schedule .session.dragging {

ietf/templates/meeting/edit_meeting_schedule.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
{% load ietf_filters %}
66

77
{% block morecss %}
8+
{# set the group colors with CSS here #}
89
{% for parent in session_parents %}
9-
.parent-{{ parent.acronym }} {
10-
background: linear-gradient(to right, {{ parent.scheduling_color }} 0.4em, transparent 0.5em);
11-
}
10+
.parent-{{ parent.acronym }} { background: linear-gradient(to right, {{ parent.scheduling_color }} 0.4em, transparent 0.5em); }
11+
.parent-{{ parent.acronym }}.selected { background-color: {{ parent.light_scheduling_color }}; }
1212
{% endfor %}
1313
{% endblock morecss %}
1414

0 commit comments

Comments
 (0)