Skip to content

Commit 798309e

Browse files
committed
Mobile overflow fix; publications lead-in
1 parent 21237e1 commit 798309e

4 files changed

Lines changed: 38 additions & 2 deletions

File tree

assets/css/custom.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,19 @@ section.alumni-section h2 {
479479
margin-bottom: 0 !important;
480480
}
481481

482+
/* Publications page lead-in paragraph */
483+
.publications-intro {
484+
margin: 0 0 1.5rem !important;
485+
padding-bottom: 0.9rem;
486+
border-bottom: 1px solid #e5e7eb;
487+
color: #4a4a4a;
488+
font-size: 0.98rem;
489+
line-height: 1.55;
490+
max-width: 50em;
491+
}
492+
.publications-intro p:first-child { margin-top: 0; }
493+
.publications-intro p:last-child { margin-bottom: 0; }
494+
482495
/* Remove spacing from any div elements that might be causing gaps */
483496
.publication-entry div {
484497
margin-bottom: 0 !important;
@@ -1622,6 +1635,7 @@ p.hero-subtitle {
16221635
line-height: 1.5;
16231636
max-width: 1100px;
16241637
text-align: center;
1638+
box-sizing: border-box;
16251639
}
16261640
.moat-footer__row {
16271641
display: flex;
@@ -1746,6 +1760,7 @@ section[id] {
17461760
border-top: 1px solid #e5e7eb;
17471761
max-width: none;
17481762
width: 100%;
1763+
box-sizing: border-box;
17491764
position: sticky;
17501765
bottom: 0;
17511766
z-index: 50;

content/publication/_index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ banner:
1616
caption: ''
1717
image: ''
1818
---
19+
20+
We publish our research at major systems venues such as ASPLOS, FAST, OSDI, and SOSP. PDFs, slides, posters, code, and BibTeX entries are linked beside each paper below.

layouts/_default/baseof.html

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
<title>{{ .Site.Title }}</title>
77
{{ partial "custom_head.html" . }}
88
<style>
9+
/* Global box-sizing reset so percentage widths + padding don't overflow the viewport */
10+
*, *::before, *::after { box-sizing: border-box; }
11+
912
body {
1013
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
1114
line-height: 1.6;
@@ -14,6 +17,11 @@
1417
background-color: #f8f9fa;
1518
min-height: 100vh;
1619
}
20+
/* Keep horizontal-overflow clipping on the html element so it doesn't break position:sticky
21+
on descendants (overflow-x:hidden on body would create a new block formatting context
22+
and de-stick the sticky navbar + footer). overflow-x:clip is safer when supported;
23+
html-level clip on older browsers still permits sticky to work. */
24+
html { overflow-x: clip; }
1725

1826
.page-header {
1927
background-color: white;
@@ -66,6 +74,13 @@
6674
padding: 2rem;
6775
background-color: white;
6876
box-shadow: 0 0 20px rgba(0,0,0,0.1);
77+
box-sizing: border-box;
78+
}
79+
@media (max-width: 768px) {
80+
.main-container {
81+
max-width: 100%;
82+
padding: 1rem;
83+
}
6984
}
7085

7186
/* Special width for project pages */
@@ -487,8 +502,9 @@
487502
.people-section {
488503
padding: 0 2px;
489504
}
490-
505+
491506
.people-grid.vertical {
507+
grid-template-columns: repeat(2, 1fr);
492508
gap: 12px;
493509
}
494510

layouts/publication/list.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
{{ define "main" }}
22
<div class="publications-container publication-page">
3+
{{ with .Content }}
4+
<div class="publications-intro">{{ . }}</div>
5+
{{ end }}
36
{{ $sorted := .Pages.ByDate.Reverse }}
47
{{ range $index, $item := $sorted }}
58
{{ partial "views/citation.html" (dict "item" $item "index" $index) }}
69
{{ end }}
710
</div>
8-
{{ end }}
11+
{{ end }}

0 commit comments

Comments
 (0)