fix undo for url-typed inputs

and minor adjustments

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
pull/9437/head
Arthur Schiwon 7 years ago
parent 850e2256f3
commit 84ab102146
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
  1. 6
      apps/theming/css/settings-admin.scss
  2. 3
      apps/theming/js/settings-admin.js
  3. 4
      apps/theming/templates/settings-admin.php
  4. 1
      core/css/guest.css

@ -46,7 +46,11 @@
input[type='text']:hover + .theme-undo,
input[type='text'] + .theme-undo:hover,
input[type='text']:focus + .theme-undo,
input[type='text']:active + .theme-undo {
input[type='text']:active + .theme-undo,
input[type='url']:hover + .theme-undo,
input[type='url'] + .theme-undo:hover,
input[type='url']:focus + .theme-undo,
input[type='url']:active + .theme-undo{
visibility: visible;
}

@ -83,7 +83,8 @@ function hideUndoButton(setting, value) {
url: 'https://nextcloud.com',
color: '#0082c9',
logoMime: '',
backgroundMime: ''
backgroundMime: '',
imprintUrl: ''
};
if (value === themingDefaults[setting] || value === '') {

@ -48,7 +48,7 @@ style('theming', 'settings-admin');
<div>
<label>
<span><?php p($l->t('Web address')) ?></span>
<input id="theming-url" type="url" placeholder="<?php p($l->t('Web address https://…')); ?>" value="<?php p($_['url']) ?>" maxlength="500" />
<input id="theming-url" type="url" placeholder="<?php p($l->t('https://…')); ?>" value="<?php p($_['url']) ?>" maxlength="500" />
<div data-setting="url" data-toggle="tooltip" data-original-title="<?php p($l->t('Reset to default')); ?>" class="theme-undo icon icon-history"></div>
</label>
</div>
@ -97,7 +97,7 @@ style('theming', 'settings-admin');
<div>
<label>
<span><?php p($l->t('Legal notice address')) ?></span>
<input id="theming-imprintUrl" type="url" placeholder="<?php p($l->t('Legal notice address https://…')); ?>" value="<?php p($_['imprintUrl']) ?>" maxlength="500" />
<input id="theming-imprintUrl" type="url" placeholder="<?php p($l->t('https://…')); ?>" value="<?php p($_['imprintUrl']) ?>" maxlength="500" />
<div data-setting="imprintUrl" data-toggle="tooltip" data-original-title="<?php p($l->t('Reset to default')); ?>" class="theme-undo icon icon-history"></div>
</label>
</div>

@ -746,7 +746,6 @@ footer .info a {
a.legal {
font-size: smaller;
text-decoration: underline;
}
/* for low-res screens, use Regular font-weight instead of Light */

Loading…
Cancel
Save