Browse Source

优化 code 样式细节

pull/1368/head
贤心 1 year ago
parent
commit
60c1ef770a
  1. 4
      src/css/modules/code.css
  2. 2
      src/modules/code.js

4
src/css/modules/code.css

@ -2,8 +2,7 @@
* code * code
*/ */
/* 加载就绪标志 */ html #layuicss-skincodecss{display: none; position: absolute; width: 1989px;}
html #layuicss-skincodecss{display:none; position: absolute; width:1989px;}
/* 字体 */ /* 字体 */
.layui-code-wrap{font-size: 13px; font-family: "Courier New",Consolas,"Lucida Console";} .layui-code-wrap{font-size: 13px; font-family: "Courier New",Consolas,"Lucida Console";}
@ -48,7 +47,6 @@ html #layuicss-skincodecss{display:none; position: absolute; width:1989px;}
.layui-code-preview > .layui-code-view{margin: 0;} .layui-code-preview > .layui-code-view{margin: 0;}
.layui-code-preview > .layui-tab{position: relative; z-index: 1; margin-bottom: 0;} .layui-code-preview > .layui-tab{position: relative; z-index: 1; margin-bottom: 0;}
.layui-code-preview > .layui-tab > .layui-tab-title{border-width: 0;} .layui-code-preview > .layui-tab > .layui-tab-title{border-width: 0;}
.layui-code-preview > .layui-code-view > .layui-code-header{display: none;}
.layui-code-preview .layui-code-item{display: none;} .layui-code-preview .layui-code-item{display: none;}
.layui-code-preview .layui-code-view > .layui-code-lines > .layui-code-line{} .layui-code-preview .layui-code-view > .layui-code-lines > .layui-code-line{}
.layui-code-item-preview{position: relative; padding: 16px; overflow: auto;} .layui-code-item-preview{position: relative; padding: 16px; overflow: auto;}

2
src/modules/code.js

@ -597,5 +597,5 @@ layui.define(['lay', 'util', 'element', 'form'], function(exports){
// 若为源码版,则自动加载该组件依赖的 css 文件 // 若为源码版,则自动加载该组件依赖的 css 文件
if(!layui['layui.all']){ if(!layui['layui.all']){
layui.addcss('modules/code.css?v=3', 'skincodecss'); layui.addcss('modules/code.css?v=6', 'skincodecss');
} }

Loading…
Cancel
Save