Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1911074

Browse files
authored
fully handle css for active/package_only labels (python#1689)
handle the css class on the same tag to avoid conflicts
1 parent5d082f2 commit1911074

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

‎static/sass/style.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3628,9 +3628,9 @@ span.highlighted {
36283628
text-align: center; }
36293629
#sponsorship_application_containerform {
36303630
margin-bottom:0; }
3631-
#sponsorship_application_containerform{
3632-
.package_only_label {color:#666666; }
3633-
.active {color:#3776ab; } }
3631+
#sponsorship_application_containerform.package_only {color:#666666; }
3632+
#sponsorship_application_containerform .package_only.active {color:#3776ab; }
3633+
#sponsorship_application_containerform .active {color:#3776ab; }
36343634
#sponsorship_application_container#package_selection {
36353635
display: inline-block; }
36363636
#sponsorship_application_container#package_selectionli {

‎static/sass/style.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2407,9 +2407,12 @@ span.highlighted {
24072407
form {
24082408
margin-bottom:0;
24092409

2410-
.package_only_label {
2410+
.package_only {
24112411
color:$grey;
24122412
}
2413+
.package_only.active {
2414+
color:$blue;
2415+
}
24132416
.active {
24142417
color:$blue;
24152418
}

‎templates/sponsors/sponsorship_benefits_form.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ <h3 class="title">{{ field.label }}</h3>
5353
<ulid="id_{{ field.name }}">
5454
{% for benefit in field.field.queryset %}
5555
<liclass="{% cycle '' 'highlight' %}">
56-
<labelfor="id_{{field.name}}_{{ forloop.counter0 }}"benefit_id="{{ benefit.id }}">
56+
<labelfor="id_{{field.name}}_{{ forloop.counter0 }}"{%ifbenefit.package_only%}class='package_only'{%endif%}benefit_id="{{ benefit.id }}">
5757
<inputid="id_{{field.name}}_{{ forloop.counter0 }}"name="{{ field.name }}"type="checkbox"value="{{ benefit.id }}"{%ifbenefit.unavailability_message%}disabled{%endif%}{%ifbenefit.idinfield.initial%}checked{%endif%}{%ifbenefit.package_only%}package_only='true'{%endif%}>
58-
<span{%ifbenefit.package_only%}class='package_only_label'{%endif%}>{{ benefit.name }}</span>
58+
<span>{{ benefit.name }}</span>
5959
{% if benefit.description %}<iclass="fa fa-info"title="{{ benefit.description }}"></i>{% endif %}
6060
{% if benefit.package_only %}<iclass="fa fa-cubes"title="{{ benefit_model.PACKAGE_ONLY_MESSAGE }}"></i>{% endif %}
6161
{% if not benefit.has_capacity %}<iclass="fa fa-close"title="{{ benefit_model.NO_CAPACITY_MESSAGE }}"></i>{% endif %}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp