Skip to content

Commit

Permalink
New page header style (minmatarfleet#454)
Browse files Browse the repository at this point in the history
* New page header style

* Removed countdown expiration text feature

* Added correction for assets section sticky top
  • Loading branch information
beautifulmim authored Jun 7, 2024
1 parent 275be39 commit 717cd72
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ import DebugTag from '@components/blocks/DebugTag.astro';
x-data={`{
top: 0,
set_top() {
this.top = document.querySelector('.post-header').offsetHeight
const VARIABLE_HEADER_CORRECTION = 5
this.top = document.querySelector('.post-header').offsetHeight - VARIABLE_HEADER_CORRECTION
}
}`}
x-bind:style="`top: ${top}px;`"
Expand Down

0 comments on commit 717cd72

Please sign in to comment.