Browse Source

Better primary visual on public pages

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
tags/v15.0.0beta1
John Molakvoæ (skjnldsv) 5 years ago
parent
commit
f54b201f23
No account linked to committer's email address
2 changed files with 17 additions and 3 deletions
  1. 14
    0
      apps/files_sharing/css/public.scss
  2. 3
    3
      core/templates/layout.public.php

+ 14
- 0
apps/files_sharing/css/public.scss View File

@@ -192,6 +192,20 @@ thead {
font-weight: bold;
}

// hide the download entry on the menu
// on public share when NOT on mobile
@media only screen and (min-width: 769px) {
#body-public {
.header-right {
#header-actions-menu {
> ul > li#download {
display: none;
}
}
}
}
}

// hide the primary on public share on mobile
@media only screen and (max-width: 768px) {
#body-public {

+ 3
- 3
core/templates/layout.public.php View File

@@ -51,18 +51,18 @@
?>
<div class="header-right">
<span id="header-primary-action" class="<?php if($template->getActionCount() === 1) { p($primary->getIcon()); } ?>">
<a href="<?php p($primary->getLink()); ?>">
<a href="<?php p($primary->getLink()); ?>" class="primary button">
<span><?php p($primary->getLabel()) ?></span>
</a>
</span>
<?php if($template->getActionCount()>1) { ?>
<?php if($template->getActionCount() > 1) { ?>
<div id="header-secondary-action">
<span id="header-actions-toggle" class="menutoggle icon-more-white"></span>
<div id="header-actions-menu" class="popovermenu menu">
<ul>
<?php
/** @var \OCP\AppFramework\Http\Template\IMenuAction $action */
foreach($template->getOtherActions() as $action) {
foreach($others as $action) {
print_unescaped($action->render());
}
?>

Loading…
Cancel
Save