From 30417e1cde7b4468a6838b6693c61e501136a5be Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Wed, 9 Nov 2022 14:41:08 -0600 Subject: [PATCH] Change style of user table --- resources/base.scss | 4 ++++ resources/blog.scss | 1 + resources/users.scss | 1 - templates/contest/ranking-css.html | 1 + templates/organization/users.html | 4 ++-- templates/user/base-users-table.html | 2 +- templates/user/list.html | 1 - templates/user/users-table.html | 31 +++++++++++++++------------- 8 files changed, 26 insertions(+), 19 deletions(-) diff --git a/resources/base.scss b/resources/base.scss index 38ba814..3ebe3da 100644 --- a/resources/base.scss +++ b/resources/base.scss @@ -35,6 +35,10 @@ img { // height: auto } +* { + -webkit-tap-highlight-color: transparent; +} + .full { width: 100% !important; } diff --git a/resources/blog.scss b/resources/blog.scss index aa5e0ab..4883eff 100644 --- a/resources/blog.scss +++ b/resources/blog.scss @@ -220,6 +220,7 @@ } } + @media (max-width: 799px) { .left-sidebar-header { display: none; diff --git a/resources/users.scss b/resources/users.scss index 2eecaa8..c69ef9e 100644 --- a/resources/users.scss +++ b/resources/users.scss @@ -22,7 +22,6 @@ } td.user-name { - padding-left: 2em; text-align: left; } diff --git a/templates/contest/ranking-css.html b/templates/contest/ranking-css.html index a0a10d6..43215f0 100644 --- a/templates/contest/ranking-css.html +++ b/templates/contest/ranking-css.html @@ -98,6 +98,7 @@ .user-name { position: relative; + padding-left: 2em !important; } .organization-column { diff --git a/templates/organization/users.html b/templates/organization/users.html index 4670254..8cd5863 100644 --- a/templates/organization/users.html +++ b/templates/organization/users.html @@ -6,7 +6,7 @@ padding: 3px 12px; } #users-table td:nth-child(3), #users-table th:nth-child(3) { - border-right: none; + text-align: left; } #users-table td:nth-child(2), #users-table th:nth-child(2) { border-right: none; @@ -21,7 +21,7 @@ {% if can_edit %} - diff --git a/templates/user/base-users-table.html b/templates/user/base-users-table.html index 35c51d0..9d7baba 100644 --- a/templates/user/base-users-table.html +++ b/templates/user/base-users-table.html @@ -2,7 +2,7 @@ {{ rank_header or _("Rank") }} {% block after_rank_head %}{% endblock %} - {{ _('Username') }} + {{ _('Username') }}{% block username_head_extra %}{% endblock %} {% block before_point_head %}{% endblock %} diff --git a/templates/user/list.html b/templates/user/list.html index 8cc7349..d6742a8 100644 --- a/templates/user/list.html +++ b/templates/user/list.html @@ -3,7 +3,6 @@ {% block users_media %}