You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wiki/frontend/index.html

157 lines
4.5 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/_site/current/favicon" />
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<title>Wiki.js</title>
<!--preload-links-->
<link href="/_assets/fonts/roboto/roboto.css" rel="stylesheet" />
<style type="text/css">
@keyframes initspinner {
to { transform: rotate(360deg); }
}
.init-loading {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255,255,255,.75);
z-index: 2000000000;
backdrop-filter: blur(10px);
}
.body--dark .init-loading {
background-color: rgba(0,0,0,.75);
}
.init-loading:before {
content: '';
box-sizing: border-box;
position: absolute;
top: 50%;
left: 50%;
width: 50px;
height: 50px;
margin-top: -25px;
margin-left: -25px;
border-radius: 50%;
border-top: 2px solid #1976D2;
border-right: 2px solid transparent;
animation: initspinner .6s linear infinite;
z-index: 2000000000;
}
/*
The copy of the page the server puts into this document for a client that will never run the
app -- a crawler, a chat client building an unfurl card, a reader with JavaScript off. See
`backend/helpers/appShell.ts` for what goes in it and why.
Out of sight of anyone whose browser is about to draw the real page, and shown (below) to
anyone whose browser is not. `main.js` takes the element out of the document altogether
before Vue mounts, so nothing the app does has to know it was ever there.
*/
#wiki-prerender {
display: none;
}
</style>
<noscript>
<style type="text/css">
.init-loading {
display: none !important;
}
.q-drawer-container {
display: none !important;
}
.scroll.relative-position {
position: static !important;
}
.scroll.relative-position > .absolute {
position: relative !important;
}
/* With no app coming, the server's copy of the page is the page. */
#wiki-prerender {
display: block;
max-width: 60rem;
margin: 0 auto;
padding: 2rem 1.5rem;
line-height: 1.6;
}
/*
The browser defaults Tailwind's preflight takes away, put back. Deliberately not a copy of
the content styles in `css/tailwind.css`: those belong to elements the app draws, which is
the one thing that is not going to happen here, and a second copy of them would only drift.
What is wanted is prose that reads as prose.
*/
#wiki-prerender h1 { font-size: 2em; }
#wiki-prerender h2 { font-size: 1.5em; }
#wiki-prerender h3 { font-size: 1.17em; }
#wiki-prerender h1,
#wiki-prerender h2,
#wiki-prerender h3,
#wiki-prerender h4,
#wiki-prerender h5,
#wiki-prerender h6 {
font-weight: bold;
margin: 1.5em 0 .5em;
line-height: 1.25;
}
#wiki-prerender p,
#wiki-prerender ul,
#wiki-prerender ol,
#wiki-prerender pre,
#wiki-prerender blockquote,
#wiki-prerender table {
margin: 0 0 1em;
}
#wiki-prerender ul,
#wiki-prerender ol {
padding-left: 2em;
list-style: revert;
}
#wiki-prerender pre,
#wiki-prerender code {
font-family: monospace;
}
#wiki-prerender pre {
overflow-x: auto;
padding: .75em 1em;
background: #f4f4f4;
}
#wiki-prerender blockquote {
padding-left: 1em;
border-left: 4px solid #ccc;
color: #555;
}
#wiki-prerender img {
max-width: 100%;
height: auto;
}
#wiki-prerender table {
border-collapse: collapse;
}
#wiki-prerender th,
#wiki-prerender td {
padding: .35em .75em;
border: 1px solid #ccc;
}
</style>
</noscript>
</head>
<body class="wiki-root">
<div class="init-loading"></div>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>