feat: add help page and polish UI details
Add a searchable ? help page, hide HLTB retry after success, scroll the whole game modal with a capped addons block, and give the friend comparison more height.
This commit is contained in:
1 parent
eb7ce10f82
commit
4428d86f91
4 files changed
+341
-8
No files matched your search
+100
-4
@@ -125,15 +125,18 @@ button { cursor: pointer; }
|
||||
html[data-view="recommend"] #libraryView,
|
||||
html[data-view="hltb"] #libraryView,
|
||||
html[data-view="friends"] #libraryView,
|
||||
html[data-view="services"] #libraryView { display: none !important; }
|
||||
html[data-view="services"] #libraryView,
|
||||
html[data-view="help"] #libraryView { display: none !important; }
|
||||
html[data-view="recommend"] #recommendView,
|
||||
html[data-view="hltb"] #hltbView,
|
||||
html[data-view="friends"] #friendsView,
|
||||
html[data-view="services"] #servicesView { display: block !important; }
|
||||
html[data-view="services"] #servicesView,
|
||||
html[data-view="help"] #helpView { display: block !important; }
|
||||
html[data-view="recommend"] #tabRecommend,
|
||||
html[data-view="hltb"] #tabHltb,
|
||||
html[data-view="friends"] #tabFriends,
|
||||
html[data-view="services"] #tabServices {
|
||||
html[data-view="services"] #tabServices,
|
||||
html[data-view="help"] #tabHelp {
|
||||
color: #0a0d13;
|
||||
background: linear-gradient(135deg, var(--accent), #ffd59a);
|
||||
font-weight: 650;
|
||||
@@ -141,7 +144,8 @@ html[data-view="services"] #tabServices {
|
||||
html[data-view="recommend"] #tabLibrary,
|
||||
html[data-view="hltb"] #tabLibrary,
|
||||
html[data-view="friends"] #tabLibrary,
|
||||
html[data-view="services"] #tabLibrary {
|
||||
html[data-view="services"] #tabLibrary,
|
||||
html[data-view="help"] #tabLibrary {
|
||||
color: var(--muted);
|
||||
background: transparent;
|
||||
font-weight: normal;
|
||||
@@ -1178,6 +1182,87 @@ html[data-theme="light"] .game-table tbody tr:hover { background: rgba(23, 32, 5
|
||||
}
|
||||
.friend-more { align-self: flex-start; margin-top: 6px; }
|
||||
|
||||
/* ---------- help ---------- */
|
||||
.help-page { display: flex; flex-direction: column; gap: 16px; }
|
||||
.help-page .hltb-head { align-items: center; }
|
||||
.help-page #helpSearch { width: min(360px, 100%); }
|
||||
.help-layout {
|
||||
display: grid;
|
||||
grid-template-columns: 260px minmax(0, 1fr);
|
||||
gap: 18px;
|
||||
align-items: start;
|
||||
min-width: 0;
|
||||
}
|
||||
.help-toc {
|
||||
position: sticky;
|
||||
top: 86px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
max-height: calc(100vh - 110px);
|
||||
overflow-y: auto;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
background: var(--panel);
|
||||
}
|
||||
.help-toc a {
|
||||
padding: 6px 8px;
|
||||
border-radius: 8px;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
text-decoration: none;
|
||||
}
|
||||
.help-toc a:hover { color: var(--text); background: var(--bg-2); }
|
||||
.help-content { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
|
||||
.help-section {
|
||||
padding: 16px 18px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 14px;
|
||||
background: var(--panel);
|
||||
}
|
||||
.help-section h2 { margin: 0 0 8px; font-size: 18px; }
|
||||
.help-section h3 { margin: 14px 0 6px; font-size: 14px; color: var(--text); }
|
||||
.help-section p, .help-section li {
|
||||
font-size: 13.5px;
|
||||
line-height: 1.55;
|
||||
color: var(--text);
|
||||
opacity: .86;
|
||||
}
|
||||
.help-section ul, .help-section ol {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
margin: 6px 0;
|
||||
padding-left: 20px;
|
||||
}
|
||||
.help-section code {
|
||||
padding: 1px 5px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 5px;
|
||||
background: var(--bg-2);
|
||||
font-size: 12px;
|
||||
}
|
||||
.help-section pre {
|
||||
overflow-x: auto;
|
||||
padding: 10px 12px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
background: var(--bg-2);
|
||||
}
|
||||
.help-section pre code { padding: 0; border: 0; background: transparent; }
|
||||
|
||||
.modal { overflow: hidden; }
|
||||
.modal-grid { overflow: hidden; }
|
||||
.modal-body {
|
||||
min-height: 0;
|
||||
max-height: calc(100vh - 36px);
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
.addons-block { max-height: 220px; overflow-y: auto; }
|
||||
|
||||
.friend-columns ul { max-height: calc(100vh - 320px); }
|
||||
|
||||
.reco-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
|
||||
.reco-actions[hidden] { display: none; }
|
||||
.reco-actions .ghost { flex: 0 0 auto; padding: 7px 12px; }
|
||||
@@ -1550,9 +1635,19 @@ html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c9c0ad; }
|
||||
.pin { display: none; }
|
||||
.modal-grid { grid-template-columns: 1fr; }
|
||||
.modal-cover { max-height: 260px; }
|
||||
.modal-body { max-height: calc(100vh - 320px); }
|
||||
.addons-block { max-height: 160px; }
|
||||
.friends-layout { grid-template-columns: 1fr; }
|
||||
.friends-sidebar { position: static; }
|
||||
.friends-list { max-height: 360px; }
|
||||
.friend-columns ul { max-height: 420px; }
|
||||
.help-layout { grid-template-columns: 1fr; }
|
||||
.help-toc {
|
||||
position: static;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
max-height: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
@@ -1567,6 +1662,7 @@ html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c9c0ad; }
|
||||
.mood-panel.compact { top: 8px; }
|
||||
.mood-search textarea { padding-right: 104px; }
|
||||
.mood-go { padding: 7px 10px; font-size: 12px; }
|
||||
.help-page #helpSearch { width: 100%; }
|
||||
.stats { width: 100%; justify-content: flex-start; }
|
||||
main { padding: 18px 16px 60px; }
|
||||
.grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
|
||||
|
||||
Reference in new issue
Block a user