refactor(assets): vendor 资产迁入标准目录并全仓去除 zibll 标识
- assets/vendor 全量迁移: fontawesome5→assets/fontawesome5, css→assets/css, js→assets/js/runtime(避开 14 个同名自有文件), img 合并去重→assets/img, fonts→assets/fonts; 删除 assets/vendor - libs 五个与 widgets/third-party 字节相同的库不重复入库, loader paths 改指向 - 运行时切换: _win.uri=assets 根, loader baseUrl=/js/runtime, enlighter 注入 路径同步; PHP 7 个引用文件切换并改名 $zibll_*→$runtime_* - 去品牌: Qinver 头注释/品牌 console.log/演示链接清除, 默认文案中性化 - 功能标识符改名: zib__→aksrt__, zib_ajax→aksrt_ajax, window.zib→ window.aksrtLegacy, zibllblock/*→aksrtblock/*, .zib-widget→.aksrt-panel, .zib-slider→.aksrt-slider, zib_menu_options meta 键等 - 自有 CSS 改名: legacy-utilities/compat-vars/footer shell - admin SPA 重建; 契约测试同步(路径/断言/文件更名) - 例外保留: tests/visual 对照环境与 fixtures 前缀(外部 Zibll 产品引用) 验证: php -l 133 个改动文件通过; runtime 86 个 JS node --check 通过; 契约测试 68/70(2 个失败经 stash 对照确认为存量问题)
This commit is contained in:
@@ -0,0 +1,670 @@
|
||||
body {
|
||||
font-size: 16px;
|
||||
line-height: 1.6;
|
||||
word-wrap: break-word;
|
||||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
--muted-bg-color: #eee;
|
||||
--main-color: #4e5358;
|
||||
--main-bg-color: #fff;
|
||||
--main-border-color: rgba(50, 50, 50, 0.06);
|
||||
--muted-color: #999;
|
||||
|
||||
background: transparent;
|
||||
color: var(--main-color);
|
||||
}
|
||||
|
||||
body.dark-theme {
|
||||
--muted-color: #bbb;
|
||||
--muted-bg-color: #2d2e31;
|
||||
--main-bg-color: #323335;
|
||||
--main-color: #e5eef7;
|
||||
--main-border-color: rgba(114, 114, 114, 0.1);
|
||||
}
|
||||
|
||||
img {
|
||||
margin: 0 auto;
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
ol {
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
pre {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
table {
|
||||
border-top: solid 1px var(--main-border-color);
|
||||
border-left: solid 1px var(--main-border-color);
|
||||
width: 100%;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
table th {
|
||||
background-color: transparent;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
table td,
|
||||
table th {
|
||||
border-bottom: solid 1px var(--main-border-color);
|
||||
border-right: solid 1px var(--main-border-color);
|
||||
padding: 5px 10px;
|
||||
}
|
||||
|
||||
body > h1,
|
||||
body > h2,
|
||||
body > h3,
|
||||
body > h4 {
|
||||
position: relative;
|
||||
padding-bottom: 0.2em;
|
||||
}
|
||||
|
||||
body > h1:not([class]):before,
|
||||
body > h2:not([class]):before,
|
||||
body > h3:not([class]):before,
|
||||
body > h4:not([class]):before {
|
||||
position: absolute;
|
||||
content: '';
|
||||
width: 4px;
|
||||
background: #3098f8;
|
||||
top: 10%;
|
||||
left: 2px;
|
||||
bottom: 10%;
|
||||
border-radius: 5px;
|
||||
box-shadow: 1px 1px 3px -1px #3098f8;
|
||||
}
|
||||
|
||||
body > h1:not([class]):before,
|
||||
body > h2:not([class]):before,
|
||||
body > h3:not([class]):before,
|
||||
body > h4:not([class]):before {
|
||||
width: 40px;
|
||||
height: 3px;
|
||||
top: auto;
|
||||
left: 0;
|
||||
bottom: 3px;
|
||||
transition: 0.4s;
|
||||
}
|
||||
|
||||
body > h3:not([class]):before,
|
||||
body > h4:not([class]):before {
|
||||
width: 25px !important;
|
||||
height: 2px !important;
|
||||
}
|
||||
|
||||
.alignnone {
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.alignleft {
|
||||
float: none;
|
||||
text-align: right;
|
||||
margin: 0;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.aligncenter {
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.alignright {
|
||||
float: none;
|
||||
text-align: right;
|
||||
margin: 0;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: unset;
|
||||
color: #006ae3;
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #006ae3;
|
||||
text-decoration: underline !important;
|
||||
}
|
||||
|
||||
a[data-wplink-url-error]::before {
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
.comment pre,
|
||||
pre {
|
||||
margin: 20px 0;
|
||||
font: 12px/20px 'courier new';
|
||||
background: var(--main-border-color);
|
||||
padding: 10px 20px;
|
||||
color: var(--muted-color);
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 20px auto;
|
||||
padding: 20px 15px 15px;
|
||||
background-color: var(--main-border-color);
|
||||
font-size: 16px;
|
||||
line-height: 20px;
|
||||
color: var(--muted-color);
|
||||
border-left: 4px solid var(--main-border-color);
|
||||
}
|
||||
|
||||
blockquote p {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
margin-bottom: 5px;
|
||||
font-size: 16px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.mce-content-body code[data-mce-selected],
|
||||
.mce-content-body code {
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.mce-content-body code:not([class]) {
|
||||
color: #ff3c98;
|
||||
background-color: rgba(253, 153, 153, 0.2);
|
||||
margin: 2px;
|
||||
border-radius: 4px;
|
||||
font-size: 0.9em;
|
||||
padding: 2px 4px;
|
||||
}
|
||||
|
||||
.enlighter-pre {
|
||||
max-height: 300px;
|
||||
overflow-y: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
-ms-overflow-style: none;
|
||||
overflow: -moz-scrollbars-none;
|
||||
background: var(--main-border-color);
|
||||
}
|
||||
|
||||
.enlighter-pre::-webkit-scrollbar {
|
||||
width: 2px;
|
||||
height: 2px;
|
||||
}
|
||||
|
||||
.enlighter-pre::-webkit-scrollbar-track {
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.enlighter-pre::-webkit-scrollbar-thumb {
|
||||
border-radius: 10px;
|
||||
background: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
.enlighter-pre:hover::-webkit-scrollbar-thumb {
|
||||
background: rgba(146, 146, 146, 0.3);
|
||||
}
|
||||
|
||||
.enlighter-pre::-webkit-scrollbar-thumb:hover {
|
||||
background: rgba(145, 145, 145, 0.7);
|
||||
}
|
||||
|
||||
.enlighter-pre::-webkit-scrollbar-thumb:window-inactive {
|
||||
background: rgba(146, 146, 146, 0.1);
|
||||
}
|
||||
|
||||
code.gl {
|
||||
white-space: break-spaces;
|
||||
line-height: 1.2;
|
||||
border: none;
|
||||
}
|
||||
|
||||
code.gl::before {
|
||||
content: '高亮代码';
|
||||
position: absolute;
|
||||
right: 6px;
|
||||
top: 8px;
|
||||
background: linear-gradient(135deg, #3dcabd 10%, #254bdd 100%);
|
||||
color: #fff;
|
||||
padding: 3px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.quote_q {
|
||||
padding: 1.2em;
|
||||
margin: 10px 0 20px 0;
|
||||
position: relative;
|
||||
border-radius: 6px;
|
||||
--quote-color: var(--main-color);
|
||||
color: var(--quote-color);
|
||||
}
|
||||
|
||||
.quote_q > div,
|
||||
.quote_q > p {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
padding-left: 2em;
|
||||
opacity: 0.6;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.quote_q > div > p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.quote_q::before {
|
||||
content: '';
|
||||
border-radius: 6px;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
opacity: 0.04;
|
||||
right: 0;
|
||||
background: var(--quote-color);
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.quote_q.quote-mce::after {
|
||||
font: normal normal 900 14px/1 "Font Awesome 5 Free";
|
||||
content: '\f10d';
|
||||
font-size: 1.2em;
|
||||
margin-right: 0.5em;
|
||||
position: absolute;
|
||||
color: var(--quote-color);
|
||||
top: 20px;
|
||||
left: 20px;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.quote_q [contenteditable='true'] {
|
||||
outline: none !important;
|
||||
}
|
||||
|
||||
.quote_q .fa {
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.qe_wzk_c-red {
|
||||
--quote-color: rgba(220, 63, 63, 1);
|
||||
}
|
||||
|
||||
.qe_wzk_lan {
|
||||
--quote-color: rgba(3, 91, 138, 1);
|
||||
}
|
||||
|
||||
.qe_wzk_lv {
|
||||
--quote-color: rgba(35, 121, 14, 1);
|
||||
}
|
||||
|
||||
.quote_q .fa {
|
||||
margin-right: 15px;
|
||||
opacity: 0.3;
|
||||
font-size: 40px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.mce-preview-object.mce-object-iframe {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.iframe-absbox {
|
||||
padding-bottom: 56%;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
background: var(--muted-bg-color);
|
||||
}
|
||||
|
||||
.iframe-absbox .mce-preview-object.mce-object-iframe,
|
||||
.iframe-absbox iframe {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.iframe-absbox .mce-preview-object.mce-object-iframe::before {
|
||||
content: attr(data-mce-p-src);
|
||||
content: '正在加载嵌入视频:' attr(data-mce-p-src);
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
border: 0;
|
||||
text-align: center;
|
||||
height: 6em;
|
||||
line-height: 1.4;
|
||||
padding: 10px;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.single-posts-lists,
|
||||
.new-dplayer.dplayer {
|
||||
height: 200px;
|
||||
background: var(--muted-bg-color);
|
||||
border-radius: 4px;
|
||||
border: 1px solid var(--main-border-color);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.new-dplayer.dplayer::before {
|
||||
display: block;
|
||||
font: normal normal 900 14px/1 "Font Awesome 5 Free";
|
||||
margin-right: 1em;
|
||||
font-size: 14px;
|
||||
font-size: inherit;
|
||||
content: '\f1c8';
|
||||
margin-right: 0.4em;
|
||||
}
|
||||
|
||||
.new-dplayer.dplayer::after {
|
||||
content: attr(data-video-name);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.single-posts-lists {
|
||||
height: auto;
|
||||
display: block;
|
||||
padding: 30px 40px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.single-posts-lists::before {
|
||||
display: block;
|
||||
content: '文章列表块';
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.tinymce-hide {
|
||||
margin-bottom: 20px;
|
||||
border: 1px dashed #f93872;
|
||||
border-radius: 8px;
|
||||
padding: 6px;
|
||||
}
|
||||
|
||||
.tinymce-hide > .hide-before {
|
||||
font-size: 13px;
|
||||
color: #db4c77;
|
||||
border-bottom: 1px dashed #f93872;
|
||||
margin: -5px 20px 6px -5px;
|
||||
padding: 6px 12px;
|
||||
padding-top: 6px;
|
||||
padding-top: 0;
|
||||
display: inline-block;
|
||||
border-right: 1px dashed #f93872;
|
||||
border-radius: 0 0 8px 0;
|
||||
}
|
||||
|
||||
.tinymce-hide > .hide-after {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tinymce-hide > [contenteditable='true'] {
|
||||
background: var(--main-bg-color);
|
||||
border-radius: 6px;
|
||||
padding: 1px 10px;
|
||||
}
|
||||
|
||||
.file-download-icon {
|
||||
background: var(--main-bg-color);
|
||||
border-radius: 4px;
|
||||
width: 3em;
|
||||
height: 0;
|
||||
padding-bottom: 100%;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.file-download-icon img.fit-cover {
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.file-download-icon::before {
|
||||
position: absolute;
|
||||
content: '\f019';
|
||||
font: normal normal 900 16px/1 "Font Awesome 5 Free";
|
||||
top: 0.8em;
|
||||
left: 0.8em;
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.muted-2-color {
|
||||
color: var(--muted-color);
|
||||
}
|
||||
|
||||
/**flex布局轮子**/
|
||||
.flex {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.inflex {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
/**flex布局上下方向**/
|
||||
.inflex.xx,
|
||||
.flex.xx {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/**flex布局上下居中**/
|
||||
.inflex.ac,
|
||||
.flex.ac {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/**flex布局上下靠底部**/
|
||||
.inflex.ab,
|
||||
.flex.ab {
|
||||
align-items: baseline;
|
||||
}
|
||||
|
||||
/**flex布局上下左右居中**/
|
||||
.inflex.jc,
|
||||
.flex.jc {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
/**flex布局两端对齐**/
|
||||
.inflex.jsb,
|
||||
.flex.jsb {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
/**flex元素放大比例-1**/
|
||||
.flex .grow1 {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
/**flex元素缩小比例-0:不缩小**/
|
||||
.flex .shrink0 {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/**flex元素放大0缩小0**/
|
||||
.flex .flex0 {
|
||||
flex: none;
|
||||
}
|
||||
|
||||
/**flex元素放大1缩小1**/
|
||||
.flex .flex1 {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.muted-box {
|
||||
background: var(--main-border-color);
|
||||
border-radius: 4px;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.px12 {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.em09 {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.em12 {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
.mr3 {
|
||||
margin-right: 3px;
|
||||
}
|
||||
|
||||
.mr6 {
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
.mr10 {
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
||||
.mr20 {
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
.ml3 {
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
.mln3 {
|
||||
margin-left: -3px;
|
||||
}
|
||||
|
||||
.ml6 {
|
||||
margin-left: 6px;
|
||||
}
|
||||
|
||||
.ml10 {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.ml20 {
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
.mt6 {
|
||||
margin-top: 6px;
|
||||
}
|
||||
|
||||
.mt10 {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.mt15 {
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.mt20 {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.mb6 {
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.mb10 {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.mb20 {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.padding-10 {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.padding-15 {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.but {
|
||||
border-radius: 4px;
|
||||
background: var(--this-bg);
|
||||
color: var(--this-color);
|
||||
display: inline-block;
|
||||
border-radius: 4px;
|
||||
transition: 0.15s;
|
||||
border: 1px solid var(--this-border);
|
||||
vertical-align: middle;
|
||||
font-size: 14px;
|
||||
padding: 5px 20px;
|
||||
text-align: center;
|
||||
box-shadow: var(--this-shadow);
|
||||
--main-color: var(--this-color);
|
||||
--this-bg: rgba(136, 136, 136, 0.1);
|
||||
--this-border: transparent;
|
||||
--this-shadow: none;
|
||||
--this-color: #888;
|
||||
}
|
||||
|
||||
a.but {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.but a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.text-ellipsis {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.text-ellipsis-2 {
|
||||
line-height: 1.4em;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
white-space: normal;
|
||||
}
|
||||
Reference in New Issue
Block a user