Skip to content

Commit

Permalink
Fix up tide page
Browse files Browse the repository at this point in the history
  • Loading branch information
enejb committed Feb 11, 2021
1 parent 754bd54 commit f6dbeb0
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 15 deletions.
13 changes: 6 additions & 7 deletions pages/tide/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,15 @@ function get_relative_width( $height, $max, $min ) {
<ul>
<?php foreach( $tide_info->get_tide_entries() as $tide ) { ?>
<li style="position: relative;">
<?php if( $tide['different_day'] ) {?>
<label style="margin: 20px 0 5px; "><?php echo $tide['time']->format( 'l - F j, Y' ); ?></label>
<?php if ( $tide['different_day'] ) { ?>
<label style="margin: 20px 0 5px; "><?php echo $tide['time']->format( 'l - F j, Y' ); ?></label>
<?php } ?>
<div
style="width: <?php get_relative_width( $tide['height'], $tide_info->get_max_tide(), $tide_info->get_min_tide() ); ?>; background: #e1e4e8; height: 40px; position: absolute; z-index: 1;">
<div style="width: <?php get_relative_width( $tide['height'], $tide_info->get_max_tide(), $tide_info->get_min_tide() ); ?>; background: #e1e4e8; height: 40px; position: absolute; z-index: 1;">
</div>
<div class="flex space-between" style="z-index: 2; position: relative; height: 25px; padding-top: 10px;">
<div style="padding-left: 15px;"><?php echo $tide['type']; ?> tide</div>
<div class="flex space-between" style="z-index: 2; position: relative; height: 30px; padding-top: 10px;">
<div style="padding-left: 15px; width: 100px;"><?php echo $tide['type']; ?> tide</div>
<div><?php echo $tide['height']; ?>m</div>
<div>@<?php echo $tide['time']->format( 'g:i A' ); ?></div>
<div class="align-right" style="padding-right: 15px; width: 100px;">@<?php echo $tide['time']->format( 'g:i A' ); ?></div>
</div>
</li>
<?php } ?>
Expand Down
4 changes: 4 additions & 0 deletions public/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion public/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions public/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,7 @@ ul {
#tide {
ul {
li {
&:nth-child(2n + 1) {
// background-color: $background-color;
}

&:hover {
// background-color: $hover-color;
}
padding: 0;
}
}
} // end #tide
Expand Down

0 comments on commit f6dbeb0

Please sign in to comment.