aboutsummaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/Resources/static/themes/material/css/entries.scss36
-rwxr-xr-xapp/Resources/static/themes/material/index.js13
2 files changed, 49 insertions, 0 deletions
diff --git a/app/Resources/static/themes/material/css/entries.scss b/app/Resources/static/themes/material/css/entries.scss
index 5c55caa8..e22178a5 100644
--- a/app/Resources/static/themes/material/css/entries.scss
+++ b/app/Resources/static/themes/material/css/entries.scss
@@ -2,6 +2,42 @@
2 * Entries 2 * Entries
3 * ========================================================================== */ 3 * ========================================================================== */
4 4
5.mass-buttons {
6 margin: 5px;
7
8 #selectAll {
9 position: relative;
10 opacity: initial;
11 left: 0;
12 }
13
14 span {
15 padding: 3px;
16 }
17
18 button {
19 i {
20 font-size: 12px;
21 }
22
23 height: 24px;
24 line-height: 24px;
25 padding: 0 0.5rem;
26 }
27}
28
29.card-stacked {
30 input[type=checkbox] {
31 position: relative;
32 opacity: initial;
33 left: 0;
34 }
35
36 .entry-checkbox {
37 margin-right: 10px;
38 }
39}
40
5.collection { 41.collection {
6 margin: 15px 15px 0; 42 margin: 15px 15px 0;
7 43
diff --git a/app/Resources/static/themes/material/index.js b/app/Resources/static/themes/material/index.js
index da055e80..1c28401d 100755
--- a/app/Resources/static/themes/material/index.js
+++ b/app/Resources/static/themes/material/index.js
@@ -105,4 +105,17 @@ $(document).ready(() => {
105 $('.nav-panels').css('background', 'transparent'); 105 $('.nav-panels').css('background', 'transparent');
106 return false; 106 return false;
107 }); 107 });
108
109 const mainCheckboxes = document.querySelectorAll('[data-js="checkboxes-toggle"]');
110 if (mainCheckboxes.length) {
111 [...mainCheckboxes].forEach((el) => {
112 el.addEventListener('click', () => {
113 const checkboxes = document.querySelectorAll(el.dataset.toggle);
114 [...checkboxes].forEach((checkbox) => {
115 const checkboxClone = checkbox;
116 checkboxClone.checked = el.checked;
117 });
118 });
119 });
120 }
108}); 121});