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>