Fixed public template

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2018-03-07 11:05:23 +01:00
parent c401a8cf26
commit d9bd6f3253
No known key found for this signature in database
GPG Key ID: FB5ACEED51955BF8
5 changed files with 36 additions and 38 deletions

View File

@ -88,15 +88,6 @@ thead {
opacity: .5;
}
#directLink-container {
flex-wrap: wrap;
}
#directLink {
margin-left: 30px;
flex-basis: 100%;
}
/* header buttons */
#details {
display: inline-flex;

View File

@ -47,8 +47,12 @@ class LinkMenuAction extends SimpleMenuAction {
'<a id="directLink-container">' .
'<span class="icon ' . Util::sanitizeHTML($this->getIcon()) . '"></span>' .
'<label for="directLink">' . Util::sanitizeHTML($this->getLabel()) . '</label>' .
'<input id="directLink" type="text" readonly="" value="' . Util::sanitizeHTML($this->getLink()) . '">' .
'</a>' .
'</li>' .
'<li>' .
'<span class="menuitem">' .
'<input id="directLink" type="text" readonly="" value="' . Util::sanitizeHTML($this->getLink()) . '">' .
'</span>' .
'</li>';
}
}

View File

@ -84,6 +84,7 @@
max-height: 280px;
right: 0;
top: 44px;
margin: 0;
&:not(.popovermenu) {
display: none;

View File

@ -1,22 +1,22 @@
#body-public {
.header-right {
.header-right {
span:not(.popovermenu) a {
color: $color-primary-text;
}
span:not(.popovermenu) a {
color: $color-primary-text;
}
.menutoggle,
#header-primary-action[class^='icon-'] {
padding: 14px;
padding-right: 40px;
background-position: right 15px center;
color: $color-primary-text;
cursor: pointer;
}
.menutoggle,
#header-primary-action[class^='icon-'] {
padding: 14px;
padding-right: 40px;
background-position: right 15px center;
color: $color-primary-text;
cursor: pointer;
}
.menutoggle {
padding-right: 10px;
}
#header-secondary-action {
margin-right: 13px;
}
}
}
}

View File

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