Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
Soulter committed Apr 26, 2024
1 parent af26dd7 commit ae86319
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tmpl/campux_post.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
</head>

<body style="margin: 0">
<div style="background-color: #1E88E5; height: 5%; width: calc(100% + 50px); padding: 16px; border-radius: 0 0 8px 8px; font-weight: bold">
<span id="title-bar" style="color: white; font-size: 2.5rem; padding: 1rem;">{{ banner }}</span>
<div id="title-bar" style="background-color: #1E88E5; height: 5%; width: calc(100% + 50px); padding: 16px; border-radius: 0 0 8px 8px; font-weight: bold">
<span style="color: white; font-size: 2.5rem; padding: 1rem;">{{ banner }}</span>
</div>
<div style="padding: 2.5rem; min-height: 550px;">
<div style="display: flex;">
Expand All @@ -72,8 +72,8 @@

</html>

<script>
<script type="text/javascript">
if (document.getElementById('title-bar').innerText.trim() === '') {
document.getElementById('title-bar').style.display = 'none';
}
</script>
</script>

0 comments on commit ae86319

Please sign in to comment.