浏览代码

Add Feature: User can have richer formatted text into the comments (unexpected theme changes fixed)

Sam X. Chen 5 年之前
父节点
当前提交
8f899fca72
共有 2 个文件被更改,包括 24 次插入1 次删除
  1. 2 1
      client/components/main/editor.js
  2. 22 0
      client/components/main/layouts.styl

+ 2 - 1
client/components/main/editor.js

@@ -1,6 +1,7 @@
 Template.editor.onRendered(() => {
   const textareaSelector = 'textarea';
-  const enableRicherEditor = Meteor.settings.public.RICHER_EDITOR || true;
+  const enableRicherEditor =
+    Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR || true;
   const mentions = [
     // User mentions
     {

+ 22 - 0
client/components/main/layouts.styl

@@ -9,6 +9,28 @@ global-reset()
 .note-popover .popover-content .note-color-palette div .note-color-btn, .panel-heading.note-toolbar .note-color-palette div .note-color-btn
   background: none
 
+a:focus
+  outline: unset
+  outline-offset: unset
+
+a:hover,a:focus
+  color: unset
+  text-decoration: unset
+
+.badge
+  display: unset
+  min-width: unset
+  padding: unset
+  font-size: unset
+  font-weight: unset
+  line-height: unset
+  color: unset
+  text-align: unset
+  white-space: unset
+  vertical-align: unset
+  background-color: unset
+  border-radius: unset
+
 html, body, input, select, textarea, button
   font: 14px Roboto, "Helvetica Neue", Arial, Helvetica, sans-serif
   line-height: 18px