Debian Codegraph @

.sphinx/_templates/header.html

raw
1 <header id="header" class="p-navigation">
2
3 <style>
4 .p-navigation {
5 border-bottom: 1px solid var(--color-sidebar-background-border);
6 }
7
8 .p-navigation__nav {
9 display: flex;
10 }
11
12 ul.p-navigation__links {
13 display: flex;
14 list-style: none;
15 margin-left: 0;
16 margin-top: auto;
17 margin-bottom: auto;
18 max-width: 800px;
19 width: 100%;
20 }
21
22 ul.p-navigation__links li {
23 margin: 0 auto;
24 text-align: center;
25 width: 100%;
26 }
27
28 ul.p-navigation__links li a {
29 background-color: rgba(0, 0, 0, 0);
30 border: none;
31 border-radius: 0;
32 color: var(--color-sidebar-link-text);
33 display: block;
34 font-weight: 400;
35 line-height: 1.5rem;
36 margin: 0;
37 overflow: hidden;
38 padding: 1rem 0;
39 position: relative;
40 text-align: left;
41 text-overflow: ellipsis;
42 transition-duration: .1s;
43 transition-property: background-color, color, opacity;
44 transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
45 white-space: nowrap;
46 width: 100%;
47 }
48
49 ul.p-navigation__links .p-navigation__link,
50 ul.p-navigation__links .p-navigation__logo {
51 text-align: center;
52 }
53
54 ul.p-navigation__links .p-navigation__link:hover,
55 ul.p-navigation__links .p-dropdown__link:hover {
56 background-color: var(--color-sidebar-item-background--hover);
57 }
58
59 ul.p-navigation__links .p-navigation__sub-link {
60 background: var(--color-background-primary);
61 padding: .5rem 0 .5rem .5rem;
62 font-weight: 300;
63 }
64
65 ul.p-navigation__links .more-links-dropdown li a {
66 border-left: 1px solid var(--color-sidebar-background-border);
67 border-right: 1px solid var(--color-sidebar-background-border);
68 }
69
70 ul.p-navigation__links .more-links-dropdown li:first-child a {
71 border-top: 1px solid var(--color-sidebar-background-border);
72 }
73
74 ul.p-navigation__links .more-links-dropdown li:last-child a {
75 border-bottom: 1px solid var(--color-sidebar-background-border);
76 }
77
78 ul.p-navigation__links .p-navigation__logo {
79 padding: 0.5rem;
80 }
81
82 ul.p-navigation__links .p-navigation__logo img {
83 width: 40px;
84 }
85
86 ul.more-links-dropdown {
87 display: none;
88 overflow-x: visible;
89 height: 0;
90 z-index: 55;
91 padding: 0;
92 position: relative;
93 list-style: none;
94 margin-bottom: 0;
95 margin-top: 0;
96 }
97
98 ul.p-navigation__links li:first-child {
99 width: 130px;
100 }
101
102 @media only screen and (min-width: 800px) {
103 .nav-more-links::after {
104 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath fill='%23111' d='M8.187 11.748l6.187-6.187-1.06-1.061-5.127 5.127L3.061 4.5 2 5.561z'/%3E%3C/svg%3E");
105 background-position: center;
106 background-repeat: no-repeat;
107 background-size: contain;
108 content: "";
109 display: block;
110 height: 1rem;
111 pointer-events: none;
112 position: absolute;
113 right: 1rem;
114 text-indent: calc(100% + 10rem);
115 top: calc(1rem + 0.25rem);
116 width: 1rem;
117 }
118
119 body[data-theme=dark] .nav-more-links::after {
120 background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16'><path stroke='white' fill='white' d='M8.187 11.748l6.187-6.187-1.06-1.061-5.127 5.127L3.061 4.5 2 5.561z'/></svg>");
121 }
122
123 ul.p-navigation__links li:first-child {
124 width: 100%;
125 }
126 }
127
128 @media only screen and (min-width: 1310px) {
129 ul.p-navigation__links {
130 margin-left: calc(50% - 41em);
131 }
132 }
133
134 </style>
135
136 <div class="p-navigation__nav" role="menubar">
137
138 <ul class="p-navigation__links" role="menu">
139
140 <li>
141 <a class="p-navigation__logo" href="/">
142 <img src="{{ pathto('_static/download/containers.small.png', 1) }}" alt="Linux containers logo" border="0" />
143 </a>
144 </li>
145
146 <li>
147 <a href="/" class="p-navigation__link">Home</a>
148 </li>
149
150 <li>
151 <a href="/distrobuilder/introduction/" class="p-navigation__link">distrobuilder</a>
152 </li>
153
154
155 <li>
156 <a href="#" class="p-navigation__link nav-more-links">More resources</a>
157 <ul class="more-links-dropdown">
158 <li>
159 <a href="/distrobuilder/news/" class="p-navigation__sub-link p-dropdown__link">News</a>
160 </li>
161
162 <li>
163 <a href="/distrobuilder/contribute/" class="p-navigation__sub-link is-selected p-dropdown__link">Contribute</a>
164 </li>
165
166 <li>
167 <a href="/distrobuilder/downloads/" class="p-navigation__sub-link p-dropdown__link">Downloads</a>
168 </li>
169
170 <li>
171 <a href="https://discuss.linuxcontainers.org" class="p-navigation__sub-link p-dropdown__link">Forum</a>
172 </li>
173
174 <li>
175 <a href="https://github.com/lxc/distrobuilder" class="p-navigation__sub-link p-dropdown__link">GitHub</a>
176 </li>
177
178 </ul>
179 </li>
180
181 </ul>
182 </div>
183 </header>