beautify the ui
This commit is contained in:
parent
e6fb05a6c8
commit
426bed8b00
2 changed files with 18 additions and 5 deletions
|
@ -9,6 +9,14 @@
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
|
.info-contest:first-child {
|
||||||
|
margin-right: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-contest:nth-child(2) {
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.info-contest {
|
.info-contest {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
|
|
||||||
{% block two_col_media %}
|
{% block two_col_media %}
|
||||||
<style>
|
<style>
|
||||||
|
.non-padding-top {
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.content-description ul {
|
.content-description ul {
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
}
|
}
|
||||||
|
@ -112,7 +116,8 @@
|
||||||
<a href="{{ url('contest_view', contest.key) }}" class="contest-list-title" style="margin-right: 5px;">
|
<a href="{{ url('contest_view', contest.key) }}" class="contest-list-title" style="margin-right: 5px;">
|
||||||
{{- contest.name -}}
|
{{- contest.name -}}
|
||||||
</a>
|
</a>
|
||||||
<span class="contest-tags">
|
<br>
|
||||||
|
<div class="contest-tags" style="margin-top: 5px;">
|
||||||
{% if not contest.is_visible %}
|
{% if not contest.is_visible %}
|
||||||
<span class="contest-tag contest-tag-hidden">
|
<span class="contest-tag contest-tag-hidden">
|
||||||
<i class="fa fa-eye-slash"></i> {{ _('hidden') }}
|
<i class="fa fa-eye-slash"></i> {{ _('hidden') }}
|
||||||
|
@ -155,12 +160,12 @@
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</span>
|
</div>
|
||||||
{% endspaceless %}
|
{% endspaceless %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro time_left(contest) %}
|
{% macro time_left(contest, padding_top = true) %}
|
||||||
<div class="time time-left">
|
<div class="time time-left {{ 'non-padding-top' if padding_top == false }}">
|
||||||
{% if contest.time_limit %}
|
{% if contest.time_limit %}
|
||||||
{{ contest.start_time|date(_("M j, Y, G:i")) }} -
|
{{ contest.start_time|date(_("M j, Y, G:i")) }} -
|
||||||
{{ contest.end_time|date(_("M j, Y, G:i")) }}
|
{{ contest.end_time|date(_("M j, Y, G:i")) }}
|
||||||
|
@ -382,7 +387,7 @@
|
||||||
<div class="info-contest" style="flex: 1.5">
|
<div class="info-contest" style="flex: 1.5">
|
||||||
<div class="contest-title">Thời gian:</div>
|
<div class="contest-title">Thời gian:</div>
|
||||||
<div class="contest-block">
|
<div class="contest-block">
|
||||||
{{ time_left(contest) }}
|
{{ time_left(contest, false) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="info-contest">
|
<div class="info-contest">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue