Skip to content

Commit 0d69b16

Browse files
committed
style: increase title size and constrain content text size
1 parent d59b89a commit 0d69b16

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

static/css/app.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3824,6 +3824,24 @@
38243824
padding-bottom: 100px;
38253825
}
38263826
}
3827+
.\[\&_h1\]\:text-lg {
3828+
& h1 {
3829+
font-size: var(--text-lg);
3830+
line-height: var(--tw-leading, var(--text-lg--line-height));
3831+
}
3832+
}
3833+
.\[\&_h2\]\:text-base {
3834+
& h2 {
3835+
font-size: var(--text-base);
3836+
line-height: var(--tw-leading, var(--text-base--line-height));
3837+
}
3838+
}
3839+
.\[\&_p\]\:text-sm {
3840+
& p {
3841+
font-size: var(--text-sm);
3842+
line-height: var(--tw-leading, var(--text-sm--line-height));
3843+
}
3844+
}
38273845
.\[\&\>tr\]\:bg-white {
38283846
&>tr {
38293847
background-color: var(--color-white);

templates/includes/announcement_modal.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<form method="dialog" class="absolute right-4 top-4">
1010
<button class="text-2xl cursor-pointer hover:opacity-70"></button>
1111
</form>
12-
<h3 class="font-bold text-lg">📢 {{ latest_announcement.title }}</h3>
13-
<div class="py-4">
12+
<h3 class="font-bold text-3xl mb-4">📢 {{ latest_announcement.title }}</h3>
13+
<div class="py-4 text-sm prose prose-sm max-w-none [&_p]:text-sm [&_h1]:text-lg [&_h2]:text-base">
1414
{{ latest_announcement.content|safe }}
1515
</div>
1616
</div>

0 commit comments

Comments
 (0)