From 72c3e48f1bceef2feb5355558a761a08954221d6 Mon Sep 17 00:00:00 2001 From: undefined Date: Tue, 18 Oct 2022 17:35:30 +0800 Subject: [PATCH] ui: contest-problem: update style --- .../components/contest/contest.page.styl | 14 ++--------- .../partials/problem_sidebar_contest.html | 13 ----------- .../ui-default/templates/problem_detail.html | 23 ++++++++++++++++--- 3 files changed, 22 insertions(+), 28 deletions(-) diff --git a/packages/ui-default/components/contest/contest.page.styl b/packages/ui-default/components/contest/contest.page.styl index fd15ba7c8..5d8b4e8d8 100644 --- a/packages/ui-default/components/contest/contest.page.styl +++ b/packages/ui-default/components/contest/contest.page.styl @@ -54,9 +54,8 @@ for key, value in $contest-color row-gap: 0.75rem; column-gap: 0.5rem; padding-bottom: 0.5rem; - margin-top: 1rem; - margin-bottom: 0.5rem; - + width: rem(180px); + > a text-decoration: none; background-color: transparent; @@ -103,12 +102,3 @@ for key, value in $contest-color &:hover .icon display: none; - - // .placeholder - // cursor: pointer; - // position: absolute; - // top: -0.375rem; - // right: -0.375rem; - // bottom: -0.375rem; - // left: -0.375rem; - diff --git a/packages/ui-default/templates/partials/problem_sidebar_contest.html b/packages/ui-default/templates/partials/problem_sidebar_contest.html index 318503f10..ede7bc762 100644 --- a/packages/ui-default/templates/partials/problem_sidebar_contest.html +++ b/packages/ui-default/templates/partials/problem_sidebar_contest.html @@ -6,19 +6,6 @@ {% endif %}
-
- {% for pid in tdoc.pids -%} - {% set status = tsdoc.detail[pid].status %} - {% set pass = status == STATUS.STATUS_ACCEPTED %} - {% set fail = status and not pass %} - - {{ String.fromCharCode(65+loop.index0) }} - {% if status %}{% endif %} - - {%- endfor %} -