Просмотр исходного кода

WIP: apply bootstrap theme

* _page_list.scss
Yuki Takei 8 лет назад
Родитель
Сommit
3cc48f1703

+ 1 - 1
resource/js/util/markdown-it/toc-and-anchor.js

@@ -10,7 +10,7 @@ export default class TocAndAnchorConfigurer {
   configure(md) {
     md.use(require('markdown-it-toc-and-anchor-with-slugid').default, {
         tocLastLevel: 3,
-        anchorLinkBefore: false,
+        anchorLinkBefore: true,
         anchorLinkSymbol: '',
         anchorLinkSymbolClassName: 'ti-link',
         anchorClassName: 'revision-head-link',

+ 34 - 37
resource/styles/scss/_page_list.scss

@@ -23,54 +23,51 @@
   }
 }
 
-.page-list, .content-main {
-  .page-list-ul {
-    margin: 0;
-    padding-left: 0;
+.page-list-ul {
+  margin: 0;
+  padding-left: 0;
 
-    > li {
-      margin: 0;
-      list-style: none;
-      color: #666;
+  > li {
+    margin: 0;
+    list-style: none;
 
-      .page-list-option {
-        float: right;
-        margin-left: 4px;
-      }
+    .page-list-option {
+      float: right;
+      margin-left: 4px;
+    }
 
-      .picture {
-        width: 16px;
-        height: 16px;
-      }
+    .picture {
+      width: 16px;
+      height: 16px;
+    }
 
-      > a {
-        display: inline;
-        padding: 0 4px;
-        color: inherit;
+    > a {
+      display: inline;
+      padding: 0 4px;
+      color: inherit;
 
-        strong {
-          color: #333;
-        }
+      strong {
+        color: #333;
       }
+    }
 
-      > span.page-list-meta {
-        font-size: .9em;
-        color: #999;
+    > span.page-list-meta {
+      font-size: .9em;
+      color: #999;
 
-        >span {
-          margin-right: .3rem;
-        }
+      >span {
+        margin-right: .3rem;
       }
     }
+  }
 
-    // after second level indent
-    .page-list-ul {
-      padding-left: 2rem;
-    }
+  // after second level indent
+  .page-list-ul {
+    padding-left: 2rem;
+  }
 
-    // override .page-list-ul
-    &.page-list-ul-flat {
-      padding-left: 0;
-    }
+  // override .page-list-ul
+  &.page-list-ul-flat {
+    padding-left: 0;
   }
 }

+ 0 - 2
resource/styles/scss/_search.scss

@@ -1,8 +1,6 @@
 // import react-bootstrap-typeahead
 @import "~react-bootstrap-typeahead/css/Typeahead";
 
-@import "./page_list";
-
 .search-listpage-icon {
   font-size: 16px;
   color: #999;

+ 1 - 1
resource/styles/scss/crowi.scss

@@ -20,7 +20,7 @@
 // @import 'form';
 @import 'layout';
 @import 'layout_crowi-plus';
-// @import 'page_list';
+@import 'page_list';
 @import 'page';
 @import 'page_crowi-plus';
 // @import 'portal';