/*
开发说明：
I.此文件作用包括：
  1.ueditor编辑器下样式与ueditor生成内容样式统一
  2.ueditor移动端补丁统一管理
II.命名需包括3级，规则为:.ic-ueditor-xxx .xxxx
  ic-为icenter-ui库css统一前缀，ic-ueditor表示icenter-ui组件库的ueditor编辑器，ic-ueditor-xxx后缀表示作用领域，如ic-ueditor-edit表示编辑状态下专用
*/

.ic-ueditor {
    font-size: 14px;
    font-family: "Microsoft YaHei", "Segoe UI", "Helvetica", "Arial", sans-serif;
    color: #313B40;
    word-break: break-all;
    a {
        color: #00abff;
    }
    ol,
    ul {
        width: auto !important;
    }
    p {
        line-height: 1.5em;
        margin: 5px 0;
    }
}

.mac-os .ic-ueditor {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica", "Arial", sans-serif;
}


/* 引入共用样式 */

.edui-insertlinenumber-checked .edui-button {
    color: #0092ff;
}

.edui-interlacetable-checked .edui-button {
    color: #0092ff;
}

.ic-ueditor table td>p:first-child,
.ic-ueditor table th>p:first-child {
    margin-top: 0;
}

.ic-ueditor table td>p:last-child,
.ic-ueditor table th>p:last-child {
    margin-bottom: 0;
}

.ic-ueditor img {
    max-width: 800px;
}

.ic-ueditor table {
    border-collapse: collapse;
    display: table;
    margin-bottom: 10px;
}

.ic-ueditor table[align=center] {
    margin: auto;
}

.ic-ueditor table .list-paddingleft-2 {
    padding-left: 15px;
}

.ic-ueditor th {
    background-color: #F7F7F7;
}

.ic-ueditor td,
.ic-ueditor th {
    padding: 5px 10px;
    border: 1px solid #DDD;
    word-break: initial;
    /*word-break: break-all; lzw:表格根据类型，自动设置该属性，无需设置*/
}

.ic-ueditor sub {
    vertical-align: sub;
    font-size: smaller;
}

.ic-ueditor sup {
    vertical-align: super;
    font-size: smaller;
}

.ic-ueditor h1 {
    display: block;
    font-size: 2em;
    -webkit-margin-before: 0.67em;
    -webkit-margin-after: 0.67em;
    -webkit-margin-start: 0px;
    /* TODO 数值为0，后面不需再添加单位*/
    -webkit-margin-end: 0px;
    font-weight: bold;
}

.ic-ueditor h2 {
    display: block;
    font-size: 1.5em;
    -webkit-margin-before: 0.83em;
    -webkit-margin-after: 0.83em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    font-weight: bold;
}

.ic-ueditor h3 {
    display: block;
    font-size: 1.17em;
    -webkit-margin-before: 1em;
    -webkit-margin-after: 1em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    font-weight: bold;
}

.ic-ueditor h4 {
    display: block;
    -webkit-margin-before: 1.33em;
    -webkit-margin-after: 1.33em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    font-weight: bold;
}

.ic-ueditor h5 {
    display: block;
    font-size: 0.83em;
    -webkit-margin-before: 1.67em;
    -webkit-margin-after: 1.67em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    font-weight: bold;
}

.ic-ueditor h6 {
    display: block;
    font-size: 0.67em;
    -webkit-margin-before: 2.33em;
    -webkit-margin-after: 2.33em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    font-weight: bold;
}

.ic-ueditor ol {
    list-style: decimal;
    padding-left: 20px;
}

.ic-ueditor ul {
    list-style: disc;
    padding-left: 20px;
}

.ic-ueditor .ue-table-interlace-color-single {
    background-color: #fcfcfc;
}

.ic-ueditor .ue-table-interlace-color-double {
    background-color: #f7faff;
}

.ic-ueditor .ue-line {
    margin: 10px 0;
    line-height: 1.5em;
    letter-spacing: 0.5px;
}


/* 表格排序 */

.ic-ueditor:not(.ic-ueditor-edit) p.ue-line {
    margin: 10px 0;
    line-height: 2em;
    letter-spacing: 0.5px;
}

.ic-ueditor:not(.ic-ueditor-edit) table.sortEnabled tr.firstRow th,
.ic-ueditor:not(.ic-ueditor-edit) table.sortEnabled tr.firstRow td {
    padding-right: 20px !important;
}

.ic-ueditor:not(.ic-ueditor-edit) table.sortEnabled tr.firstRow:hover>th {
    padding-right: 20px !important;
    background-repeat: no-repeat;
    background-position: center right;
    background-image: url(./default/images/sortable.png);
    cursor: pointer;
}


/* ueditor @功能 */

.ic-ueditor .at-user {
    color: #0074d9;
    background-color: transparent;
    padding: 0;
    margin: 0 5px;
    display: inline-block;
    text-indent: 0;
    border-radius: 6px;
}
.ic-ueditor .at-user:last-child{
  margin-right:0px;
}

.ic-ueditor .at-user::before {
    content: '@';
}

.ic-ueditor .at-user.active {
    background-color: #00abff;
    color: #fff;
    display: inline-block;
}


/* ueditor宏相关样式 */

.ic-ueditor .wiki-content .ue-table-interlace-color-single {
    background-color: #fcfcfc;
}

.ic-ueditor .wiki-content .ue-table-interlace-color-double {
    background-color: #f7faff;
}

.ic-ueditor .list-paddingleft-2 {
    padding-left: 30px;
}

.ic-ueditor .macro-button,
.ic-ueditor .macro-button:hover {
    /* 宏按钮 */
    padding: 2px 10px;
    margin: 1px;
    border-radius: 4px;
    background-color: #00abff;
    border: none;
    color: #fff !important;
    display: inline-block;
    word-break: break-all;
}

.ic-ueditor .icenter-macro-original {
    /*浏览状态下隐藏宏图片*/
    display: none;
}

.ic-ueditor .hidden {
    display: none;
}

.ic-ueditor .icenter-macro-backend-parsed.hidden {
    /*页面属性宏设置为隐藏*/
    display: none
}

.ic-ueditor .contributors-report-macro > table td {
    padding: 5px 20px;
}


/* 宏表格头部隐藏 */


/* .ic-ueditor .icenter-macro-backend-parsed table[data-sort] th {
  display: none;
} */

/*code highlight begin*/
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.ic-ueditor pre {
    font-family: Consolas, 'Courier New', monospace;
    margin: 10px 0;
    padding: 10px 14px;
    border-radius: 4px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre;
    word-wrap: break-word;
}
.pln {
  color: #000;
}

/* plain text */
@media screen {
  .str {
    color: #A31515;
  }

  /* string content */
  .kwd {
    color: #00f;
  }

  /* a keyword */
  .com {
    color: #008000;
  }

  /* a comment */
  .typ {
    color: #630c7b;
  }

  /* a type name */
  .lit {
    color: #848200;
  }

  /* a literal value */
  /* punctuation, lisp open bracket, lisp close bracket */
  .pun, .opn, .clo {
    color: #660;
  }

  .tag {
    color: #008;
  }

  /* a markup tag name */
  .atn {
    color: #606;
  }

  /* a markup attribute name */
  .atv {
    color: #080;
  }

  /* a markup attribute value */
  .dec, .var {
    color: #606;
  }

  /* a declaration; a variable name */
  .fun {
    color: red;
  }

  /* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print, projection {
  .str {
    color: #060;
  }

  .kwd {
    color: #006;
    font-weight: bold;
  }

  .com {
    color: #600;
    font-style: italic;
  }

  .typ {
    color: #404;
    font-weight: bold;
  }

  .lit {
    color: #044;
  }

  .pun, .opn, .clo {
    color: #440;
  }

  .tag {
    color: #006;
    font-weight: bold;
  }

  .atn {
    color: #404;
  }

  .atv {
    color: #060;
  }
}

/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
  margin-top: 0;
  margin-bottom: 0;
}

/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
  list-style-type: none;
}

/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
  /*background: #f2f2f2;*/
}

.L0 span, .L1 span, .L2 span, .L3 span, .L4 span, .L5 span, .L6 span, .L7 span, .L8 span, .L9 span {  
  font-family: Consolas, 'Courier New', monospace;
}
pre.prettyprint {
  border: 1px solid #ddd;
  padding: 10px;
}
.prettyprint ol.linenums {
  color: #2b91af;
  padding-left: 40px;
}
.prettyprint ol.linenums li {
  padding-left: 10px;
  list-style-type: decimal;
}
.prettyprint ol.linenums li code {
  border: none;
  padding: 0;
}

/*code highlight end*/


.ic-ueditor-edit .at-user {
  color: #00abff;
  background-color: transparent;
  padding: inherit;
  margin: 1px 5px;
  display: inline-block;
}
