Added header notice,

This commit is contained in:
DebaucheryLibrarian 2023-06-19 01:36:04 +02:00
parent c4e77acdee
commit 7bfb08f524
2 changed files with 16 additions and 2 deletions

View File

@ -18,6 +18,11 @@
class="disclaimer"
>{{ config.disclaimer }}</p>
<p
v-if="config.showAnnouncement"
class="announcement"
>{{ config.announcement }}</p>
<div
ref="content"
class="content"
@ -194,13 +199,21 @@ export default {
</style>
<style lang="scss" scoped>
.disclaimer {
.disclaimer,
.announcement {
padding: .5rem 1rem;
margin: 0;
color: var(--text-light);
background: var(--warn);
font-weight: bold;
box-shadow: inset 0 0 3px var(--darken-weak);
text-align: center;
}
.disclaimer {
background: var(--warn);
}
.announcement {
background: var(--notice);
}
</style>

View File

@ -55,6 +55,7 @@ $breakpoint4: 1500px;
--error: #fd5555;
--warn: #fa0;
--success: #5c2;
--notice: #25c;
--enabled: #5c2;
--enabled-background: rgba(0, 255, 0, .1);