Final of final

This commit is contained in:
Le Van Duc 2023-11-24 10:13:49 +07:00
parent 4f042548cf
commit 2b453308b3
4 changed files with 48 additions and 73 deletions

View file

@ -437,7 +437,7 @@ ul.problem-list {
margin-right: auto; margin-right: auto;
} }
@media screen and (min-width: 11000px) { @media screen and (min-width: 1100px) {
.d-flex-problem { .d-flex-problem {
display: -webkit-box; display: -webkit-box;
display: -ms-flexbox; display: -ms-flexbox;

View file

@ -5,7 +5,6 @@ $background_gray: #ededed;
$background_light_gray: #fafafa; $background_light_gray: #fafafa;
$announcement_red: #ae0000; $announcement_red: #ae0000;
$theme_color: #9c3706; $theme_color: #9c3706;
$sucess: #28a745;
$base_font_size: 14px; $base_font_size: 14px;
$widget_border_radius: 0.5em; $widget_border_radius: 0.5em;

View file

@ -78,10 +78,10 @@
} }
&.btn-green { &.btn-green {
background: green; background: #28a745;
&:hover { &:hover {
background: #2c974b; background: green;
} }
} }
@ -806,13 +806,6 @@ a {
transition: .3s all ease; transition: .3s all ease;
} }
a:hover, a:focus {
text-decoration: none !important;
outline: none !important;
-webkit-box-shadow: none;
box-shadow: none;
}
button { button {
-webkit-transition: .3s all ease; -webkit-transition: .3s all ease;
-o-transition: .3s all ease; -o-transition: .3s all ease;
@ -843,63 +836,46 @@ button:hover, button:focus {
-webkit-transition: all 0.3s ease; -webkit-transition: all 0.3s ease;
-ms-transition: all 0.3s ease; -ms-transition: all 0.3s ease;
transition: all 0.3s ease; transition: all 0.3s ease;
} span {
margin-left: -20px;
.btn span { -moz-transition: all 0.3s ease;
margin-left: -20px; -o-transition: all 0.3s ease;
-moz-transition: all 0.3s ease; -webkit-transition: all 0.3s ease;
-o-transition: all 0.3s ease; -ms-transition: all 0.3s ease;
-webkit-transition: all 0.3s ease; transition: all 0.3s ease;
-ms-transition: all 0.3s ease; }
transition: all 0.3s ease; .icon {
} position: absolute;
top: 0;
.btn:hover, .btn:active, .btn:focus { right: 0;
outline: none !important; width: 45px;
} bottom: 0;
background: #fff;
.btn:hover span, .btn:active span, .btn:focus span { i {
margin-left: -10px; font-size: 20px;
} }
}
.btn .icon { .icon.icon-round {
position: absolute; border-radius: 50%;
top: 0; }
right: 0; &.btn-round {
width: 45px; border-radius: 40px;
bottom: 0; }
background: #fff; &:hover, &:active, &:focus {
} outline: none;
span {
.btn .icon i { margin-left: -10px;
font-size: 20px; }
} }
&.btn-primary {
.btn .icon.icon-round { color: #fff;
border-radius: 50%; .icon i {
} color: #28a745;
}
.btn.btn-primary { }
color: #fff; &.btn-disabled {
background: $sucess; color: #fff;
border-color: $sucess; background: gray;
} border-color: gray;
}
.btn.btn-disabled { }
color: #fff;
background: gray;
border-color: gray;
}
.btn.btn-primary:hover, .btn.btn-primary:focus {
border-color: green;
background: green;
}
.btn.btn-primary .icon i {
color: $sucess;
}
.btn.btn-round {
border-radius: 40px;
}

View file

@ -143,7 +143,7 @@
{% block info_float %} {% block info_float %}
{% if request.user.is_authenticated and request.in_contest_mode and submission_limit %} {% if request.user.is_authenticated and request.in_contest_mode and submission_limit %}
{% if submissions_left > 0 %} {% if submissions_left > 0 %}
<button onclick="redirectTo('{{ url('problem_submit', problem.code) }}')" class="btn btn-primary btn-block btn-round"> <button onclick="redirectTo('{{ url('problem_submit', problem.code) }}')" class="btn-green btn btn-primary btn-block btn-round">
<span>{{ _('Submit') }}</span> <span>{{ _('Submit') }}</span>
<div class="icon icon-round d-flex align-items-center justify-content-center"> <div class="icon icon-round d-flex align-items-center justify-content-center">
<i class="fa fa-send"></i> <i class="fa fa-send"></i>
@ -166,7 +166,7 @@
<div class="no-submissions-left submissions-left">{{ _('0 submissions left') }}</div> <div class="no-submissions-left submissions-left">{{ _('0 submissions left') }}</div>
{% endif %} {% endif %}
{% else %} {% else %}
<button onclick="redirectTo('{{ url('problem_submit', problem.code) }}')" class="btn btn-primary btn-block btn-round"> <button onclick="redirectTo('{{ url('problem_submit', problem.code) }}')" class="btn-green btn btn-primary btn-block btn-round">
<span>{{ _('Submit') }}</span> <span>{{ _('Submit') }}</span>
<div class="icon icon-round d-flex align-items-center justify-content-center"> <div class="icon icon-round d-flex align-items-center justify-content-center">
<i class="fa fa-send"></i> <i class="fa fa-send"></i>