diff options
author | Thedro Neely <thedroneely@gmail.com> | 2022-07-19 11:59:45 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2022-07-19 11:59:45 -0400 |
commit | ea54421b15c9705f86a8d25a6caaa40791d66e18 (patch) | |
tree | 546ec8892c2140a48129fd521189dc68b567c95b /app/views/components/navigator.link.php | |
parent | f888991f298e59933250c8d56080c1805068f5e0 (diff) | |
download | thedroneely.com-ea54421b15c9705f86a8d25a6caaa40791d66e18.tar.gz thedroneely.com-ea54421b15c9705f86a8d25a6caaa40791d66e18.tar.bz2 thedroneely.com-ea54421b15c9705f86a8d25a6caaa40791d66e18.zip |
app: Refactor and CSS rewrite
Diffstat (limited to 'app/views/components/navigator.link.php')
-rw-r--r-- | app/views/components/navigator.link.php | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/app/views/components/navigator.link.php b/app/views/components/navigator.link.php index 3b57d62..f255903 100644 --- a/app/views/components/navigator.link.php +++ b/app/views/components/navigator.link.php @@ -1,14 +1,15 @@ -<a href="<?php echo $route ?? null; ?>" class="navbar-item navbar__icon has-text-centered +<a + href="<?php echo $route ?? null; ?>" <?php $hiddenLabels = [ 'Profile' ]; - if (in_array($label, $hiddenLabels)) { echo ' navbar__icon__hidden'; } - if ($navigation->isActive($route ?? null)) { echo ' navbar__active'; } + if (in_array($label, $hiddenLabels)) { echo ' data-hidden'; } + if ($navigation->isActive($route ?? null)) { echo ' data-active'; } ?> -"> - <div class="has-text-centered"> - <?php echo icon($icon ?? null); ?> - <p title="<?php echo $label ?? null; ?>" class="navbar__icon__label"><?php echo $label ?? null; ?></p> - </div> +> + <?php echo icon($icon ?? null); ?> + <span title="<?php echo $label ?? null; ?>"> + <?php echo $label ?? null; ?> + </span> </a> <?php $route = $label = $icon = null; ?> |