Просмотр исходного кода

Off 'pre.hljs' border only customize example when border switch Off but not immediately

yusuketk 8 лет назад
Родитель
Сommit
644134dff4
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      lib/views/admin/customize.html
  2. 1 1
      resource/styles/scss/_admin.scss

+ 1 - 1
lib/views/admin/customize.html

@@ -303,7 +303,7 @@
 
 
           <p class="help-block">
           <p class="help-block">
             Examples:
             Examples:
-            <pre class="hljs"><code class="highlightjs-demo">function $initHighlight(block, cls) {
+            <pre class="hljs {% if !settingForm['customize:highlightJsStyleBorder'] %}no-border{% endif %}"><code class="highlightjs-demo">function $initHighlight(block, cls) {
   try {
   try {
     if (cls.search(/\bno\-highlight\b/) != -1)
     if (cls.search(/\bno\-highlight\b/) != -1)
       return process(block, true, 0x0F) +
       return process(block, true, 0x0F) +

+ 1 - 1
resource/styles/scss/_admin.scss

@@ -33,7 +33,7 @@
     }
     }
 
 
     // override Highlight Js Style Border
     // override Highlight Js Style Border
-    .hljs{
+    .no-border {
       border: none;
       border: none;
     }
     }
   }
   }