2
0
Эх сурвалжийг харах

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

Sam X. Chen 5 жил өмнө
parent
commit
8f899fca72

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

@@ -1,6 +1,7 @@
 Template.editor.onRendered(() => {
 Template.editor.onRendered(() => {
   const textareaSelector = 'textarea';
   const textareaSelector = 'textarea';
-  const enableRicherEditor = Meteor.settings.public.RICHER_EDITOR || true;
+  const enableRicherEditor =
+    Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR || true;
   const mentions = [
   const mentions = [
     // User 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
 .note-popover .popover-content .note-color-palette div .note-color-btn, .panel-heading.note-toolbar .note-color-palette div .note-color-btn
   background: none
   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
 html, body, input, select, textarea, button
   font: 14px Roboto, "Helvetica Neue", Arial, Helvetica, sans-serif
   font: 14px Roboto, "Helvetica Neue", Arial, Helvetica, sans-serif
   line-height: 18px
   line-height: 18px