From ee0a5536c17fd01b3f8241b7a4df29fd6be288b2 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 14 May 2023 15:32:42 +0800 Subject: [PATCH] merge AriaNg commits (https://github.com/mayswind/AriaNg/commit/59911e5604d80cd96198c6552d8fea21e4f1deea https://github.com/mayswind/AriaNg/commit/939c5a12c01689f92eac3cc676f94a066c993df9 https://github.com/mayswind/AriaNg/commit/c01c04cd9fba52a619b61670561922375043680c) --- app/scripts/config/aria2Options.js | 1 + app/styles/core/extend.css | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/app/scripts/config/aria2Options.js b/app/scripts/config/aria2Options.js index 459d7ed..e684731 100644 --- a/app/scripts/config/aria2Options.js +++ b/app/scripts/config/aria2Options.js @@ -58,6 +58,7 @@ }, 'checksum': { type: 'string', + required: true, pattern: '^(md5|sha-(1|224|256|384|512))=[a-zA-Z0-9]+$' }, 'connect-timeout': { diff --git a/app/styles/core/extend.css b/app/styles/core/extend.css index 2393afd..b49c631 100644 --- a/app/styles/core/extend.css +++ b/app/styles/core/extend.css @@ -1,4 +1,13 @@ /* bootstrap */ +.btn.active.focus, +.btn.active:focus, +.btn.focus, +.btn:active.focus, +.btn:active:focus, +.btn:focus { + outline: none !important; +} + .btn-group + .btn { margin-left: 4px; } @@ -110,6 +119,11 @@ } /* awesome-bootstrap-checkbox extend */ +.checkbox input[type="checkbox"]:focus + label::before, +.checkbox input[type="radio"]:focus + label::before { + outline: none !important; +} + .checkbox.checkbox-hide { padding-left: 0; }