diff options
author | Khloe Leclair <xivkhloeleclair@gmail.com> | 2022-04-08 14:59:52 -0400 |
---|---|---|
committer | Khloe Leclair <xivkhloeleclair@gmail.com> | 2022-04-08 14:59:52 -0400 |
commit | 0beff189d19416dfcbb64bce800af41de37ccd08 (patch) | |
tree | ab10d19b4b492abbc32a40630810738507d75b50 /src/SMAPI.Web/wwwroot/Content/css/log-parser.css | |
parent | df955c0d3e0110be0893082de0c82187de63d9d2 (diff) | |
download | SMAPI-0beff189d19416dfcbb64bce800af41de37ccd08.tar.gz SMAPI-0beff189d19416dfcbb64bce800af41de37ccd08.tar.bz2 SMAPI-0beff189d19416dfcbb64bce800af41de37ccd08.zip |
Implement client-side log rendering, better filtering, and pagination to improve performance and enhance the user experience with using the log parser.
Diffstat (limited to 'src/SMAPI.Web/wwwroot/Content/css/log-parser.css')
-rw-r--r-- | src/SMAPI.Web/wwwroot/Content/css/log-parser.css | 109 |
1 files changed, 108 insertions, 1 deletions
diff --git a/src/SMAPI.Web/wwwroot/Content/css/log-parser.css b/src/SMAPI.Web/wwwroot/Content/css/log-parser.css index 8c3acceb..94bc049b 100644 --- a/src/SMAPI.Web/wwwroot/Content/css/log-parser.css +++ b/src/SMAPI.Web/wwwroot/Content/css/log-parser.css @@ -148,6 +148,10 @@ table caption { font-style: italic; } +.content-packs--short { + opacity: 0.75; +} + #metadata td:first-child { padding-right: 5px; } @@ -158,8 +162,58 @@ table caption { #filters { margin: 1em 0 0 0; - padding: 0; + padding: 0 0 0.5em; + display: flex; + justify-content: space-between; + width: calc(100vw - 16em); +} + +#filters > div { + align-self: center; +} + +#filters .toggles { + display: flex; +} + +#filters .toggles > div:first-child { font-weight: bold; + padding: 0.2em 1em 0 0; +} + +#filters .filter-text { + margin-top: 0.5em; +} + +#filters .stats { + margin-top: 0.5em; + font-size: 0.75em; +} + +#filters.sticky { + position: fixed; + top: 0; + left: 0em; + background: #fff; + margin: 0; + padding: 0.5em; + width: calc(100% - 1em); +} + +@media (min-width: 1020px) and (max-width: 1199px) { + #filters:not(.sticky) { + width: calc(100vw - 13em); + } +} + +@media (max-width: 1019px) { + #filters:not(.sticky) { + width: calc(100vw - 3em); + } + + #filters { + display: block; + } } #filters span { @@ -173,6 +227,17 @@ table caption { color: #000; border-color: #880000; background-color: #fcc; + + user-select: none; +} + +#filters .filter-text span { + padding: 3px 0.5em; +} + +#filters .whole-word i { + padding: 0 1px; + border: 1px dashed; } #filters span:hover { @@ -188,11 +253,48 @@ table caption { background: #efe; } +#filters .pager { + margin-top: 0.5em; + text-align: right; +} + +#filters .pager div { + margin-top: 0.5em; +} + +#filters .pager div span { + padding: 0 0.5em; + margin: 0 1px; +} + +#filters .pager span { + background-color: #eee; + border-color: #888; +} + +#filters .pager span.active { + font-weight: bold; + border-color: transparent; + background: transparent; + cursor: unset; +} + +#filters .pager span.disabled { + opacity: 0.3; + cursor: unset; +} + +#filters .pager span:not(.disabled):hover { + background-color: #fff; +} + + /********* ** Log *********/ #log .mod-repeat { font-size: 0.85em; + font-style: italic; } #log .trace { @@ -237,6 +339,11 @@ table caption { white-space: pre-wrap; } +#log .log-message-text strong { + background-color: yellow; + font-weight: normal; +} + #log { border-spacing: 0; } |