Skip to content

Commit 325208a

Browse files
committed
more layout fixes
1 parent 5cfe3f7 commit 325208a

File tree

4 files changed

+26
-20
lines changed

4 files changed

+26
-20
lines changed

layouts/papers/list.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h1>{{ .Title }}</h1>
66
<p class="d-none"> Rendered from layouts/papers/list </p>
77

88
{{ range .Pages.ByPublishDate.Reverse.GroupByDate "2006" }}
9-
<div class="mt-3">
9+
<div class="py-3">
1010
<h3> {{ .Key }} </h3>
1111
{{ range .Pages }}
1212
{{ partial "paper-card" . }}

layouts/partials/paper-card.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div class="row align-items-top mt-3">
2-
<div class="col-6 col-md-3 mb-2">
2+
<div class="col-7 col-md-3 mb-2">
33
<a href="{{ .RelPermalink }}">
44
{{ if .Params.image }}
55
<img
@@ -11,8 +11,8 @@
1111
</a>
1212
</div>
1313

14-
<div class="col-10 col-md-9">
15-
<a href="{{ .RelPermalink }}"> <h5>{{ .Title }}</h5></a>
14+
<div class="col-12 col-md-9">
15+
<a class="no-underline" href="{{ .RelPermalink }}"> <h5>{{ .Title }}</h5></a>
1616

1717
<!-- AUTHOR LIST -->
1818
<div class="author-list">

layouts/partials/style.html

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,40 @@
1414
max-width: 100%;
1515
}
1616
17+
a:hover {
18+
text-decoration-color: rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,0.85));
19+
color: var(--bs-link-hover-color-rgb);
20+
}
21+
22+
a {
23+
/* color: inherit; */
24+
color: var(--bs-link-color-rgb);
25+
text-decoration: underline;
26+
text-decoration-color: rgba(var(--bs-body-color-rgb),var(--bs-link-opacity,0.5));
27+
text-underline-offset: 0.25em;
28+
}
29+
1730
/* authors list */
1831
1932
.author-list>*:not(:last-child)::after {
2033
content: ", ";
2134
}
2235

23-
.author-list-link {
24-
color: inherit;
25-
text-decoration: none;
26-
}
2736

2837
.author-list-link:hover {
2938
text-decoration: underline;
3039
}
3140

32-
/* a {
33-
color: inherit;
34-
}
35-
*/
36-
a:hover {
37-
text-decoration-color: rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,0.85));
41+
.author-list-link {
42+
color: inherit;
43+
text-decoration: none;
3844
}
3945

40-
a {
41-
color: inherit;
42-
text-decoration: underline;
43-
text-decoration-color: rgba(var(--bs-body-color-rgb),var(--bs-link-opacity,0.5));
44-
text-underline-offset: 0.25em;
46+
47+
48+
49+
.no-underline {
50+
text-decoration: none;
4551
}
4652

4753

layouts/people/people.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h1> People</h1>
1616
{{ if $subpages.Len }}
1717
<div class="pt-3">
1818
<h2>{{ $category }}</h2>
19-
<div class="row row-cols-1 row-cols-md-4 g-4">
19+
<div class="row row-cols-2 row-cols-md-4 g-4">
2020
{{ range $subpages }}
2121
<div class="col">
2222
{{ partial "person-card" . }}

0 commit comments

Comments
 (0)