aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static
diff options
context:
space:
mode:
Diffstat (limited to 'app/Resources/static')
-rw-r--r--app/Resources/static/themes/material/css/cards.scss1
-rw-r--r--app/Resources/static/themes/material/css/nav.scss5
-rwxr-xr-xapp/Resources/static/themes/material/index.js5
3 files changed, 11 insertions, 0 deletions
diff --git a/app/Resources/static/themes/material/css/cards.scss b/app/Resources/static/themes/material/css/cards.scss
index 3edbe673..7b38a743 100644
--- a/app/Resources/static/themes/material/css/cards.scss
+++ b/app/Resources/static/themes/material/css/cards.scss
@@ -134,6 +134,7 @@ main {
134 .card-fullimage .preview { 134 .card-fullimage .preview {
135 height: 14em; 135 height: 14em;
136 background: no-repeat 50%/cover; 136 background: no-repeat 50%/cover;
137 display: block;
137 } 138 }
138 139
139 &.sw { 140 &.sw {
diff --git a/app/Resources/static/themes/material/css/nav.scss b/app/Resources/static/themes/material/css/nav.scss
index 1a25a5be..7898f662 100644
--- a/app/Resources/static/themes/material/css/nav.scss
+++ b/app/Resources/static/themes/material/css/nav.scss
@@ -95,6 +95,11 @@ nav {
95 display: flex; 95 display: flex;
96 flex: 1; 96 flex: 1;
97 } 97 }
98
99 &.nav-panel-add form.disabled,
100 &.nav-panel-add form.disabled input {
101 background-color: whitesmoke;
102 }
98} 103}
99 104
100#button_filters { 105#button_filters {
diff --git a/app/Resources/static/themes/material/index.js b/app/Resources/static/themes/material/index.js
index d6afbb8a..36505d71 100755
--- a/app/Resources/static/themes/material/index.js
+++ b/app/Resources/static/themes/material/index.js
@@ -50,6 +50,11 @@ $(document).ready(() => {
50 $('#entry_url').focus(); 50 $('#entry_url').focus();
51 return false; 51 return false;
52 }); 52 });
53 const materialAddForm = $('.nav-panel-add form[name=entry]');
54 materialAddForm.on('submit', () => {
55 materialAddForm.addClass('disabled');
56 $('input#entry_url', materialAddForm).prop('readonly', true).trigger('blur');
57 });
53 $('#nav-btn-search').on('click', () => { 58 $('#nav-btn-search').on('click', () => {
54 $('.nav-panel-buttom').hide(100); 59 $('.nav-panel-buttom').hide(100);
55 $('.nav-panel-search').show(100); 60 $('.nav-panel-search').show(100);