Skip to content

Commit

Permalink
Use CSS class for inline i-button styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiefMaster committed Sep 24, 2019
1 parent b006856 commit 81c5646
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 4 additions & 8 deletions indico/modules/events/management/templates/program_codes.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ <h3>
<dd>
{% if templates.session_template %}
<code>{{ templates.session_template }}</code>
<button class="icon-play i-button i-button-small text-color borderless"
style="padding: 0;"
<button class="icon-play i-button i-button-small text-color borderless inline"
title="{% trans %}Assign programme codes to sessions{% endtrans %}"
data-href="{{ url_for('.assign_program_codes_sessions', event) }}"
data-title="{% trans %}Assign programme codes{% endtrans %}"
Expand All @@ -37,8 +36,7 @@ <h3>
<dd>
{% if templates.session_block_template %}
<code>{{ templates.session_block_template }}</code>
<button class="icon-play i-button i-button-small text-color borderless"
style="padding: 0;"
<button class="icon-play i-button i-button-small text-color borderless inline"
title="{% trans %}Assign programme codes to session blocks{% endtrans %}"
data-href="{{ url_for('.assign_program_codes_session_blocks', event) }}"
data-title="{% trans %}Assign programme codes{% endtrans %}"
Expand All @@ -50,8 +48,7 @@ <h3>
<dd>
{% if templates.contribution_template %}
<code>{{ templates.contribution_template }}</code>
<button class="icon-play i-button i-button-small text-color borderless"
style="padding: 0;"
<button class="icon-play i-button i-button-small text-color borderless inline"
title="{% trans %}Assign programme codes to contributions{% endtrans %}"
data-href="{{ url_for('.assign_program_codes_contributions', event) }}"
data-title="{% trans %}Assign programme codes{% endtrans %}"
Expand All @@ -64,8 +61,7 @@ <h3>
<dd>
{% if templates.subcontribution_template %}
<code>{{ templates.subcontribution_template }}</code>
<button class="icon-play i-button i-button-small text-color borderless"
style="padding: 0;"
<button class="icon-play i-button i-button-small text-color borderless inline"
title="{% trans %}Assign programme codes to subcontributions{% endtrans %}"
data-href="{{ url_for('.assign_program_codes_subcontributions', event) }}"
data-title="{% trans %}Assign programme codes{% endtrans %}"
Expand Down
4 changes: 4 additions & 0 deletions indico/web/client/styles/partials/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ button::-moz-focus-inner {
padding: 9px;
}

.i-button.inline {
padding: 0;
}

.i-button.right {
margin-left: 5px;
margin-top: 5px;
Expand Down

0 comments on commit 81c5646

Please sign in to comment.