style changes
This commit is contained in:
parent
f9217c974b
commit
35f0c4c9e9
|
@ -16,7 +16,7 @@ for file in _files:
|
|||
@freezer.register_generator
|
||||
def content():
|
||||
for _file in _files:
|
||||
yield { "path": _file }
|
||||
yield { "path": _file.encode('utf-8')}
|
||||
|
||||
if __name__ == '__main__':
|
||||
freezer.freeze()
|
||||
|
|
|
@ -4,5 +4,5 @@ title = "The Real Hugo"
|
|||
|
||||
[content]
|
||||
path = "templates/content/"
|
||||
style = "xcode" # Supported styles are one-dark, solarized-dark, solarized-light, github-dark, xcode, nord | taken from https://pygments.org/styles/
|
||||
style = "nord" # Supported styles are one-dark, solarized-dark, solarized-light, github-dark, xcode, nord | taken from https://pygments.org/styles/
|
||||
|
||||
|
|
|
@ -1,26 +1,34 @@
|
|||
html *{ font-family: Dejavu Sans Mono, Noto Sans Mono, Menlo, Consolas, Monaco, monospace; }
|
||||
html *{ font-family: Dejavu Sans Mono, Noto Sans Mono, Ubuntu Mono, Menlo, Consolas, Monaco, monospace; }
|
||||
body { margin:0; padding: 0; text-decoration: none; }
|
||||
|
||||
h1 {font-size: 33px; font-style: normal; font-variant: normal; font-weight: 700; line-height: 51px; }
|
||||
h2 {font-size: 26px; font-style: normal; font-variant: normal; font-weight: 700; line-height: 41px; }
|
||||
h3 { font-size: 16px; font-style: normal; font-variant: normal; font-weight: 700; line-height: 27px; }
|
||||
|
||||
p { font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; line-height: 27px; }
|
||||
blockquote { text-align: center; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; line-height: 27px; }
|
||||
|
||||
pre { font-family: monospace; font-size: 16px; font-style: normal; font-variant: normal; font-weight: 400; line-height: 27px; padding-left: 2ch;padding-top:2ch; padding-bottom: 2ch; overflow: auto; max-width: 100%; border-radius: 5px;}
|
||||
code { max-width: 100%; overflow: auto; }
|
||||
|
||||
img { max-width: 100%; }
|
||||
hr { height: 0px; }
|
||||
|
||||
a {color: inherit; }
|
||||
a:hover { text-decoration: solid underline;}
|
||||
|
||||
details > summary{ font-size: 16px;}
|
||||
details > summary:hover { }
|
||||
details summary::-webkit-details-marker,
|
||||
details summary::marker { height: auto; content: "\1F4C1\20";}
|
||||
|
||||
/*details summary::marker { display: none; content: ""; }*/
|
||||
::selection { }
|
||||
::-moz-selection { }
|
||||
|
||||
.menu { line-height: 1em; font-size: 32px; text-decoration: none; width: 100%; margin: 0 auto; opacity: 1; }
|
||||
.banner { float: left; padding-left: 2em; padding-top: 8px; text-align: center; }
|
||||
.header-wrapper { width: 100%; position: fixed; top: 0; padding-bottom: 12px; padding-top: 8px; opacity: 0.9; }
|
||||
.banner { float: left; text-align: center; width: 13%; font-weight: 700; padding-top: 8px;}
|
||||
.header-wrapper { width: 100%; position: fixed; top: 0; opacity: 0.9; }
|
||||
|
||||
.HolyGrail,
|
||||
.HolyGrail-body {
|
||||
|
@ -30,12 +38,13 @@ details summary::marker { height: auto; content: "\1F4C1\20";}
|
|||
|
||||
.HolyGrail-nav {
|
||||
padding-right: 1em;
|
||||
padding-top: 1em;
|
||||
padding-top: 3ch;
|
||||
padding-bottom: 1em;
|
||||
order: -1;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
@media (min-width: 1024px/*768px*/) {
|
||||
.header-wrapper { width: 100%; position: fixed; top: 0; padding-bottom: 12px; padding-top: 8px; opacity: 0.9; }
|
||||
.HolyGrail-body {
|
||||
flex-direction: row;
|
||||
flex: 1;
|
||||
|
@ -46,8 +55,8 @@ details summary::marker { height: auto; content: "\1F4C1\20";}
|
|||
.HolyGrail-content {
|
||||
flex: 1;
|
||||
text-align: left;
|
||||
margin-left: 2em;
|
||||
margin-right: 2em;
|
||||
margin-left: 3em;
|
||||
margin-right: 3em;
|
||||
/* max-width: 80.5em; */
|
||||
overflow: auto;
|
||||
padding-top: 1em;
|
||||
|
@ -60,15 +69,18 @@ details summary::marker { height: auto; content: "\1F4C1\20";}
|
|||
line-height: 27px;
|
||||
}
|
||||
.HolyGrail-ads {
|
||||
overflow: hidden;
|
||||
padding-right: 8px;
|
||||
min-width: 18em;
|
||||
overflow: hidden;
|
||||
padding-right: 8px;
|
||||
padding-top: 1.3ch;
|
||||
min-width: 16em;
|
||||
max-width: 18em;
|
||||
border-top-left-radius: 10px;
|
||||
border-bottom-left-radius: 10px;
|
||||
/*font-size: 13px;
|
||||
line-height: 23px;*/
|
||||
}
|
||||
.HolyGrail-nav {
|
||||
min-width: 18em;
|
||||
min-width: 16em;
|
||||
max-width: 18em;
|
||||
border-top-right-radius: 10px;
|
||||
border-bottom-right-radius: 10px;
|
||||
|
@ -79,6 +91,7 @@ details summary::marker { height: auto; content: "\1F4C1\20";}
|
|||
padding-left: 1.5ch;
|
||||
margin: 0em;
|
||||
text-align: left;
|
||||
/* direction: rtl; */
|
||||
}
|
||||
|
||||
.HolyGrail-nav li {
|
||||
|
@ -88,6 +101,8 @@ details summary::marker { height: auto; content: "\1F4C1\20";}
|
|||
text-align: left;
|
||||
/* experimental line height */
|
||||
list-style-position: inside;
|
||||
font-weight: 400;
|
||||
|
||||
}
|
||||
|
||||
.HolyGrail-nav li::marker {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
{% block head %}
|
||||
<meta charset="UTF-8">
|
||||
<script src="https://cdn.jsdelivr.net/npm/fuse.js/dist/fuse.js"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
|
||||
<script type="text/javascript" src="{{ url_for('static', filename='js/auto-complete.js') }}"></script>
|
||||
|
@ -12,6 +13,7 @@
|
|||
<title>{% block title %}{{ project_title }}{% endblock %}</title>
|
||||
<meta name="viewport" content="width-device-width, initial-scale=1">
|
||||
{% endblock %}
|
||||
|
||||
<style type="text/css">
|
||||
body { background: {{ colors.body_background }}; color: {{ colors.body }}; }
|
||||
pre { background: {{ colors.pre_background }}; color: {{ colors.pre }}; border: 1px solid {{ colors.pre_border }}; }
|
||||
|
@ -27,6 +29,7 @@
|
|||
.search-container-color input { background: {{ colors.search_input_background }}; color: {{ colors.search_input }}; border: 1px solid {{ colors.search_input_border }}; }
|
||||
.search-container-color input:focus { border: 2px solid {{ colors.search_focus_border }}; }
|
||||
</style>
|
||||
|
||||
<style>
|
||||
.autocomplete-suggestions{ background: {{ colors.autocomplete_suggestions_background }}; border: 1px solid {{ colors.autocomplete_suggestions_border }}; }
|
||||
.autocomplete-suggestion { color: {{ colors.autocomplete_suggestion }}; }
|
||||
|
@ -34,13 +37,14 @@
|
|||
.autocomplete-suggestion.selected { background: {{ colors.autocomplete_suggestion_selected_background }}; color: {{ colors.autocomplete_suggestion_selected }}; }
|
||||
.autocomplete-suggestion:hover { background: {{ colors.autocomplete_suggestion_hover_background }}; color: {{ colors.autocomplete_suggestion_hover }}; }
|
||||
</style>
|
||||
<style type="text/css">
|
||||
.directory { height: 1em; content: url("{{ url_for('static', filename='svg/1f4c1.svg') }}"); }
|
||||
</style>
|
||||
<script src='https://kit.fontawesome.com/a076d05399.js' crossorigin='anonymous'></script>
|
||||
<!--Get your own code at fontawesome.com-->
|
||||
|
||||
<style type="text/css">
|
||||
.directory { height: 1em; content: url("{{ url_for('static', filename='svg/1f4c1.svg') }}"); }
|
||||
</style>
|
||||
<!-- script src='https://kit.fontawesome.com/a076d05399.js' crossorigin='anonymous'></script -->
|
||||
</head>
|
||||
<body class="HolyGrail">
|
||||
|
||||
<header>
|
||||
<div class= "header-wrapper">
|
||||
<div class="menu">
|
||||
|
@ -59,23 +63,24 @@
|
|||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="HolyGrail-body">
|
||||
<main class="HolyGrail-content">{% block content %}{% endblock %}</main>
|
||||
<nav class="HolyGrail-nav">
|
||||
<ul>
|
||||
{%- for item in tree.children recursive %}
|
||||
<ul>
|
||||
{%- for item in tree.children recursive %}
|
||||
{%- set name = item.name.split('/')[-1] -%}
|
||||
{%- if item.type != "directory" -%}
|
||||
<li><a href="{{ item.name }}.html">{{ name }}</a></li>
|
||||
{%- if item.type != "directory" -%}
|
||||
<li><a href="{{ item.name }}.html">{{ name }}</a></li>
|
||||
{%- else -%}
|
||||
{%- if item.children|length -%}
|
||||
<details id={{ name }} ontoggle="linkClick(this); return false;" ><summary><!--i class='fas fa-folder'></i--!>{{ name[0]|upper }}{{ name[1:] }}</summary>
|
||||
{%- if item.children|length -%}
|
||||
<details id={{ name }} ontoggle="linkClick(this); return false;" ><summary><!--i class='fas fa-folder'></i--!>{{ name[0]|upper }}{{ name[1:] }}</summary>
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
{%- if item.children and item.children|length -%}
|
||||
<ul>{{ loop(item.children) }}</ul></details>
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
{%- if item.children and item.children|length -%}
|
||||
<ul>{{ loop(item.children) }}</ul></details>
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
</ul>
|
||||
</nav>
|
||||
<aside class="HolyGrail-ads">{{ toc | safe }}</aside>
|
||||
|
|
Loading…
Reference in New Issue