Skip to content

Commit

Permalink
Throw some css at it.
Browse files Browse the repository at this point in the history
  • Loading branch information
Damnae committed Sep 1, 2023
1 parent f0dc5ee commit c82fcfc
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 8 deletions.
52 changes: 52 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,58 @@ body {
min-height: 100vh;
}

h1
{
font-variant: petite-caps;
padding: 0 .5rem;
text-align: end;
}
h2
{
font-variant: petite-caps;
text-shadow: 1px 1px 1px #181818;
background: linear-gradient(90deg, #181818 0%, #242424 10em);
border-bottom: 4px solid #242424;
margin: 1em 0 .5em;
padding-left: .5rem;
}
h2:first-child
{
margin-top: 0;
}
h3
{
font-variant: petite-caps;
padding: 0 .5rem;
margin: 1em 0 .5em;
background-color: #181818;
display: flex;
align-items: center;
text-decoration: underline;
}

h3::after
{
content: "";
background: linear-gradient(90deg, #181818 0%, #242424 2em);
margin-left: 1rem;
height: 4px;
flex-grow: 1;
}

h2
{
z-index: 1;
position:sticky;
top:0;
}
h3
{
z-index: 0;
position:sticky;
top: 2.1em;
}

a {
font-weight: 500;
color: rgba(255, 255, 255, 0.87);
Expand Down
14 changes: 6 additions & 8 deletions src/views/abilities/Modifier.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,12 @@

<template v-if="modifier._CallbackList">
<h2>Events</h2>
<template v-for="(e, key) in modifier._CallbackList">
<BlockLayout :source="e">
<span class="flow">{{ key }}</span>
<template #content>
<AnyBlock v-for="n in e.CallbackConfig" :node="n" />
</template>
</BlockLayout>
</template>
<div class="sticky-container">
<template v-for="(e, key) in modifier._CallbackList">
<h3>{{ key }}</h3>
<AnyBlock v-for="n in e.CallbackConfig" :node="n" />
</template>
</div>
</template>

<template v-if="modifier.OnAbilityPropertyChange || modifier.OnDynamicValueChange">
Expand Down

0 comments on commit c82fcfc

Please sign in to comment.