From 6d7f648384b48313c70dfd703146269c73af87e8 Mon Sep 17 00:00:00 2001 From: Andrej Karpathy Date: Sun, 28 Nov 2021 08:23:51 -0800 Subject: [PATCH] visually distinguish the special 'all' tag --- static/paper_list.js | 3 ++- static/style.css | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/static/paper_list.js b/static/paper_list.js index 30458f5..61c8504 100644 --- a/static/paper_list.js +++ b/static/paper_list.js @@ -65,8 +65,9 @@ const PaperList = props => { const Tag = props => { const t = props.tag; const turl = "/?rank=tags&tags=" + t.name; + const tag_class = 'rel_utag' + (t.name === 'all' ? ' rel_utag_all' : ''); return ( -
+
{t.n} {t.name} diff --git a/static/style.css b/static/style.css index b9d0658..e4cc133 100644 --- a/static/style.css +++ b/static/style.css @@ -99,6 +99,9 @@ body { border-radius: 4px; cursor: pointer; } +.rel_utag_all { /* distinguishes the special 'all' tag from others */ + background-color: #909; +} .rel_utag_add { /* adds a paper to a tag */ background-color: #55f; margin-right: 2px;