Skip to content

Commit d5df4ef

Browse files
change style
1 parent 37c3f91 commit d5df4ef

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

static/style.css

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,18 @@
2525
--text-lg--line-height: calc(1.75 / 1.125);
2626
--text-xl: 1.25rem;
2727
--text-xl--line-height: calc(1.75 / 1.25);
28+
--text-2xl: 1.5rem;
29+
--text-2xl--line-height: calc(2 / 1.5);
30+
--text-3xl: 1.875rem;
31+
--text-3xl--line-height: calc(2.25 / 1.875);
2832
--text-4xl: 2.25rem;
2933
--text-4xl--line-height: calc(2.5 / 2.25);
3034
--text-5xl: 3rem;
3135
--text-5xl--line-height: 1;
3236
--text-6xl: 3.75rem;
3337
--text-6xl--line-height: 1;
3438
--font-weight-medium: 500;
39+
--font-weight-semibold: 600;
3540
--font-weight-bold: 700;
3641
--tracking-tight: -0.025em;
3742
--radius-xl: 0.75rem;
@@ -926,6 +931,10 @@
926931
.text-justify {
927932
text-align: justify;
928933
}
934+
.text-2xl {
935+
font-size: var(--text-2xl);
936+
line-height: var(--tw-leading, var(--text-2xl--line-height));
937+
}
929938
.text-4xl {
930939
font-size: var(--text-4xl);
931940
line-height: var(--tw-leading, var(--text-4xl--line-height));
@@ -942,6 +951,10 @@
942951
font-size: var(--text-sm);
943952
line-height: var(--tw-leading, var(--text-sm--line-height));
944953
}
954+
.text-xl {
955+
font-size: var(--text-xl);
956+
line-height: var(--tw-leading, var(--text-xl--line-height));
957+
}
945958
.font-bold {
946959
--tw-font-weight: var(--font-weight-bold);
947960
font-weight: var(--font-weight-bold);
@@ -950,6 +963,10 @@
950963
--tw-font-weight: var(--font-weight-medium);
951964
font-weight: var(--font-weight-medium);
952965
}
966+
.font-semibold {
967+
--tw-font-weight: var(--font-weight-semibold);
968+
font-weight: var(--font-weight-semibold);
969+
}
953970
.tracking-tight {
954971
--tw-tracking: var(--tracking-tight);
955972
letter-spacing: var(--tracking-tight);
@@ -1072,6 +1089,18 @@
10721089
padding-inline: calc(var(--spacing) * 6);
10731090
}
10741091
}
1092+
.sm\:text-2xl {
1093+
@media (width >= 40rem) {
1094+
font-size: var(--text-2xl);
1095+
line-height: var(--tw-leading, var(--text-2xl--line-height));
1096+
}
1097+
}
1098+
.sm\:text-3xl {
1099+
@media (width >= 40rem) {
1100+
font-size: var(--text-3xl);
1101+
line-height: var(--tw-leading, var(--text-3xl--line-height));
1102+
}
1103+
}
10751104
.sm\:text-5xl {
10761105
@media (width >= 40rem) {
10771106
font-size: var(--text-5xl);
@@ -1090,6 +1119,12 @@
10901119
line-height: var(--tw-leading, var(--text-xl--line-height));
10911120
}
10921121
}
1122+
.md\:text-4xl {
1123+
@media (width >= 48rem) {
1124+
font-size: var(--text-4xl);
1125+
line-height: var(--tw-leading, var(--text-4xl--line-height));
1126+
}
1127+
}
10931128
.md\:text-6xl {
10941129
@media (width >= 48rem) {
10951130
font-size: var(--text-6xl);

templates/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<div class="max-w-5xl mx-auto py-12 px-4 sm:px-6 lg:px-8">
1717
<!-- Header -->
1818
<header class="text-center mb-12">
19-
<h1 class="text-4xl font-bold tracking-tight text-gray-900 sm:text-5xl md:text-6xl mb-6">
19+
<h1 class="text-4xl tracking-tight text-gray-900 md:text-6xl mb-6">
2020
{{ section.title }}
2121
</h1>
2222

@@ -78,7 +78,7 @@ <h1 class="text-4xl font-bold tracking-tight text-gray-900 sm:text-5xl md:text-6
7878
{% endif %}
7979

8080
<!-- Content -->
81-
<main class="prose prose-lg prose-gray mx-auto text-justify">
81+
<main class="prose prose-gray mx-auto text-justify">
8282
{{ section.content | safe }}
8383
</main>
8484

@@ -87,7 +87,7 @@ <h1 class="text-4xl font-bold tracking-tight text-gray-900 sm:text-5xl md:text-6
8787
This website is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/" class="text-blue-600 hover:underline">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
8888
</p>
8989
<p class="mt-2">
90-
Template adapted from <a href="https://github.com/nerfies/nerfies.github.io" class="text-blue-600 hover:underline">Nerfies</a>.
90+
Template inspired by <a href="https://github.com/nerfies/nerfies.github.io" class="text-blue-600 hover:underline">Nerfies</a>.
9191
</p>
9292
</footer>
9393
</div>

0 commit comments

Comments
 (0)