switch to styles.alv.cx

This commit is contained in:
Akbar Rahman 2022-04-03 22:27:59 +01:00
parent b35e868850
commit 2b8874106f
Signed by: alvierahman90
GPG Key ID: 20609519444A1269
4 changed files with 12 additions and 43 deletions

View File

@ -343,9 +343,9 @@ def main(args):
for entry in indexentries: for entry in indexentries:
html += ( html += (
'<li class="article">' '<li class="article">'
f'<a href="{entry["path"]}">' f'<a href="{entry["path"]}"><p>'
f'{entry["title"]}{"/" if entry["isdirectory"] else ""}' f'{entry["title"]}{"/" if entry["isdirectory"] else ""}'
'</a>' '</p></a>'
'</li>' '</li>'
) )
html += INDEX_TEMPLATE_FOOT html += INDEX_TEMPLATE_FOOT

View File

@ -1,4 +1,6 @@
@import url("https://styles.alv.cx/base.css"); @import url("https://styles.alv.cx/base.css");
@import url("https://styles.alv.cx/modules/search.css");
@import url("https://styles.alv.cx/modules/buttonlist.css");
html { html {
scroll-behavior: smooth; scroll-behavior: smooth;
@ -18,29 +20,6 @@ body {
margin: 1em; margin: 1em;
} }
#searchWrapper > input {
padding: 1em;
margin: 1em 0.5em 1em 0.5em;
font-size: 1em;
min-width: 0;
}
#searchWrapper {
display: flex
}
#search { flex-grow: 9; }
#sidebar #search {
flex-grow: 0;
padding: 1em;
margin: 0 1em 1em 1em;
}
#results {
overflow-x: scroll;
}
.smallText { .smallText {
font-size: 0.7em; font-size: 0.7em;
} }
@ -76,16 +55,6 @@ body {
padding-right: 1em; padding-right: 1em;
} }
#toc {
overflow-y: scroll;
overflow-x: visible;
max-width: 100%;
}
li {
margin: 0;
}
#content { #content {
margin: 0 auto; margin: 0 auto;
width: 60em; width: 60em;
@ -94,6 +63,12 @@ li {
#commitlog, #license { padding: 0; } #commitlog, #license { padding: 0; }
#toc {
overflow-y: scroll;
overflow-x: visible;
max-width: 100%;
}
#sidebar, #sidebar,
#toc li > a { #toc li > a {
color: #656565; color: #656565;
@ -103,6 +78,7 @@ li {
#toc ul, ul#articlelist { margin-left: 0.75em ; padding-left: 0.75em; } #toc ul, ul#articlelist { margin-left: 0.75em ; padding-left: 0.75em; }
#toc ul, ul#articlelist { border-left: 1px solid #b3b3b3;} #toc ul, ul#articlelist { border-left: 1px solid #b3b3b3;}
#toc > ul { padding; none; padding: 0; margin: 0; border: none;max-width: 100%;} #toc > ul { padding; none; padding: 0; margin: 0; border: none;max-width: 100%;}
li { padding: 0 !important; }
#toc li > a, #toc li > a,
ul#articlelist > a{ ul#articlelist > a{

View File

@ -10,5 +10,5 @@
<div id="content"> <div id="content">
<h1>$title$</h1> <h1>$title$</h1>
$extra_content$ $extra_content$
<ul id="articlelist"> <ul class="buttonlist">
<li class="article"><a href="..">../</a></li> <li class="article"><a href="..">../</a></li>

View File

@ -1,7 +0,0 @@
<li>
<a href="$filepath$"> $if(title)$
$title$
$else$
no title ($filepath$)
$endif$</a>
</li>