diff --git a/css/stylesheet.css b/css/stylesheet.css index 175525388629e5800a725564f6efaa1847f26d37..090e9fd72dbd2ff5b696aeab52c26f3eb80540ed 100644 --- a/css/stylesheet.css +++ b/css/stylesheet.css @@ -156,7 +156,11 @@ button.indent { padding-left: 28px; } -button.collapse { +.algorithms { + box-shadow: inset 0 2px 2px rgba(0,0,0,0.36),inset 0 -2px 2px rgba(0,0,0,0.24); +} + +.algorithms.collapse { display: none; } @@ -577,4 +581,4 @@ button[disabled] { @-o-keyframes line_highlight { from { background: rgba(255, 0, 0, .1); } to { background: rgba(255, 0, 0, .3); } -} \ No newline at end of file +} diff --git a/js/dom/add_categories.js b/js/dom/add_categories.js index abff7a370dd0c641d89d3b079e0bbe854518facc..78016d5fb8f14c4f0bac189cec6b0ad2dce28ca2 100644 --- a/js/dom/add_categories.js +++ b/js/dom/add_categories.js @@ -8,8 +8,8 @@ const { each } = $; -const addAlgorithmToCategoryDOM = (category, subList, algorithm) => { - const $algorithm = $('