From 07460d6121a71bd16c120ca248eb97a82b127706 Mon Sep 17 00:00:00 2001 From: Menci Date: Sun, 27 Nov 2016 19:57:42 +0800 Subject: [PATCH] Optimize UI --- static/style.css | 32 ++++++++++++++++++++++++++------ views/edit_user.ejs | 1 + views/header.ejs | 5 ++--- views/judge_detail.ejs | 11 ++++++++--- views/login.ejs | 24 ++++++++++++------------ views/ranklist.ejs | 5 +++-- views/user.ejs | 22 ++++++++++++++++++++-- 7 files changed, 72 insertions(+), 28 deletions(-) diff --git a/static/style.css b/static/style.css index 0501eb7..aea2f3d 100644 --- a/static/style.css +++ b/static/style.css @@ -27,27 +27,47 @@ th { /* status color */ -.status.accepted { +/* +.accordion .status_detail { + transition: color .1s ease; +} +*/ + +:not(.status_detail).status.accepted, +.title:hover .status_detail.status.accepted, +.title.active .status_detail.status.accepted { color: forestgreen; } -.status.wrong_answer { +:not(.status_detail).status.wrong_answer, +.title:hover .status_detail.status.wrong_answer, +.title.active .status_detail.status.wrong_answer { color: red; } -.status.runtime_error { +:not(.status_detail).status.runtime_error, +.title:hover .status_detail.status.runtime_error, +.title.active .status_detail.status.runtime_error { color: darkorchid; } -.status.memory_limit_exceed, .status.time_limit_exceed, .status.output_limit_exceed { +:not(.status_detail).status.memory_limit_exceed, +.title:hover .status_detail.status.memory_limit_exceed, +.title.active .status_detail.status.memory_limit_exceed, +:not(.status_detail).status.time_limit_exceed, +.title:hover .status_detail.status.time_limit_exceed, +.title.active .status_detail.status.time_limit_exceed, +:not(.status_detail).status.output_limit_exceed, +.title:hover .status_detail.status.output_limit_exceed, +.title.active .status_detail.status.output_limit_exceed { color: sandybrown; } -.status.waiting, .status.system_error { +:not(.status_detail).status.waiting, :not(.status_detail).status.system_error { color: grey; } -.status.compile_error { +:not(.status_detail).status.compile_error { color: rgb(0, 68, 136); } diff --git a/views/edit_user.ejs b/views/edit_user.ejs index b45fff8..27c1c78 100644 --- a/views/edit_user.ejs +++ b/views/edit_user.ejs @@ -38,6 +38,7 @@ + 返回个人资料 diff --git a/views/header.ejs b/views/header.ejs index c8b3f84..9fbf11f 100644 --- a/views/header.ejs +++ b/views/header.ejs @@ -22,11 +22,10 @@ 讨论