/* EasyMDE Markdown 格式符号自动隐藏 */

/* 隐藏标题符号 # */
.cm-header::before {
  content: '';
  position: absolute;
  left: -999px;
}

.cm-header-1 .cm-formatting,
.cm-header-2 .cm-formatting,
.cm-header-3 .cm-formatting,
.cm-header-4 .cm-formatting,
.cm-header-5 .cm-formatting,
.cm-header-6 .cm-formatting {
  opacity: 0.3 !important;
  font-size: 0.7em !important;
}

/* 隐藏加粗符号 ** */
.cm-strong .cm-formatting {
  opacity: 0.2 !important;
  font-size: 0.8em !important;
}

/* 隐藏斜体符号 * 或 _ */
.cm-em .cm-formatting {
  opacity: 0.2 !important;
}

/* 隐藏删除线符号 ~~ */
.cm-strikethrough .cm-formatting {
  opacity: 0.2 !important;
}

/* 隐藏引用符号 > */
.cm-quote .cm-formatting {
  opacity: 0.3 !important;
}

/* 隐藏列表符号 - 或 * */
.cm-list-1 .cm-formatting,
.cm-list-2 .cm-formatting,
.cm-list-3 .cm-formatting {
  opacity: 0.3 !important;
}

/* 隐藏链接和图片符号 */
.cm-link .cm-formatting,
.cm-image .cm-formatting {
  opacity: 0.2 !important;
  font-size: 0.8em !important;
}

/* 隐藏代码块符号 ``` */
.cm-comment .cm-formatting {
  opacity: 0.2 !important;
}

/* 鼠标悬停时显示格式符号 */
.CodeMirror-line:hover .cm-formatting {
  opacity: 0.6 !important;
  transition: opacity 0.2s ease !important;
}

/* 当前编辑行显示格式符号 */
.CodeMirror-activeline .cm-formatting {
  opacity: 0.5 !important;
}

/* 选中文本时显示格式符号 */
.CodeMirror-selectedtext .cm-formatting {
  opacity: 0.8 !important;
}
