Skip to content

Commit

Permalink
Merge pull request #10 from adrianbj/full-row-hover
Browse files Browse the repository at this point in the history
Port AOS Full Rover Hover for pagelist actions
  • Loading branch information
BernhardBaumrock authored May 18, 2024
2 parents 87e50a8 + 0b2810e commit 38ea4e6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tweaks/PageList/FullRowHover/FullRowHover.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
html:not(.pListShowActions) #content .PageList .PageListItem:hover .PageListActions {
display: inline-block !important;
}
html:not(.pListShowActions) #content .PageList .PageListItemOpen .PageListActions {
display: none !important;
}
html:not(.pListShowActions) #content .PageList .PageListItemOpen:hover .PageListActions {
display: inline-block !important;
}
18 changes: 18 additions & 0 deletions tweaks/PageList/FullRowHover/FullRowHover.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace RockAdminTweaks;

class FullRowHover extends Tweak
{
public function info(): array
{
return [
'description' => 'Show pagelist actions on full row hover',
];
}

public function ready(): void
{
$this->loadCSS();
}
}

0 comments on commit 38ea4e6

Please sign in to comment.