From 7fb6994b0f2cdbce4430ea1fe466aedd7be9fe4e Mon Sep 17 00:00:00 2001
From: Menci
Date: Thu, 8 Nov 2018 00:13:32 +0800
Subject: [PATCH] Some UI adjustment
---
static/style.css | 36 ++++++++++++++++++---
views/admin_config.ejs | 2 +-
views/admin_info.ejs | 2 ++
views/admin_links.ejs | 2 +-
views/admin_other.ejs | 6 ++--
views/admin_privilege.ejs | 2 +-
views/admin_rating.ejs | 2 +-
views/admin_raw.ejs | 2 +-
views/admin_rejudge.ejs | 8 ++---
views/article.ejs | 8 +++--
views/article_edit.ejs | 3 ++
views/contest_edit.ejs | 2 +-
views/contest_ranklist.ejs | 9 ++++++
views/contests.ejs | 30 +++++++++++++-----
views/discussion.ejs | 23 ++++++++++++--
views/footer.ejs | 6 ++--
views/header.ejs | 11 ++++---
views/index.ejs | 20 ++++++------
views/login.ejs | 4 +--
views/page.ejs | 2 +-
views/problem.ejs | 4 +--
views/problem_data.ejs | 4 +--
views/problem_edit.ejs | 6 +++-
views/problem_import.ejs | 6 +++-
views/problem_manage.ejs | 8 +++--
views/problem_tag_edit.ejs | 6 +++-
views/problems.ejs | 17 ++++++++--
views/status_label.ejs | 4 +--
views/submission.ejs | 4 +--
views/submissions_item.ejs | 64 +++++++++++++++++++++++++++++++++-----
views/user_edit.ejs | 6 ++--
31 files changed, 231 insertions(+), 78 deletions(-)
diff --git a/static/style.css b/static/style.css
index f894d95..5f076c6 100644
--- a/static/style.css
+++ b/static/style.css
@@ -51,10 +51,6 @@ a.black-link:hover {
font-family: 'Fira Mono', 'Noto Sans CJK SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', monospace;
}
-.main.container {
- margin-top: 5.5em;
-}
-
.padding {
padding-left: 1em;
padding-right: 1em;
@@ -272,3 +268,35 @@ code {
animation: spinner-icon-rotate 3s linear infinite;
display: block;
}
+
+::-webkit-scrollbar {
+ -webkit-appearance: none;
+ width: 10px;
+ height: 10px;
+}
+
+::-webkit-scrollbar-track {
+ background: rgba(0, 0, 0, 0.1);
+ border-radius: 0px;
+}
+
+::-webkit-scrollbar-thumb {
+ cursor: pointer;
+ border-radius: 5px;
+ background: rgba(0, 0, 0, 0.25);
+ -webkit-transition: color 0.2s ease;
+ transition: color 0.2s ease;
+}
+
+::-webkit-scrollbar-thumb:window-inactive {
+ background: rgba(0, 0, 0, 0.15);
+}
+
+::-webkit-scrollbar-thumb:hover {
+ background: rgba(128, 135, 139, 0.8);
+}
+
+.ui.top.attached.block.header i.icon {
+ font-size: 1em;
+ vertical-align: initial;
+}
diff --git a/views/admin_config.ejs b/views/admin_config.ejs
index 826538c..2c30f6b 100644
--- a/views/admin_config.ejs
+++ b/views/admin_config.ejs
@@ -48,7 +48,7 @@ for (let item in items) {
}
%>
-
+
<% include admin_footer %>
diff --git a/views/admin_info.ejs b/views/admin_info.ejs
index 3dc90d5..9e0204c 100644
--- a/views/admin_info.ejs
+++ b/views/admin_info.ejs
@@ -17,6 +17,8 @@
}
.statistic .label {
+ padding-top: 15px;
+ font-size: 1.4em !important;
font-weight: normal !important;
}
diff --git a/views/admin_links.ejs b/views/admin_links.ejs
index 55f4bae..4fb8e51 100644
--- a/views/admin_links.ejs
+++ b/views/admin_links.ejs
@@ -54,7 +54,7 @@ this.adminPage = 'links';
- 添加
+
<% include admin_footer %>
diff --git a/views/admin_privilege.ejs b/views/admin_privilege.ejs
index e67f27c..6f47910 100644
--- a/views/admin_privilege.ejs
+++ b/views/admin_privilege.ejs
@@ -37,7 +37,7 @@ let privileges = {
-
+
-
+
注意:如果删除一个比赛的积分,则该比赛之上的所有比赛也将被删除,积分将还原至该比赛之前的状态!
diff --git a/views/admin_raw.ejs b/views/admin_raw.ejs
index 4ae461a..24b92e3 100644
--- a/views/admin_raw.ejs
+++ b/views/admin_raw.ejs
@@ -28,7 +28,7 @@ editor.getSession().on("change", function () {
-
+
<% include admin_footer %>
diff --git a/views/admin_rejudge.ejs b/views/admin_rejudge.ejs
index 10acd21..f300906 100644
--- a/views/admin_rejudge.ejs
+++ b/views/admin_rejudge.ejs
@@ -71,15 +71,15 @@
-
+
<% if (form.type === 'rejudge') { %>
-
+
<% } else if (count !== null) { %>
-
<% if (count === 0) { %>没有符合条件的记录<% } else { %>重测 <%= count %> 条记录<% } %>
+
<% if (count === 0) { %>没有符合条件的记录<% } else { %>重测 <%= count %> 条记录<% } %>
diff --git a/views/article.ejs b/views/article.ejs
index f76bd6d..92b955c 100644
--- a/views/article.ejs
+++ b/views/article.ejs
@@ -20,12 +20,12 @@
<%= article.title %>
- <%= article.user.username %><% if (article.user.nameplate) { %><%- article.user.nameplate %><% } %>
+ <%= article.user.username %><% if (article.user.nameplate) { %><%- article.user.nameplate %><% } %>
<%= syzoj.utils.formatDate(article.public_time) %>
<% if (article.public_time !== article.update_time) { %> <%= syzoj.utils.formatDate(article.update_time) %><% } %>
<% if (article.allowedEdit) { %>
- 编辑文章
- 删除文章
+ 编辑
+ 删除
diff --git a/views/article_edit.ejs b/views/article_edit.ejs
index feb4350..7c05ae8 100644
--- a/views/article_edit.ejs
+++ b/views/article_edit.ejs
@@ -15,6 +15,7 @@
+
<% if (user && user.is_admin) { %>
@@ -30,9 +31,11 @@
+
+
diff --git a/views/contest_edit.ejs b/views/contest_edit.ejs
index d79089f..4fefb6b 100644
--- a/views/contest_edit.ejs
+++ b/views/contest_edit.ejs
@@ -77,7 +77,7 @@
-
+
+
+
-
+
diff --git a/views/index.ejs b/views/index.ejs
index 0a7ca8a..e31aa09 100644
--- a/views/index.ejs
+++ b/views/index.ejs
@@ -3,7 +3,7 @@
-
+
-
+
@@ -76,7 +76,7 @@
-
+
<% include footer %>
diff --git a/views/problem_tag_edit.ejs b/views/problem_tag_edit.ejs
index 2b3ae19..326f760 100644
--- a/views/problem_tag_edit.ejs
+++ b/views/problem_tag_edit.ejs
@@ -60,7 +60,11 @@
-
+
+
+
+<% if (active === 'submission') { %>
+
+<% } %>
diff --git a/views/user_edit.ejs b/views/user_edit.ejs
index 1023076..0bb59e1 100644
--- a/views/user_edit.ejs
+++ b/views/user_edit.ejs
@@ -70,9 +70,9 @@
-
diff --git a/views/header.ejs b/views/header.ejs
index edaa5ae..5b609dd 100644
--- a/views/header.ejs
+++ b/views/header.ejs
@@ -1,17 +1,17 @@
<% include util %>
-
+