瀏覽代碼

fix undo for url-typed inputs

and minor adjustments

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
tags/v14.0.0beta1
Arthur Schiwon 6 年之前
父節點
當前提交
84ab102146
No account linked to committer's email address

+ 5
- 1
apps/theming/css/settings-admin.scss 查看文件

@@ -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;
}


+ 2
- 1
apps/theming/js/settings-admin.js 查看文件

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

if (value === themingDefaults[setting] || value === '') {

+ 2
- 2
apps/theming/templates/settings-admin.php 查看文件

@@ -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>

+ 0
- 1
core/css/guest.css 查看文件

@@ -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…
取消
儲存