@@ -1,9 +1,5 @@
.crowi-plus .revision-toc {
- /*
- * TODO スタイル調整
- */
-
// reset official styles
float: none;
border: none;
@@ -12,6 +8,12 @@
overflow: auto;
.revision-toc-content {
- background: #ffcccc; // TODO スタイル調整
+ margin-top: 50px;
+ background: none;
+ }
+
+ // affix
+ &.affix {
+ top: 30px;
}
@@ -74,6 +74,14 @@ Crowi.revisionToc = function(contentId, tocId) {
});
+ // set affix when crowi-plus
+ var config = crowi.getConfig();
+ if ('crowi-plus' === config.layoutType) {
+ $tocId.affix({
+ offset: 100
+ });
};