Skip to content

Commit

Permalink
Added custom content for classic layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daveiano committed Jan 31, 2024
1 parent 6a83f30 commit faf756f
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 3 deletions.
1 change: 0 additions & 1 deletion skins/weewx-wdc/custom-content-after-stat.inc

This file was deleted.

1 change: 0 additions & 1 deletion skins/weewx-wdc/custom-content-bottom.inc

This file was deleted.

1 change: 0 additions & 1 deletion skins/weewx-wdc/custom-content-top.inc

This file was deleted.

18 changes: 18 additions & 0 deletions skins/weewx-wdc/includes/body-classic.inc
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,23 @@
#end for
</div>
#end if

#if os.path.exists("custom-content-left.inc") and $context == 'day' and not $daily_archive
<div class="custom-content left">
#include "custom-content-left.inc"
</div>
#end if
</div>


<div class="bx--col-sm-4 bx--col-md-8 bx--col-lg-6 bx--col-xlg-8 bx--col-max-8 layout-col">

#if os.path.exists("custom-content-top.inc") and $context == 'day' and not $daily_archive
<div class="custom-content top">
#include "custom-content-top.inc"
</div>
#end if

<!--prettier-ignore-->
#if $show_gauges
<!--prettier-ignore-->
Expand Down Expand Up @@ -134,6 +146,12 @@
#end if
#end for
</div>

#if os.path.exists("custom-content-bottom.inc") and $context == 'day' and not $daily_archive
<div class="custom-content bottom">
#include "custom-content-bottom.inc"
</div>
#end if
</div>
</div>

Expand Down
9 changes: 9 additions & 0 deletions skins/weewx-wdc/src/scss/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,15 @@ bx-structured-list-cell,
margin-right: -0.5rem;
}

.custom-content {
&.top {
margin-bottom: $spacing-05;
}
&.bottom {
margin-bottom: $spacing-05;
}
}

main.user-page {
h1,
h2,
Expand Down

0 comments on commit faf756f

Please sign in to comment.