Skip to content

Commit 355a0f0

Browse files
committed
Release compact default rendering
1 parent e4ecafa commit 355a0f0

6 files changed

Lines changed: 79 additions & 33 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "webifier-extensions"
7-
version = "1.0.3"
7+
version = "1.0.4"
88
description = "First-party extensions for Webifier static sites."
99
readme = "README.md"
1010
license = "MIT"

webifier_extensions/resume/assets/css/resume.css

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
.experience-description {
9999
display: block;
100100
margin-top: 0.1rem;
101+
font-size: 1.05rem;
101102
line-height: 1.25;
102103
}
103104

@@ -124,6 +125,39 @@
124125
text-align: center;
125126
}
126127

128+
.experience-heading-institution,
129+
.experience-inline-institution,
130+
.experience-mobile-institution {
131+
margin: 0;
132+
padding: 0;
133+
font-size: 1.25rem;
134+
font-weight: 600;
135+
line-height: 1.22;
136+
}
137+
138+
.experience-heading-role,
139+
.experience-inline-role,
140+
.experience-mobile-role {
141+
margin: 0;
142+
padding: 0;
143+
font-size: 1.1rem;
144+
font-weight: 300;
145+
line-height: 1.25;
146+
}
147+
148+
.experience-heading-extra,
149+
.experience-inline-extra,
150+
.experience-mobile-extra {
151+
margin: 0;
152+
padding: 0;
153+
font-size: 1.05rem;
154+
line-height: 1.25;
155+
}
156+
157+
.experience-inline-extra {
158+
margin-left: 0.4rem;
159+
}
160+
127161
.experience-separator {
128162
align-self: center;
129163
width: 1px;
@@ -145,10 +179,16 @@
145179
min-width: 0;
146180
color: var(--wf-experience-meta-color, var(--wf-muted, var(--bs-secondary-color)));
147181
font-family: var(--bs-font-monospace);
182+
font-size: 1.05rem;
148183
font-variant-numeric: tabular-nums;
149184
letter-spacing: 0.01em;
150185
}
151186

187+
.experience-tags p {
188+
font-size: inherit;
189+
line-height: 1.25;
190+
}
191+
152192
.experience-tags .text-muted {
153193
color: inherit !important;
154194
}
@@ -282,6 +322,15 @@
282322
justify-content: center;
283323
}
284324

325+
.resume-publication-title {
326+
margin: 0;
327+
padding: 0;
328+
font-size: 1.25rem;
329+
font-weight: 600;
330+
line-height: 1.25;
331+
text-align: left;
332+
}
333+
285334
@keyframes experience-enter-from-right {
286335
from {
287336
opacity: 0;

webifier_extensions/resume/experience.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
{% if date is not none or location is not none %}
33
<div class="experience-tags{% if inline %} experience-tags-inline{% endif %}{% if centered %} text-center{% endif %}">
44
{% if inline %}
5-
<p class="text-muted small mb-0">
5+
<p class="text-muted mb-0">
66
{% if date is not none %}{{date}}{% endif %}
77
{% if date is not none and location is not none %} • {% endif %}
88
{% if location is not none %}{{location}}{% endif %}
99
</p>
1010
{% else %}
1111
{% if date is not none %}
12-
<p class="text-muted small mb-0">{{date}}</p>
12+
<p class="text-muted mb-0">{{date}}</p>
1313
{% endif %}
1414
{% if location is not none %}
15-
<p class="text-muted small mb-0">{{location}}</p>
15+
<p class="text-muted mb-0">{{location}}</p>
1616
{% endif %}
1717
{% endif %}
1818
</div>
@@ -22,46 +22,46 @@
2222
{% macro heading_vertical(institution, role, extra, description=none, centered=false) -%}
2323
<div class="experience-heading-vertical{% if centered %} text-center{% endif %}">
2424
{% if institution is not none %}
25-
<h5 class="mb-0 m-0 p-0">{{institution}}</h5>
25+
<div class="experience-heading-institution">{{institution}}</div>
2626
{% endif %}
2727
{% if role is not none %}
28-
<p class="mb-0 fw-light">{{role}}</p>
28+
<p class="experience-heading-role">{{role}}</p>
2929
{% endif %}
3030
{% if extra is not none %}
31-
<p class="mb-0 small text-muted">{{extra}}</p>
31+
<p class="experience-heading-extra text-muted">{{extra}}</p>
3232
{% endif %}
3333
{% if description is not none %}
34-
<p class="experience-description small text-muted mb-0">{{description}}</p>
34+
<p class="experience-description text-muted">{{description}}</p>
3535
{% endif %}
3636
</div>
3737
{%- endmacro %}
3838

3939
{% macro heading_inline(institution, role, extra, description=none) -%}
4040
<span class="experience-inline-desktop">
41-
{% if role is not none %}<span class="experience-inline-role fw-light">{{role}}</span>{% endif %}
41+
{% if role is not none %}<span class="experience-inline-role">{{role}}</span>{% endif %}
4242
{% if role is not none and institution is not none %}
4343
<span class="experience-inline-divider"> - </span>
4444
{% endif %}
45-
{% if institution is not none %}<span class="experience-inline-institution h5 mb-0 m-0 p-0">{{institution}}</span>{% endif %}
45+
{% if institution is not none %}<span class="experience-inline-institution">{{institution}}</span>{% endif %}
4646
{% if extra is not none %}
47-
<span class="experience-inline-extra text-muted small">{{extra}}</span>
47+
<span class="experience-inline-extra text-muted">{{extra}}</span>
4848
{% endif %}
4949
</span>
5050
{% if description is not none %}
51-
<span class="experience-description experience-inline-description text-muted small">{{description}}</span>
51+
<span class="experience-description experience-inline-description text-muted">{{description}}</span>
5252
{% endif %}
5353
<span class="experience-inline-mobile">
5454
{% if institution is not none %}
55-
<span class="experience-mobile-institution h5 mb-0 m-0 p-0">{{institution}}</span>
55+
<span class="experience-mobile-institution">{{institution}}</span>
5656
{% endif %}
5757
{% if role is not none %}
58-
<span class="experience-mobile-role fw-light">{{role}}</span>
58+
<span class="experience-mobile-role">{{role}}</span>
5959
{% endif %}
6060
{% if extra is not none %}
61-
<span class="experience-mobile-extra text-muted small">{{extra}}</span>
61+
<span class="experience-mobile-extra text-muted">{{extra}}</span>
6262
{% endif %}
6363
{% if description is not none %}
64-
<span class="experience-description experience-mobile-description text-muted small">{{description}}</span>
64+
<span class="experience-description experience-mobile-description text-muted">{{description}}</span>
6565
{% endif %}
6666
</span>
6767
{%- endmacro %}

webifier_extensions/resume/publications.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="row m-0 p-0">
66
<div class="col-12 {% if 'tags' in value %}col-md-9 mb-md-0 mb-1{% endif %}">
77
{% if value.title is not none %}
8-
<div class="h5 mb-0 text-left m-0 p-0">{{value.title}}</div>
8+
<div class="resume-publication-title">{{value.title}}</div>
99
{% endif %}
1010
{% if value.authors is not none %}
1111
<div class="small d-inline-block">

webifier_extensions/standard/assets/css/main.css

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
html {
2-
font-size: 100%;
2+
font-size: 62.5%;
33
}
44

55
body {
6-
font-size: 0.95rem;
7-
line-height: 1.55;
6+
font-size: 1.25rem;
7+
line-height: 1.5;
88
}
99

1010
* > p:last-child {
@@ -38,7 +38,7 @@ a {
3838
}
3939

4040
.wf-navbar {
41-
font-size: 0.92rem;
41+
font-size: 1.2rem;
4242
}
4343

4444
.navbar-brand {
@@ -76,7 +76,7 @@ a {
7676

7777
.wf-section-label span,
7878
.wf-section-label {
79-
font-size: 0.95rem;
79+
font-size: 1.25rem;
8080
}
8181

8282
.wf-page-chrome,
@@ -143,31 +143,31 @@ footer {
143143
}
144144

145145
.app-content h1 {
146-
font-size: clamp(1.65rem, 1.35rem + 1vw, 2.15rem);
146+
font-size: clamp(2.4rem, 2rem + 0.6vw, 3rem);
147147
}
148148

149149
.app-content h2 {
150-
font-size: clamp(1.35rem, 1.2rem + 0.55vw, 1.7rem);
150+
font-size: clamp(2rem, 1.7rem + 0.45vw, 2.5rem);
151151
}
152152

153153
.app-content h3 {
154-
font-size: clamp(1.18rem, 1.08rem + 0.35vw, 1.38rem);
154+
font-size: clamp(1.6rem, 1.45rem + 0.25vw, 2rem);
155155
}
156156

157157
.app-content h4 {
158-
font-size: 1.08rem;
158+
font-size: 1.4rem;
159159
}
160160

161161
.app-content h5,
162162
.app-content h6 {
163-
font-size: 1rem;
163+
font-size: 1.25rem;
164164
}
165165

166166
.app-content p,
167167
.app-content li,
168168
.app-content td,
169169
.app-content th {
170-
font-size: 0.95rem;
170+
font-size: 1.25rem;
171171
}
172172

173173
.wf-page-chrome h1 {
@@ -222,10 +222,10 @@ footer {
222222
}
223223

224224
.wf-page-navigation a {
225-
font-size: 0.92rem;
225+
font-size: 1.2rem;
226226
}
227227

228228
.wf-page-navigation .small {
229-
font-size: 0.78rem;
229+
font-size: 1.05rem;
230230
}
231231
}

webifier_extensions/standard/templates/macros/head.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
<link rel="icon" href="{% if favicon_href.startswith('/') %}{{ baseurl }}{{ favicon_href }}{% else %}{{ baseurl }}/{{ favicon_href }}{% endif %}" {% if favicon_type %}type="{{ favicon_type }}"{% endif %}>
1212
{% endif %}
1313

14-
<!-- Local CSS Stylesheets -->
15-
<link rel="stylesheet" href="{{ baseurl }}/assets/css/jupyter.css">
16-
1714
<!-- JQuery -->
1815
<script src="https://code.jquery.com/jquery-3.5.1.min.js"
1916
integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>

0 commit comments

Comments
 (0)