66 *
77 */
88
9- div.body h1 {
10- margin-top: 1em;
11- }
12-
13- div.wrapper {
14- padding-top: 78px;
15- margin-bottom: 0px;
16- height: 637px;
17- }
18-
199/* -- HEADER ------------------------------------------------------------------------------- */
2010
2111div.header {
@@ -25,25 +15,17 @@ div.header {
2515 width: 100%;
2616 padding: 0 30px 30px 30px;
2717}
28- .textContainer {
29- margin: auto;
30- }
31-
32- /*div.logocontainer {
33- width: 50%;
34- }*/
3518
3619#siteBanner {
37- position: fixed;
3820 width: 100%;
39- height: 4.5rem ;
21+ height: 80px ;
4022 margin: 0;
41- padding: 0 20px 0 30px;
42- background-color: #140f46;
4323 opacity: 0.95;
44- transform: translate3d(0px, 0px, 0px);
4524 z-index: 1;
25+ transform: translate3d(0px, 0px, 0px);
26+ position: relative;
4627}
28+
4729#siteBanner input {
4830 border-width: 0;
4931 /*color: rgb(244, 244, 244);
@@ -52,81 +34,109 @@ div.header {
5234 letter-spacing: 0.1rem;
5335 /*width: 12rem;*/
5436}
37+
5538#siteBanner input:focus,
5639#siteBanner textarea:focus,
5740#siteBanner select:focus{
5841 outline: none;
5942}
60- svg.Header-logo-white {
61- display: inline;
62- }
63- svg.Header-logo-purple {
64- display: none;
43+
44+ div.logocontainer {
45+ height: 72px;
46+ width: 350px;
47+ position: absolute;
48+ top: 50%;
49+ transform: translateY(-50%);
50+ -ms-transform: translateY(-50%);
51+ -webkit-transform: translateY(-50%);
6552}
6653
6754div.linkcontainer {
68- /*width: 50%;*/
69- margin-left: auto;
70- margin-top: -1.3rem;
71- padding-right: 50px;
55+ width: 70%;
56+ position: absolute;
57+ top: 50%;
58+ transform: translateY(-50%);
59+ -ms-transform: translateY(-50%);
60+ -webkit-transform: translateY(-50%);
61+ right: 15px;
7262}
7363
7464div.linkbar {
7565 float:right;
7666}
67+
7768.linkbar a {
78- color: White ;
79- font-size: 18px ;
69+ color: black ;
70+ font-size: 20px ;
8071 margin-left: 20px;
8172 text-decoration: none;
8273}
8374
84-
8575.linkbar a:hover {
8676 text-decoration: underline;
8777}
88- .small-bar {
89- float:right;
90- display:none;
78+
79+
80+ /* CODEQL DOCUMENTATION AND SEARCHBOX BANNER ---------------------------------------------------------- */
81+
82+ #title-banner {
83+ background: #140f46;
84+ height: 50px;
85+ position: relative;
9186}
9287
93- .small-bar a {
94- color: White;
95- font-size: 18px;
96- margin-left: 20px;
88+ #title-banner a {
89+ color: white;
90+ font-size: 32px;
9791 text-decoration: none;
92+ position: absolute;
93+ top: 50%;
94+ transform: translateY(-50%);
95+ -ms-transform: translateY(-50%);
96+ -webkit-transform: translateY(-50%);
97+ left: 32px;
9898}
99- .small-bar a:hover {
100- text-decoration: underline;
99+
100+ #searchbox-title-banner {
101+ position: absolute;
102+ top: 50%;
103+ transform: translateY(-50%);
104+ -ms-transform: translateY(-50%);
105+ -webkit-transform: translateY(-50%);
106+ right: 32px;
101107}
102108
103- #Header-logo {
104- text-decoration: none;
105- position: relative;
106- width: 98px;
107- height: 20px;
109+ #searchbox-navbar {
110+ display: none;
108111}
109112
110- #Header-logo > * {
111- margin-top: 1.7rem;
113+ #textfield {
114+ position: relative;
115+ float: left;
112116}
113117
114- svg.Header-logo-white {
115- display: inline;
118+ #searchbutton {
119+ position: relative;
120+ float: left;
116121}
117122
123+ /* -- WRAPPER CONTAINING NAVBAR AND MAIN BOX --------------------------------------------------*/
124+
125+ div.wrapper {
126+ margin-bottom: 0px;
127+ height: 637px;
128+ }
118129
119130/* -- DOCUMENT ------------------------------------------------------------------------------- */
120131
121132div.document {
122- width: 100 %;
133+ width: 95 %;
123134 padding: 0;
124135 margin: 0 0 30px 0;
125136}
126137
127138div.documentwrapper {
128139 width: 90%;
129- box-shadow: 0.1rem 0.4rem 1.5rem #d0cee4;
130140 margin: 20px 20px 20px 20px;
131141 padding-bottom: 50px;
132142}
@@ -140,17 +150,21 @@ div.privacy {
140150 padding-bottom: 20px;
141151}
142152
153+ div.body li {
154+ margin: 0 0 0.5em 0; /* Increase spacing between list items */
155+ }
156+
143157/* -- SIDEBAR ------------------------------------------------------------------------------- */
144158
145159div.navBox {
146- overflow-y:auto;
147160 width:29%;
148161 padding-left: 25px;
149- position: fixed;
150162 height: calc(100% - 108px);
151163 z-index: 100;
152164 background-color: #FFFFFF;
153165 padding-top: 30px;
166+ color: black;
167+ float: left;
154168}
155169
156170.navBox li {
@@ -163,6 +177,7 @@ div.navBox {
163177
164178.navBox ul li a {
165179 border-bottom: none;
180+ color: black;
166181}
167182
168183.navBox ul li a:hover {
@@ -175,15 +190,63 @@ div.navBox {
175190 text-decoration: underline;
176191}
177192
193+ /* -- SIDEBAR TOC ----------------------------------------------------------------------------------*/
194+
195+ #toc h1 {
196+ font-size: 20px;
197+ font-weight: bold;
198+ margin-left: 28px;
199+ }
200+
178201/* -- SMALL SCREEN ------------------------------------------------------------------------------- */
179202
180203@media screen and (max-width: 875px){
181204
205+ body {
206+ margin: 0;
207+ padding: 0;
208+ overflow: inherit;
209+ width: 100%;
210+ }
211+
182212 #siteBanner {
183213 position: relative;
184214 }
215+
216+ div.logocontainer {
217+ width: 200px;
218+ }
219+
220+ .linkcontainer a:not(:first-child) { /* Only display Learn CodeQL link on small screen */
221+ display: none;
222+ }
223+
224+ #title-banner a {
225+ font-size: 5vw;
226+ }
227+
228+ #searchbox-title-banner { /* Move searchbox from title banner to sidebar on small screen */
229+ display: none;
230+ }
231+
232+ #searchbox-navbar {
233+ display: block;
234+ float: left;
235+ margin-right: 20px;
236+ }
237+
238+ div.navBox {
239+ position: relative;
240+ width: 95%;
241+ border-color: #2f1695;
242+ padding-top: 10px;
243+ }
244+
245+ #toc h1 { /* Slightly reposition the heading on small screens */
246+ margin-left: 18px;
247+ }
248+
185249 div.wrapper {
186- /*margin-top:-100px;*/
187250 flex-direction: column;
188251 height: 100%;
189252 width: 100%;
@@ -193,7 +256,7 @@ div.navBox {
193256 margin: 0 10px 0 10px;
194257 position: relative;
195258 height: 100%;
196- width: 100 %;
259+ width: 95 %;
197260 }
198261 div.documentwrapper {
199262 padding-left: 20px;
@@ -203,29 +266,10 @@ div.navBox {
203266 padding-left:0;
204267 }
205268
206- div.navBox {
207- position: relative;
208- width: 100%;
209- border-color: #2f1695;
210- }
211- body {
212- margin: 0;
213- padding: 0;
214- overflow: inherit;
215- width:95%;
216- }
217-
218269 div.body {
219270 min-width: unset;
220271 }
221- div.linkbar {
222- display: none;
223-
224- }
225- .small-bar {
226- display: inherit;
227- }
228-
272+
229273 ul {
230274 margin: 10px 20px 10px 20px;
231275 }
@@ -337,6 +381,7 @@ pre {
337381 border: 1px solid #BBB;
338382 background: #F6F6F6;
339383 border-radius: 5px;
384+ white-space: pre-wrap;
340385}
341386
342387/*
@@ -354,6 +399,10 @@ pre {
354399.highlight .kt { color: #7a65cd; font-weight: bold } /* built-in type keywords */
355400.highlight .kr { color: #333; font-style: italic } /* annotations */
356401
402+ div.context { /* hide rst search snippets */
403+ display: none;
404+ }
405+
357406/* -- INDEX -------------------------------------------------------------------------------- */
358407
359408table.indextable li > a {
@@ -362,16 +411,6 @@ table.indextable li > a {
362411
363412
364413/* -- FOOTER ------------------------------------------------------------------------------- */
365- div.footer {
366- display: none;
367- /* background-color: #2F1695; */
368- /* color: #FFFFFF; */
369- /* padding: 30px; */
370- /* margin: 0; */
371- /* width: calc(100% - 60px); */ /* Allow for 2 x 30px of padding (at left & right side) */
372- /* position: fixed; */
373- /* bottom: 0; */
374- }
375414
376415/* Adjust anchor targets to allow for the fixed banner */
377416div.documentwrapper a[name],
@@ -385,6 +424,12 @@ div.footnote-group :target::before
385424 margin-top: -78px; /* Prevent this showing as a gap */
386425}
387426
427+ /* make anchor highlighting more sensible */
428+
429+ dt:target::before {
430+ background-color: white;
431+ }
432+
388433/* -- CSV TABLE STYLING ------------------------------------------------------------------------------- */
389434
390435table.colwidths-auto.fullwidthtable.docutils {
@@ -444,4 +489,4 @@ blockquote.pull-quote > :last-child {
444489
445490.toggle .name.open:after {
446491 content: " ▼";
447- }
492+ }
0 commit comments