Private
Public Access
Polish docset cards and light UI
This commit is contained in:
1 parent
5fe9cbe9a3
commit
ff82ff46c4
8 files changed
+177
-331
No files matched your search
+4
-4
@@ -28,13 +28,13 @@ $GLOBALS['config'] = array(
|
||||
'content-type' => 'html',
|
||||
),
|
||||
'theme' => array(
|
||||
'key' => 'docset-viewer',
|
||||
'path' => 'themes/portal-dark/',
|
||||
'mode' => 'dark',
|
||||
'key' => 'docset-light',
|
||||
'path' => 'themes/docset-light/',
|
||||
'mode' => 'light',
|
||||
'label' => 'Docset Viewer',
|
||||
'footer_text' => 'Docset Viewer - local Zeal/Dash documentation browser.',
|
||||
'meta_description' => 'Search and browse local Zeal docsets',
|
||||
'theme_color' => '#0f172a',
|
||||
'theme_color' => '#f8fafc',
|
||||
'options' => array(),
|
||||
),
|
||||
'site' => array(
|
||||
|
||||
@@ -1 +1 @@
|
||||
.docset-hero{display:flex;justify-content:space-between;gap:2rem;align-items:center}.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:#7dd3fc;font-size:.78rem;font-weight:700}.docset-count{min-width:8rem;text-align:center;font-size:3rem;font-weight:800;color:#e0f2fe}.docset-count span{display:block;font-size:.85rem;color:#94a3b8;text-transform:uppercase;letter-spacing:.08em}.search-form{display:grid;grid-template-columns:minmax(12rem,1fr) minmax(10rem,16rem) auto;gap:.75rem;align-items:end}.search-form label{position:absolute;left:-10000px}.search-form input,.search-form select,.mini-search input{width:100%;border:1px solid rgba(148,163,184,.35);border-radius:.75rem;background:rgba(15,23,42,.78);color:#e2e8f0;padding:.8rem .95rem}.search-form button,.mini-search button{border:0;border-radius:.75rem;background:#38bdf8;color:#082f49;font-weight:800;padding:.82rem 1.1rem;cursor:pointer}.notice,.warning{border-color:rgba(250,204,21,.35);background:rgba(113,63,18,.22)}.result-list{display:grid;gap:.55rem}.result-row{display:grid;gap:.2rem;padding:.85rem 1rem;border:1px solid rgba(148,163,184,.2);border-radius:.85rem;background:rgba(15,23,42,.45);text-decoration:none}.result-row:hover{border-color:#38bdf8;background:rgba(14,116,144,.2)}.result-title{color:#f8fafc;font-size:1.05rem;font-weight:750}.result-meta{color:#7dd3fc;font-size:.86rem}.result-path{color:#94a3b8;font-size:.78rem;overflow-wrap:anywhere}.docset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:1rem}.docset-card{border:1px solid rgba(148,163,184,.22);border-radius:1rem;padding:1rem;background:rgba(15,23,42,.45)}.docset-card h2{margin-top:0}.muted{color:#94a3b8}.doc-viewer-shell{padding:0;overflow:hidden}.viewer-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem;border-bottom:1px solid rgba(148,163,184,.2)}.viewer-toolbar h1{margin:0}.viewer-toolbar p{margin:.2rem 0 0;color:#94a3b8;overflow-wrap:anywhere}.mini-search{display:flex;gap:.5rem;min-width:20rem}.doc-frame{display:block;width:100%;height:72vh;border:0;background:white}@media(max-width:760px){.docset-hero,.viewer-toolbar{display:block}.search-form{grid-template-columns:1fr}.mini-search{min-width:0;margin-top:1rem}.doc-frame{height:68vh}}
|
||||
.docset-hero{display:flex;justify-content:space-between;gap:2rem;align-items:center}.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:#0f68ad;font-size:.78rem;font-weight:800}.docset-count{min-width:8rem;text-align:center;font-size:3rem;font-weight:850;color:#0f68ad}.docset-count span{display:block;font-size:.85rem;color:#64748b;text-transform:uppercase;letter-spacing:.08em}.search-form{display:grid;grid-template-columns:minmax(12rem,1fr) minmax(10rem,16rem) auto;gap:.75rem;align-items:end;max-width:none}.search-form label{position:absolute;left:-10000px}.search-form button,.mini-search button{white-space:nowrap}.notice,.warning{border-color:#facc15;background:#fef9c3;color:#713f12}.section-heading{display:flex;justify-content:space-between;gap:1rem;align-items:end;margin-bottom:1rem}.section-heading h1,.section-heading h2{margin-bottom:.25rem}.result-list{display:grid;gap:.55rem}.result-row{display:grid;gap:.2rem;padding:.85rem 1rem;border:1px solid #d7e1ec;border-radius:.85rem;background:#ffffff;text-decoration:none}.result-row:hover{border-color:#0ea5e9;background:#f0f9ff;text-decoration:none;box-shadow:0 8px 18px rgba(15,23,42,.08)}.result-title{color:#0f172a;font-size:1.05rem;font-weight:750}.result-meta{color:#0f68ad;font-size:.86rem}.result-path{color:#64748b;font-size:.78rem;overflow-wrap:anywhere}.docset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr));gap:1rem}.docset-card{display:flex;flex-direction:column;min-height:9rem;border:1px solid #d7e1ec;border-radius:1rem;padding:1.15rem;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);box-shadow:0 1px 2px rgba(15,23,42,.05);text-decoration:none}.docset-card:hover{border-color:#0ea5e9;background:#f0f9ff;box-shadow:0 14px 26px rgba(15,23,42,.12);transform:translateY(-2px);text-decoration:none}.docset-card-title{font-size:1.25rem;font-weight:850;color:#0f172a;margin-bottom:.4rem}.docset-card-meta{color:#0f68ad;font-weight:700}.docset-card-family{margin-top:auto;color:#64748b;font-size:.85rem}.muted{color:#64748b}.doc-viewer-shell{padding:0!important;overflow:hidden}.viewer-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem;border-bottom:1px solid #d7e1ec;background:#ffffff}.viewer-toolbar h1{margin:0;font-size:1.4rem}.viewer-toolbar h1::after{display:none}.viewer-toolbar p{margin:.2rem 0 0;color:#64748b;overflow-wrap:anywhere}.mini-search{display:flex;gap:.5rem;min-width:20rem}.doc-frame{display:block;width:100%;height:72vh;border:0;background:white}@media(max-width:760px){.docset-hero,.viewer-toolbar,.section-heading{display:block}.search-form{grid-template-columns:1fr}.mini-search{min-width:0;margin-top:1rem}.doc-frame{height:68vh}}
|
||||
@@ -0,0 +1,140 @@
|
||||
:root {
|
||||
--bg-color: #eef3f8;
|
||||
--bg-secondary: #f8fafc;
|
||||
--surface: #ffffff;
|
||||
--surface-elevated: #f1f5f9;
|
||||
--surface-hover: #e0f2fe;
|
||||
--primary: #0f68ad;
|
||||
--primary-dark: #0b4f84;
|
||||
--primary-light: #0284c7;
|
||||
--accent: #0891b2;
|
||||
--text-primary: #0f172a;
|
||||
--text-secondary: #334155;
|
||||
--text-muted: #64748b;
|
||||
--border: #d7e1ec;
|
||||
--border-hover: #7dd3fc;
|
||||
--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
|
||||
--shadow-md: 0 10px 25px rgba(15, 23, 42, 0.10);
|
||||
--shadow-lg: 0 20px 35px rgba(15, 23, 42, 0.14);
|
||||
--radius: 8px;
|
||||
--radius-lg: 14px;
|
||||
--font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
--font-mono: 'SFMono-Regular', Consolas, monospace;
|
||||
}
|
||||
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
html { font-size: 16px; scroll-behavior: smooth; }
|
||||
body {
|
||||
font-family: var(--font-sans);
|
||||
font-size: 1rem;
|
||||
line-height: 1.6;
|
||||
color: var(--text-primary);
|
||||
background: linear-gradient(180deg, #f8fafc 0%, var(--bg-color) 42rem, #e8eef5 100%);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
a { color: var(--primary); text-decoration: none; transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
|
||||
a:hover { color: var(--primary-dark); text-decoration: underline; }
|
||||
::selection { background: #bae6fd; color: var(--text-primary); }
|
||||
|
||||
nav {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
background: rgba(255, 255, 255, 0.88);
|
||||
backdrop-filter: blur(18px);
|
||||
-webkit-backdrop-filter: blur(18px);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 0 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-shadow: var(--shadow-sm);
|
||||
}
|
||||
nav::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
|
||||
opacity: 0.25;
|
||||
}
|
||||
.nav-menu { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
|
||||
.nav-menu a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.55rem 0.8rem;
|
||||
border-radius: var(--radius);
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
}
|
||||
.nav-menu > a:first-child {
|
||||
font-weight: 800;
|
||||
color: var(--primary);
|
||||
padding: 1rem 1.25rem;
|
||||
margin: 0.35rem 0.25rem 0.35rem 0;
|
||||
}
|
||||
.nav-menu a:hover { background: var(--surface-hover); color: var(--primary-dark); }
|
||||
|
||||
#content {
|
||||
min-height: calc(100vh - 8rem);
|
||||
padding: 2rem 1rem;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
h1, h2, h3, h4, h5, h6 { font-weight: 750; line-height: 1.2; margin-bottom: 1rem; color: var(--text-primary); }
|
||||
h1 { font-size: clamp(2rem, 4vw, 3rem); position: relative; padding-bottom: 0.75rem; margin-bottom: 1.25rem; }
|
||||
h1::after { content: ''; position: absolute; bottom: 0; left: 0; width: 64px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 3px; }
|
||||
h2 { font-size: 1.6rem; }
|
||||
p { color: var(--text-secondary); }
|
||||
code, pre { font-family: var(--font-mono); }
|
||||
code { background: var(--surface-elevated); border: 1px solid var(--border); border-radius: 0.35rem; padding: 0.05rem 0.3rem; }
|
||||
|
||||
#content > div:not(.ws-app), .block, .card, .dashboard-panel {
|
||||
background: rgba(255, 255, 255, 0.94);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 1.75rem;
|
||||
margin-bottom: 1.5rem;
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
#content > div:not(.ws-app):hover, .block:hover, .card:hover, .dashboard-panel:hover { box-shadow: var(--shadow-md); border-color: var(--border-hover); }
|
||||
|
||||
form { max-width: 760px; }
|
||||
label { font-weight: 650; color: var(--text-secondary); font-size: 0.875rem; }
|
||||
input, select, textarea {
|
||||
width: 100%;
|
||||
padding: 0.75rem 1rem;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
background: var(--surface);
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
font-family: inherit;
|
||||
}
|
||||
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.14); }
|
||||
button, .btn, input[type="submit"] {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.75rem 1.4rem;
|
||||
background: var(--primary);
|
||||
color: white;
|
||||
border: none;
|
||||
border-radius: var(--radius);
|
||||
font-weight: 750;
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
button:hover, .btn:hover, input[type="submit"]:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }
|
||||
|
||||
footer { border-top: 1px solid var(--border); padding: 1.25rem 1rem; color: var(--text-muted); font-size: 0.875rem; background: rgba(255, 255, 255, 0.72); }
|
||||
footer p { color: var(--text-muted); }
|
||||
|
||||
@media (max-width: 860px) {
|
||||
#content { padding: 1rem 0.75rem; }
|
||||
#content > div:not(.ws-app), .block, .card, .dashboard-panel { padding: 1.25rem; margin-bottom: 1rem; }
|
||||
}
|
||||
File renamed without changes.
@@ -6,7 +6,7 @@
|
||||
<head>
|
||||
<?php theme_render_head(); ?>
|
||||
</head>
|
||||
<body class="portal-theme portal-dark-theme dark-theme<?= $embed_mode ? ' embed-mode' : '' ?>">
|
||||
<body class="portal-theme docset-light-theme<?= $embed_mode ? ' embed-mode' : '' ?>">
|
||||
<?php theme_render_global_controls($embed_mode); ?>
|
||||
<?php theme_render_standard_nav(array('account_wrapper_class' => 'nav-account nav-menu')); ?>
|
||||
<div id="content"<?= $embed_mode ? ' class="embed-content"' : '' ?>>
|
||||
@@ -1,313 +0,0 @@
|
||||
:root {
|
||||
--bg-color: #0f172a;
|
||||
--bg-secondary: #1e293b;
|
||||
--surface: #1e293b;
|
||||
--surface-elevated: #334155;
|
||||
--surface-hover: #475569;
|
||||
--primary: #60a5fa;
|
||||
--primary-dark: #3b82f6;
|
||||
--primary-light: #93c5fd;
|
||||
--secondary: #a78bfa;
|
||||
--accent: #22d3ee;
|
||||
--text-primary: #f1f5f9;
|
||||
--text-secondary: #cbd5e1;
|
||||
--text-muted: #94a3b8;
|
||||
--border: #334155;
|
||||
--border-hover: #475569;
|
||||
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
|
||||
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
|
||||
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
|
||||
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
|
||||
--radius: 8px;
|
||||
--radius-md: 8px;
|
||||
--radius-lg: 12px;
|
||||
--radius-xl: 16px;
|
||||
--radius-sm: 4px;
|
||||
--glass-bg: rgba(30, 41, 59, 0.8);
|
||||
--success: #10b981;
|
||||
--success-bg: rgba(16, 185, 129, 0.1);
|
||||
--success-border: rgba(16, 185, 129, 0.3);
|
||||
--success-text: #10b981;
|
||||
--warning: #f59e0b;
|
||||
--warning-bg: rgba(245, 158, 11, 0.1);
|
||||
--warning-border: rgba(245, 158, 11, 0.3);
|
||||
--warning-text: #f59e0b;
|
||||
--error: #ef4444;
|
||||
--error-bg: rgba(239, 68, 68, 0.1);
|
||||
--error-border: rgba(239, 68, 68, 0.3);
|
||||
--error-text: #ef4444;
|
||||
--info: #3b82f6;
|
||||
--info-bg: rgba(59, 130, 246, 0.1);
|
||||
--info-border: rgba(59, 130, 246, 0.3);
|
||||
--info-text: #3b82f6;
|
||||
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
--font-mono: 'SFMono-Regular', Consolas, monospace;
|
||||
}
|
||||
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
html { font-size: 16px; scroll-behavior: smooth; }
|
||||
body {
|
||||
font-family: var(--font-sans);
|
||||
font-size: 1rem;
|
||||
line-height: 1.6;
|
||||
color: var(--text-primary);
|
||||
background: var(--bg-color);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }
|
||||
a:hover { color: var(--primary-light); text-decoration: underline; }
|
||||
|
||||
::selection {
|
||||
background: rgba(96, 165, 250, 0.3);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background:
|
||||
radial-gradient(ellipse 80% 50% at 20% -10%, rgba(96, 165, 250, 0.05) 0%, transparent 60%),
|
||||
radial-gradient(ellipse 60% 40% at 85% 110%, rgba(34, 211, 238, 0.04) 0%, transparent 50%);
|
||||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
nav {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 1000;
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 0 1rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
nav::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 1px;
|
||||
background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.nav-menu { display: flex; align-items: center; gap: 0.25rem; }
|
||||
.nav-menu a,
|
||||
.nav-account a {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: var(--radius);
|
||||
color: var(--text-primary);
|
||||
text-decoration: none;
|
||||
}
|
||||
.nav-menu > a:first-child {
|
||||
font-weight: 700;
|
||||
color: var(--primary);
|
||||
padding: 1rem 1.5rem;
|
||||
margin: 0.5rem 0.25rem;
|
||||
}
|
||||
.nav-menu a:hover,
|
||||
.nav-account a:hover {
|
||||
background: var(--surface-hover);
|
||||
color: var(--primary);
|
||||
}
|
||||
.nav-account {
|
||||
margin-left: auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
.nav-account .account-name {
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
font-size: 0.95rem;
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
.nav-account .nav-avatar,
|
||||
.profile-avatar {
|
||||
border-radius: 999px;
|
||||
object-fit: cover;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.nav-account .nav-avatar { width: 30px; height: 30px; }
|
||||
.profile-avatar { width: 96px; height: 96px; }
|
||||
|
||||
#content {
|
||||
margin-top: 5rem;
|
||||
min-height: calc(100vh - 10rem);
|
||||
padding: 2rem 1rem;
|
||||
max-width: 1200px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
margin-bottom: 1rem;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
h1 {
|
||||
font-size: 2rem;
|
||||
position: relative;
|
||||
padding-bottom: 0.75rem;
|
||||
margin-bottom: 1.25rem;
|
||||
}
|
||||
h1::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 60px;
|
||||
height: 3px;
|
||||
background: linear-gradient(90deg, var(--primary), var(--accent));
|
||||
border-radius: 3px;
|
||||
}
|
||||
h2 { font-size: 2rem; }
|
||||
h3 { font-size: 1.5rem; }
|
||||
|
||||
#content > div:not(.ws-app), .block, .card, .dashboard-panel {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 1.75rem;
|
||||
margin-bottom: 1.5rem;
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: border-color 0.25s ease, box-shadow 0.25s ease;
|
||||
}
|
||||
|
||||
#content > div:not(.ws-app):hover, .block:hover, .card:hover, .dashboard-panel:hover {
|
||||
box-shadow: var(--shadow-md);
|
||||
border-color: var(--border-hover);
|
||||
}
|
||||
|
||||
form { max-width: 600px; margin: 0 auto; }
|
||||
form > div { display: flex; flex-direction: column; margin-bottom: 1.5rem; gap: 0.5rem; }
|
||||
label { font-weight: 500; color: var(--text-secondary); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; }
|
||||
input, select, textarea {
|
||||
width: 100%;
|
||||
padding: 0.75rem 1rem;
|
||||
border: 2px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
background: var(--bg-secondary);
|
||||
color: var(--text-primary);
|
||||
font-size: 1rem;
|
||||
font-family: inherit;
|
||||
}
|
||||
textarea { min-height: 120px; }
|
||||
input:focus, select:focus, textarea:focus {
|
||||
outline: none;
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
|
||||
background: var(--surface);
|
||||
}
|
||||
button, .btn, input[type="submit"] {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0.75rem 1.5rem;
|
||||
background: var(--primary);
|
||||
color: var(--bg-color);
|
||||
border: none;
|
||||
border-radius: var(--radius);
|
||||
font-weight: 600;
|
||||
font-size: 1rem;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
button:hover, .btn:hover, input[type="submit"]:hover {
|
||||
background: var(--primary-dark);
|
||||
transform: translateY(-1px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.banner {
|
||||
border-radius: var(--radius);
|
||||
padding: 0.8rem 1rem;
|
||||
border: 1px solid var(--border);
|
||||
margin-bottom: 1rem;
|
||||
background: rgba(255,255,255,0.03);
|
||||
}
|
||||
.banner.success { background: var(--success-bg); border-color: var(--success-border); color: var(--success-text); }
|
||||
.banner.warning { background: var(--warning-bg); border-color: var(--warning-border); color: var(--warning-text); }
|
||||
.banner.error, .error { background: var(--error-bg); border-color: var(--error-border); color: var(--error-text); }
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid var(--border);
|
||||
background: rgba(255,255,255,0.02);
|
||||
border-radius: var(--radius);
|
||||
overflow: hidden;
|
||||
}
|
||||
th, td { padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--border); text-align: left; }
|
||||
th { background: var(--surface-elevated); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
|
||||
tr:last-child td { border-bottom: none; }
|
||||
tr:hover td { background: rgba(255,255,255,0.02); }
|
||||
code, pre { font-family: var(--font-mono); }
|
||||
pre {
|
||||
padding: 1rem;
|
||||
background: rgba(15, 23, 42, 0.55);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
footer {
|
||||
border-top: 1px solid var(--border);
|
||||
padding: 1.25rem 1rem;
|
||||
color: var(--text-muted);
|
||||
font-size: 0.875rem;
|
||||
background: rgba(15, 23, 42, 0.6);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
input[type="range"] {
|
||||
width: 100%;
|
||||
height: 6px;
|
||||
background: var(--bg-secondary);
|
||||
outline: none;
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
-webkit-appearance: none;
|
||||
appearance: none;
|
||||
}
|
||||
input[type="range"]::-webkit-slider-thumb {
|
||||
-webkit-appearance: none;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background: var(--primary);
|
||||
cursor: pointer;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 6px rgba(96, 165, 250, 0.3);
|
||||
}
|
||||
input[type="range"]::-moz-range-thumb {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background: var(--primary);
|
||||
cursor: pointer;
|
||||
border-radius: 50%;
|
||||
border: none;
|
||||
box-shadow: 0 0 6px rgba(96, 165, 250, 0.3);
|
||||
}
|
||||
|
||||
@media (max-width: 860px) {
|
||||
nav { flex-wrap: wrap; padding-bottom: 0.6rem; }
|
||||
.nav-account { width: 100%; margin-left: 0; justify-content: flex-start; }
|
||||
#content { margin-top: 7.5rem; padding: 1rem 0.75rem; }
|
||||
#content > div:not(.ws-app), .block, .card, .dashboard-panel { padding: 1.25rem; margin-bottom: 1rem; }
|
||||
h1 { font-size: 2rem; padding: 1.25rem; }
|
||||
}
|
||||
+11
-10
@@ -4,20 +4,21 @@ URL::$route['page-title'] = 'Docsets';
|
||||
$repo = new DocsetRepository();
|
||||
$docsets = $repo->listDocsets();
|
||||
?>
|
||||
<section class="card">
|
||||
<h1>Installed docsets</h1>
|
||||
<p>Docsets are loaded from <code><?= safe((string)cfg('docsets/path')) ?></code>.</p>
|
||||
<section class="card installed-docsets">
|
||||
<div class="section-heading">
|
||||
<h1>Installed docsets</h1>
|
||||
<p>Choose a docset to open its documentation start page.</p>
|
||||
</div>
|
||||
<?php if(!$docsets) { ?>
|
||||
<p class="notice">No docsets installed.</p>
|
||||
<p class="notice">No docsets found. Add Zeal/Dash <code>*.docset</code> folders to <code>data/docsets/</code>.</p>
|
||||
<?php } else { ?>
|
||||
<div class="docset-grid">
|
||||
<?php foreach($docsets as $docset) { ?>
|
||||
<article class="docset-card">
|
||||
<h2><?= safe($docset['name']) ?></h2>
|
||||
<p><?= number_format($docset['entry_count']) ?> indexed entries</p>
|
||||
<?php if($docset['family'] !== '') { ?><p class="muted">Family: <?= safe($docset['family']) ?></p><?php } ?>
|
||||
<a href="<?= URL::Link('view', array('docset' => $docset['id'], 'path' => $docset['index_file'])) ?>">Open start page</a>
|
||||
</article>
|
||||
<a class="docset-card" href="<?= URL::Link('view', array('docset' => $docset['id'], 'path' => $docset['index_file'])) ?>">
|
||||
<span class="docset-card-title"><?= safe($docset['name']) ?></span>
|
||||
<span class="docset-card-meta"><?= number_format($docset['entry_count']) ?> indexed entries</span>
|
||||
<?php if($docset['family'] !== '') { ?><span class="docset-card-family"><?= safe($docset['family']) ?></span><?php } ?>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
+20
-2
@@ -25,7 +25,7 @@ if($query !== '')
|
||||
<div>
|
||||
<p class="eyebrow">Local Dash/Zeal documentation</p>
|
||||
<h1>Search Zeal docsets</h1>
|
||||
<p>Browse offline docsets from <code>data/docsets/</code>. The test PHP docset is intentionally ignored by git.</p>
|
||||
<p>Search indexed symbols, classes, methods, and guide pages from installed docsets.</p>
|
||||
</div>
|
||||
<div class="docset-count"><?= count($docsets) ?><span>docsets</span></div>
|
||||
</section>
|
||||
@@ -44,10 +44,28 @@ if($query !== '')
|
||||
<button type="submit">Search</button>
|
||||
</form>
|
||||
<?php if(!$docsets) { ?>
|
||||
<p class="notice">No docsets found yet. Put <code>*.docset</code> directories under <code>data/docsets/</code>.</p>
|
||||
<p class="notice">No docsets found. Add Zeal/Dash <code>*.docset</code> folders to <code>data/docsets/</code>.</p>
|
||||
<?php } ?>
|
||||
</section>
|
||||
|
||||
<?php if($docsets) { ?>
|
||||
<section class="card installed-docsets">
|
||||
<div class="section-heading">
|
||||
<h2>Installed docsets</h2>
|
||||
<p>Open a docset directly or narrow searches with the selector above.</p>
|
||||
</div>
|
||||
<div class="docset-grid">
|
||||
<?php foreach($docsets as $docset) { ?>
|
||||
<a class="docset-card" href="<?= URL::Link('view', array('docset' => $docset['id'], 'path' => $docset['index_file'])) ?>">
|
||||
<span class="docset-card-title"><?= safe($docset['name']) ?></span>
|
||||
<span class="docset-card-meta"><?= number_format($docset['entry_count']) ?> indexed entries</span>
|
||||
<?php if($docset['family'] !== '') { ?><span class="docset-card-family"><?= safe($docset['family']) ?></span><?php } ?>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</section>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($error !== '') { ?>
|
||||
<section class="card warning"><h2>Search failed</h2><p><?= safe($error) ?></p></section>
|
||||
<?php } ?>
|
||||
|
||||
Reference in new issue
Block a user