From 357ff5e776d681422f95e86635243a78abf7a90f Mon Sep 17 00:00:00 2001 From: Jack Date: Wed, 24 Jun 2020 00:55:15 +0100 Subject: [PATCH] changed the result list to include icons added the ability to edit result tags made sure tag filters save when refreshed --- public/css/style.scss | 65 ++++++++++++++++++ public/index.html | 34 ++++----- public/js/account.js | 156 +++++++++++++++++++++++++++++++++++++++++- public/js/script.js | 2 +- 4 files changed, 232 insertions(+), 25 deletions(-) diff --git a/public/css/style.scss b/public/css/style.scss index 4cd28f2ed..c0afba9b4 100644 --- a/public/css/style.scss +++ b/public/css/style.scss @@ -148,6 +148,60 @@ a:hover { } +#resultEditTagsPanelWrapper{ + width: 100%; + height: 100%; + background: rgba(0, 0, 0, 0.75); + position: fixed; + left: 0; + top: 0; + z-index: 1000; + display: grid; + justify-content: center; + align-items: center; + padding: 5rem 0; + #resultEditTagsPanel{ + background: var(--bg-color); + border-radius: var(--roundness); + padding: 2rem; + display: grid; + gap: 1rem; + overflow-y: scroll; + width: 500px; + .buttons{ + display: grid; + gap: 1rem; + grid-template-columns: 1fr 1fr 1fr; + } + .button{ + display: block; + color: var(--text-color); + cursor: pointer; + transition: .25s; + padding: .2rem .5rem; + border-radius: var(--roundness); + + background: rgba(0,0,0,.1); + text-align: center; + -webkit-user-select: none; + display: grid; + align-content: center; + height: min-content; + height: -moz-min-content; + &.active{ + background: var(--main-color); + color: var(--bg-color); + } + &:hover,&:focus{ + color: var(--bg-color); + background: var(--main-color); + outline: none; + } + } + } +} + + #versionHistoryWrapper{ width: 100%; height: 100%; @@ -1493,6 +1547,17 @@ key { tbody tr:nth-child(odd) td{ background: rgba(0, 0, 0, 0.1); } + td.infoIcons span{ + margin: 0 .1rem; + } + } + #resultEditTags{ + transition: .25s; + } + #resultEditTags:hover{ + cursor: pointer; + color: var(--text-color); + opacity: 1 !important; } } diff --git a/public/index.html b/public/index.html index e987469a8..4dec857fb 100644 --- a/public/index.html +++ b/public/index.html @@ -6,6 +6,7 @@ Monkey Type + @@ -40,6 +41,15 @@
+