|
1 | | -{% comment %} |
2 | | - Placeholder to allow defining custom head, in principle, you can add anything here, e.g. favicons: |
3 | | - |
4 | | - 1. Head over to https://realfavicongenerator.net/ to add your own favicons. |
5 | | - 2. Customize default _includes/custom-head.html in your source directory and insert the given code snippet. |
6 | | -{% endcomment %} |
7 | | -<style> |
8 | | - .site-layout { |
9 | | - display: grid; |
10 | | - grid-template-columns: minmax(220px, 320px) 1fr; |
11 | | - gap: 2rem; |
12 | | - } |
13 | | - .wrapper.site-layout { max-width: 1200px; } |
14 | | - .sidebar { |
15 | | - position: sticky; |
16 | | - top: 1rem; |
17 | | - max-height: calc(100vh - 2rem); |
18 | | - overflow: auto; |
19 | | - padding-right: 0.75rem; |
20 | | - border-right: 1px solid #eaecef; |
21 | | - max-width: 320px; |
22 | | - } |
23 | | - .sidebar-content { font-size: 0.95em; line-height: 1.45; } |
24 | | - .sidebar-content h1 { font-size: 1.1rem; margin-top: 1rem; } |
25 | | - .sidebar-content h2 { font-size: 1rem; margin-top: 0.9rem; } |
26 | | - .sidebar-content h3 { font-size: 0.95rem; margin-top: 0.8rem; } |
27 | | - .sidebar-content ul { list-style: none; padding-left: 0; } |
28 | | - .sidebar-content li { margin: 0.25rem 0; } |
29 | | - .site-main { min-width: 0; } |
30 | | - /* Left-align site header with small padding */ |
31 | | - .site-header > .wrapper { |
32 | | - max-width: none; |
33 | | - margin: 0; |
34 | | - padding-left: 12px; |
35 | | - padding-right: 12px; |
36 | | - } |
37 | | - /* Hide top link to README and following hr generated by typedoc markdown in pages and sidebar */ |
38 | | - |
39 | | - .post-content > p:first-child { display: none; } |
40 | | - .post-content hr { display: none; } |
41 | | - |
42 | | - .sidebar-content > p:first-child { display: none; } |
43 | | - .sidebar-content hr { display: none; } |
44 | | - |
45 | | - @media (max-width: 900px) { |
46 | | - .site-layout { grid-template-columns: 1fr; } |
47 | | - .sidebar { display: none; } |
48 | | - } |
49 | | -</style> |
| 1 | +<link id="main-stylesheet" rel="stylesheet" href="{{ '/assets/css/cai-custom.css' | relative_url }}"> |
0 commit comments