Skip to content

Commit 36d4710

Browse files
committed
Fix styling of next states in workflow customization, replace "+" with
"+ customize" - Legacy-Id: 6142
1 parent 8657e4f commit 36d4710

1 file changed

Lines changed: 19 additions & 39 deletions

File tree

ietf/templates/wginfo/customize_workflow.html

Lines changed: 19 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,25 @@
55
{% block morecss %}
66
{{ block.super }}
77
.state-table .inactive,
8-
.tag-table .inactive {
9-
font-style: italic;
8+
.tag-table .inactive { font-style: italic; color: #666; }
9+
.state-table .state { margin-bottom: 0.1em; }
10+
.state-table .set-next-states label { display: block; cursor: pointer; }
11+
.state-table .set-next-states label input { vertical-align: middle; }
12+
.state-table .set-state input, .set-tag input { width: 6em; }
13+
.state-table .toggled { display: none; }
14+
.state-table .toggler {
1015
color: #666;
11-
}
12-
.state-table .state {
13-
padding-right: 0.6em;
14-
}
15-
.set-next-states {
16-
margin-top: 1em;
17-
}
18-
.set-next-states label {
19-
display: block;
20-
cursor: pointer;
21-
}
22-
.set-next-states label input {
23-
vertical-align: middle;
24-
}
25-
.set-state input, .set-tag input {
26-
width: 6em;
27-
}
28-
.toggled {
29-
display: none;
30-
}
31-
.toggler {
32-
color: #000;
16+
background: #ddd;
17+
font-weight: bold;
3318
text-decoration: none;
34-
padding: 0px 3px;
19+
padding: 1px 3px;
3520
display: inline-block;
3621
margin-left: 0.5em;
37-
font-size: 15px;
38-
font-weight: bold;
39-
}
40-
.inactive .toggler {
41-
color: #666;
42-
}
43-
.toggler:hover {
44-
background-color: #999;
45-
color: #fff;
22+
margin-top: 0.5em;
23+
margin-bottom: 0.5em;
4624
}
25+
.state-table .inactive .toggler { color: #aaa; background: #eee; }
26+
.state-table .toggler:hover { background-color: #999; color: #fff; }
4727
{% endblock %}
4828

4929
{% block content %}
@@ -95,11 +75,11 @@ <h3>States</h3>
9575
<td>
9676
<div>
9777
{% if state.used_next_states %}
98-
{% for n in state.used_next_states %}<span class="state">{{ n.name }}</span>{% if not forloop.last %} {% endif %}{% endfor %}
78+
{% for n in state.used_next_states %}<div class="state">{{ n.name }}</div>{% endfor %}
9979
{% else %}
100-
<i>None</i>
80+
<div><i>None</i></div>
10181
{% endif %}
102-
<a class="toggler" title="Click to set next states for state" href="">+</a>
82+
<a class="toggler" title="Click to set next states for state" href="">+ customize</a>
10383
</div>
10484
<form class="toggled set-next-states" method="post" action="">
10585
Select the next states:
@@ -153,11 +133,11 @@ <h3>Tags</h3>
153133
var toggler = jQuery(this),
154134
toggled = toggler.parent().siblings(".toggled");
155135
if (toggled.is(":hidden")) {
156-
toggler.html("&ndash;");
136+
toggler.html("&ndash; customize");
157137
toggled.slideDown(300);
158138
}
159139
else {
160-
toggler.html("+");
140+
toggler.html("+ customize");
161141
toggled.slideUp(300);
162142
}
163143
});

0 commit comments

Comments
 (0)