Skip to content

Commit

Permalink
Merge pull request #8 from brkcvn/master
Browse files Browse the repository at this point in the history
Color name changed
  • Loading branch information
denisdulici authored Feb 4, 2022
2 parents bc288aa + ec6a03c commit 4b5faf3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Presenters/Admin/Tailwind.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function getMenuWithoutDropdownWrapper($item)
<a class="' . $this->getClass($item) . ' ' . $this->getActiveState($item) . '" href="' . $item->getUrl() . '" ' . $item->getAttributes() . '>
' . $this->getIcon($item) . '
<span class="text-sm ml-2 hover:font-bold">' . $item->title . '</span>
<span class="bg-secondary absolute h-5 -right-5 rounded-tl-lg rounded-bl-lg opacity-0 group-hover:opacity-100 transition-all" style="width: 5px;"></span>
<span class="bg-purple absolute h-5 -right-5 rounded-tl-lg rounded-bl-lg opacity-0 group-hover:opacity-100 transition-all" style="width: 5px;"></span>
</a>
</li>'
. PHP_EOL;
Expand Down Expand Up @@ -104,7 +104,7 @@ public function getMenuWithDropDownWrapper($item)
return '
<details ' . $this->getActiveStateOnChild($item) . '>
<summary class="block" href="#navbar-' . $id . '">
<div class="relative pb-2.5 flex items-center cursor-pointer text-secondary">
<div class="relative pb-2.5 flex items-center cursor-pointer text-purple">
' . $this->getIcon($item) . '
<span class="text-sm font-normal ml-2">' . $item->title . '</span>
' . $this->getChevron($item) . '
Expand Down Expand Up @@ -134,7 +134,7 @@ public function getMultiLevelDropdownWrapper($item)
<a class="' . $this->getClass($item) . $this->getActiveState($item) . '" href="#navbar-' . $id . '" aria-controls="navbar-' . $id . '">
' . $this->getIcon($item) . '
<span class="text-sm ml-2 hover:font-bold">' . $item->title . '</span>
<span class="bg-secondary absolute h-5 -right-5 rounded-tl-lg rounded-bl-lg opacity-0 group-hover:opacity-100 transition-all" style="width: 5px;"></span>
<span class="bg-purple absolute h-5 -right-5 rounded-tl-lg rounded-bl-lg opacity-0 group-hover:opacity-100 transition-all" style="width: 5px;"></span>
</a>
<div class="mt-2 ml-8 menu__submenu' . $this->getShowStateOnChild($item) . '" id="navbar-' . $id . '">
<ul class="relative pb-2.5">
Expand All @@ -157,7 +157,7 @@ public function iconChildState($item, $state = '')

public function getClass($item)
{
$class = 'flex items-center text-secondary';
$class = 'flex items-center text-purple';

$attributes = $item->attributes;

Expand All @@ -177,15 +177,15 @@ public function getIcon($item)
$state = empty($item->getChilds()) ? $this->iconState($item) : $this->iconChildState($item);

return '<div class="w-8 h-8 flex items-center justify-center">
<span class="material-icons' . $state . ' text-secondary text-2xl">' . $item->icon . '</span>
<span class="material-icons' . $state . ' text-purple text-2xl">' . $item->icon . '</span>
</div>' . PHP_EOL;
}

public function getChevron($item)
{
$state = $this->chevronState($item);

return '<span class="material-icons text-secondary absolute right-0 transform transition-all">expand' . $state . '</span>' . PHP_EOL;
return '<span class="material-icons text-purple absolute right-0 transform transition-all">expand' . $state . '</span>' . PHP_EOL;
}

public function chevronState($item, $state = '_less')
Expand Down

0 comments on commit 4b5faf3

Please sign in to comment.