Merge branch 'toc_hackathon' of github.com:xwiki-labs/cryptpad into toc_hackathon

pull/1/head
yflory 4 years ago
commit abab44f7bc

@ -24,6 +24,33 @@ body.cp-app-pad {
overflow: hidden;
}
#cp-app-pad-toc {
@toc-level-indent: 15px;
margin-top: 10px;
margin-left: 10px;
width: 200px;
color: @cryptpad_text_col;
h2 {
font-size: 1.5rem;
}
p {
margin-bottom: 5px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
a {
color: @cryptpad_text_col;
}
&.cp-pad-toc-2 {
margin-left: @toc-level-indent;
}
&.cp-pad-toc-3 {
margin-left: @toc-level-indent * 2;
}
}
}
.cke_toolbox_main {
background-color: @colortheme_pad-toolbar-bg;
.cke_toolbar {

@ -671,7 +671,7 @@ define([
obj.el.scrollIntoView();
});
a.innerHTML = obj.title;
content.push(h('p.cp-pad-toc-'+level, ['• ', a]));
content.push(h('p.cp-pad-toc-'+level, a));
});
$toc.html('').append(content);
};

Loading…
Cancel
Save