Skip to content

Commit

Permalink
Revert "fix size comment and indentation"
Browse files Browse the repository at this point in the history
This reverts commit ae862cf.
  • Loading branch information
ndricimrr committed May 11, 2020
1 parent 35662e5 commit 1eddc8a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
14 changes: 7 additions & 7 deletions website/docs/src/routes/_layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -466,15 +466,15 @@
}
}
}
.keyword-container {
display: flex;
flex-wrap: wrap;
justify-content: start;
}
.keyword-container{
display: flex;
flex-wrap: wrap;
justify-content: start;
}
label.keyword {
border: 1px solid $powder-blue;
padding: 0 7px;
background-color: rgba(237, 242, 247, 0.1);
padding: 6px 12px;
background-color:rgba(237, 242, 247, 0.1);
border-radius: 6px;
margin-right: 10px;
}
Expand Down
14 changes: 6 additions & 8 deletions website/docs/src/unified-plugins/rehype-add-keywords.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import visit from 'unist-util-visit';
import h from 'hastscript';

/**
* This unified plugin function adds keyword labels
* example markdown comment: <!-- keywords: key1, key2-->
* result : <div class="keyword-container">
* <label class="keyword">key1</label>
* <label class="keyword">key2</label>
* </div>
*/
// This unified plugin function adds keyword labels
// example markdown comment: <!-- keywords: key1, key2-->
// result : <div class="keyword-container">
// <label class="keyword">key1</label>
// <label class="keyword">key2</label>
// </div>
export default function addKeyWords() {
return function transformer(tree) {
visit(tree, ['element', 'comment'], function (node) {
Expand Down

0 comments on commit 1eddc8a

Please sign in to comment.