Files
wordpress-theme-aksrt/assets/css/admin-main.css
T
kate522 9375b1c30c 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 对照确认为存量问题)
2026-08-22 16:16:30 +08:00

852 lines
13 KiB
CSS

a:focus {
box-shadow: none;
outline: none;
}
.px12 {
font-size: 12px;
}
.em12 {
font-size: 1.2em;
}
.em14 {
font-size: 1.4em;
}
.em16 {
font-size: 1.6em;
}
.em2x {
font-size: 2em;
}
.em3x {
font-size: 3em;
}
.em4x {
font-size: 4em;
}
.em09 {
font-size: 0.9em;
}
.dashicons {
width: 1em;
height: 1em;
}
.text-center {
text-align: center;
}
.font-bold {
font-weight: bold;
}
.opacity3 {
opacity: 0.3;
}
.pointer {
cursor: pointer;
}
.relative {
position: relative;
}
.opacity5,
.but[disabled],
.but[disabled]:hover {
opacity: 0.5;
}
.opacity8 {
opacity: 0.8;
}
badge {
font-size: 0.8em;
line-height: 1.2;
padding: 0.1em 0.4em;
min-width: 0.8em;
min-height: 0.8em;
display: inline-block;
vertical-align: 0.1em;
border-radius: 50px;
background: var(--this-bg);
color: var(--this-color);
top: 5px;
--this-color: #fff;
text-align: center;
--this-bg: #fe3459;
}
code {
border-radius: 4px;
}
.badg,
.but {
border-radius: 4px;
display: inline-block;
border-radius: 4px;
transition: 0.15s !important;
vertical-align: middle;
font-size: 14px;
padding: 5px 20px;
text-align: center;
box-shadow: var(--this-shadow);
background: var(--this-bg);
color: var(--this-color);
border: 1px solid var(--this-border);
--main-color: var(--this-color);
--this-bg: rgba(136, 136, 136, 0.1);
--this-border: transparent;
--this-shadow: none;
--this-color: #888;
line-height: 1.44;
margin: 2px;
min-height: unset;
text-decoration: none;
}
.badg {
font-size: 0.9em;
padding: 0.05em 0.25em;
}
.but a {
color: inherit;
}
.but svg.icon,
.but > .fa {
margin-right: 0.25em;
}
.but.radius,
.radius > .but {
border-radius: 50px;
padding: 0.3em 0.8em;
}
.badg.hollow,
.but.hollow {
background: transparent;
--this-border: var(--this-color);
}
.but:focus,
.but:hover {
opacity: 0.8;
background: var(--this-bg);
color: var(--this-color);
--this-shadow: 0;
box-shadow: none;
}
.but:active {
--this-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
background: var(--this-bg);
color: var(--this-color);
}
.but.hollow:hover {
background: var(--this-color);
color: #fff;
}
[disabled] {
opacity: 0.6 !important;
-webkit-filter: grayscale(20%);
filter: grayscale(20%);
cursor: no-drop !important;
}
.padding-lg,
.but.padding-lg {
padding: 0.5em 2em;
}
.jb-pink,
.jb-vip1,
.jb-vip2,
.b-theme,
.b-red,
.b-yellow,
.b-blue,
.b-cyan,
.b-green,
.b-purple,
.b-black,
.jb-red,
.jb-yellow,
.jb-blue,
.jb-green,
.jb-purple {
color: #fff;
background: var(--this-bg);
--this-color: #fff;
}
.jb-pink,
.jb-vip1,
.jb-vip2,
.jb-red,
.jb-yellow,
.jb-cyan,
.jb-blue,
.jb-green,
.jb-purple {
border: none;
}
.b-cyan {
--this-bg: #08c4c1;
}
.b-theme {
--this-bg: var(--focus-color);
}
.b-red {
--this-bg: #ff5473;
}
.b-yellow {
--this-bg: #ff6f06;
}
.b-blue {
--this-bg: #2997f7;
}
.b-green {
--this-bg: #12b928;
}
.b-purple {
--this-bg: #d448f5;
}
.b-black {
--this-bg: #121517;
}
.c-red,
.c-yellow,
.c-blue,
.c-blue-2,
.c-green,
.c-purple {
color: var(--this-color);
}
.c-red {
--this-color: #ff5473;
--this-bg: rgba(255, 84, 115, 0.1);
}
.c-yellow {
--this-color: #ff6f06;
--this-bg: rgba(255, 111, 6, 0.1);
}
.c-blue {
--this-color: #2997f7;
--this-bg: rgba(41, 151, 247, 0.1);
}
.c-blue-2 {
--this-color: #5c7cff;
--this-bg: rgba(77, 130, 249, 0.1);
}
.c-green {
--this-color: #12b928;
--this-bg: rgba(18, 185, 40, 0.1);
}
.c-purple {
--this-color: #d448f5;
--this-bg: rgba(213, 72, 245, 0.1);
}
.jb-red {
--this-bg: linear-gradient(135deg, #fd7a64 10%, #fb2d2d 100%);
}
.jb-yellow {
--this-bg: linear-gradient(135deg, #f99d4d 10%, #f7631d 100%);
}
.jb-blue {
--this-bg: linear-gradient(135deg, #59c3fb 10%, #268df7 100%);
}
.jb-green {
--this-bg: linear-gradient(135deg, #60e464 10%, #5cb85b 100%);
}
.jb-purple {
--this-bg: linear-gradient(135deg, #f98dfb 10%, #ea00f9 100%);
}
.jb-pink {
--this-bg: linear-gradient(135deg, #ff5e7f 30%, #ff967e 100%);
}
.jb-vip1 {
--this-bg: linear-gradient(25deg, #eabe7b 10%, #f5e3c7 70%, #edc788 100%);
--this-color: #866127;
}
.jb-vip2 {
--this-bg: linear-gradient(317deg, #4d4c4c 30%, #7b7b7b 70%, #5f5c5c 100%);
--this-color: #ddd;
}
.c-cyan {
--this-color: #09a4a1;
--this-bg: rgba(8, 196, 193, 0.1);
}
.hide {
display: none !important;
}
.absolute {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
}
/**flex布局轮子**/
.flex {
display: flex;
}
.inflex {
display: inline-flex;
}
/**flex布局上下方向**/
.inflex.xx,
.flex.xx {
flex-direction: column;
}
/**flex布局自动换行**/
.flex.hh {
flex-wrap: wrap;
}
/**flex布局上下居中**/
.inflex.ac,
.flex.ac {
align-items: center;
}
/**flex布局上下靠底部**/
.inflex.abl,
.flex.abl {
align-items: baseline;
}
.inflex.ab,
.flex.ab {
align-items: end;
}
/**flex布局上下左右居中**/
.inflex.jc,
.flex.jc {
align-items: center;
justify-content: center;
}
.flex.je {
justify-content: flex-end;
}
/**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;
}
.overflow-hidden {
overflow: hidden;
}
.mm3 {
margin: 3px;
}
.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;
}
.mt3 {
margin-top: 3px;
}
.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;
}
.padding-h6 {
padding-top: 6px;
padding-bottom: 6px;
}
.padding-h10 {
padding-top: 10px;
padding-bottom: 10px;
}
.border-bottom {
border-bottom: 1px solid #e8e8e8;
}
.border-bottom:last-of-type {
border: none;
}
.max-vh5,
.max-vh7 {
max-height: 70vh;
-ms-overflow-style: none;
overflow: -moz-scrollbars-none;
overflow-x: hidden;
overflow-y: auto;
}
.max-vh5 {
max-height: 50vh;
}
.muted-2-color {
opacity: 0.6;
}
.text-ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 100%;
}
/*---------系统通知-----------*/
.notyn {
position: fixed;
bottom: 6em;
right: 0;
max-width: 200px;
z-index: 10000000;
}
.notyf {
margin-bottom: 0.6em;
color: #fff;
float: right;
min-width: 100px;
padding: 1em 3em 1em 3.4em;
box-shadow: -3px 3px 6px rgba(0, 0, 0, 0.1);
transform: translateX(1.5em);
transition: 0.3s;
-webkit-backdrop-filter: saturate(5) blur(20px);
backdrop-filter: saturate(5) blur(20px);
-webkit-animation: notyf 0.4s cubic-bezier(0.35, 0.71, 0.46, 1.08);
animation: notyf 0.4s cubic-bezier(0.35, 0.71, 0.46, 1.08);
}
.notyn-out .notyf {
transform: translateX(110%);
opacity: 0.5;
transition: 0.5s;
}
@-webkit-keyframes notyf {
0% {
transform: translateX(110%);
opacity: 0;
}
100% {
transform: translateX(1.5em);
opacity: 1;
}
}
@keyframes notyf {
0% {
transform: translateX(110%);
opacity: 0;
}
100% {
transform: translateX(1.5em);
opacity: 1;
}
}
.notyf:before {
font: normal normal normal 16px/1 dashicons;
left: 0.8em;
font-size: 1.5em;
position: absolute;
top: 0;
bottom: 0;
margin: auto;
height: 20px;
}
.notyf.success {
background: linear-gradient(90deg, rgba(15, 147, 249, 0.7), rgba(61, 189, 249, 0.8));
}
.notyf.success:before {
content: '\f12a';
}
.notyf.info {
background: linear-gradient(90deg, rgba(58, 162, 54, 0.8), rgba(89, 247, 131, 0.8));
}
.notyf.info:before {
content: '\f227';
}
.notyf.warning,
.notyf.load {
background: linear-gradient(90deg, rgba(253, 170, 71, 0.7), rgba(247, 154, 13, 0.8));
}
.notyf.warning:before {
content: '\f534';
}
.notyf.danger {
background: linear-gradient(90deg, rgba(253, 69, 28, 0.7), rgba(251, 110, 75, 0.8));
}
.notyf.danger:before {
content: '\f153';
}
.notyf .fa-close {
float: right;
padding: 0.6em;
margin: -0.4em;
}
/**--------------加载动画--------------*/
.rotate-loading,
.notyf.load::before {
content: '';
width: 0.7em;
height: 0.7em;
display: inline-block;
border: 0.1em solid transparent;
border-radius: 50%;
border-top-color: var(--this-color);
border-bottom-color: var(--this-color);
-webkit-animation: huan-rotate 1s cubic-bezier(0.7, 0.1, 0.31, 0.9) infinite;
animation: huan-rotate 1s cubic-bezier(0.7, 0.1, 0.31, 0.9) infinite;
}
@-webkit-keyframes huan-rotate {
0% {
transform: rotate(0);
}
to {
transform: rotate(360deg);
}
}
@keyframes huan-rotate {
0% {
transform: rotate(0);
}
to {
transform: rotate(360deg);
}
}
/**---------------------通知结束-------------**/
/**模态框------*/
.aksrt-modal-backdrop,
.aksrt-modal {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 100050;
opacity: 0;
transition: 0.3s;
}
.aksrt-modal {
display: none;
}
.aksrt-modal-backdrop {
background: rgba(0, 0, 0, 0.4);
z-index: 0;
}
.aksrt-modal.in {
opacity: 1;
overflow-x: hidden;
overflow-y: auto;
}
.aksrt-modal.in .aksrt-modal-backdrop {
opacity: 1;
}
.aksrt-modal-dialog {
max-width: calc(100% - 20px);
margin: 0;
transform: scale(0.9);
transition: transform 0.5s cubic-bezier(0.32, 0.85, 0.45, 1.18), width 0.3s;
}
.aksrt-modal-dialog.modal-mini {
width: 400px;
}
.aksrt-modal.in .aksrt-modal-dialog {
transform: scale(1);
position: relative;
}
.aksrt-modal .close.abs-close {
display: none;
}
.aksrt-modal .border-title {
padding-bottom: 12px;
margin-bottom: 12px;
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.aksrt-modal-content {
max-height: calc(100vh - 20px);
overflow: hidden;
overflow-y: hidden;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
border-radius: 6px;
background: #fff;
border: none;
}
.aksrt-modal-body {
padding: 15px;
}
.aksrt-modal .loading-mask {
z-index: 1;
background: #fff;
border-radius: 6px;
}
.aksrt-modal .hide-btn {
position: absolute;
right: 10px;
top: 6px;
font-size: 25px;
opacity: 0.6;
cursor: pointer;
z-index: 9;
}
/**---------批量编辑------------**/
.aksrt-bulk-edit-box {
margin: -1px;
background: #f8fcff;
border: 1px solid #d2d2d2;
padding: 8px 12px;
flex: auto;
}
.aksrt-bulk-edit-box label {
line-height: 1.2;
}
.aksrt-bulk-edit-box > * + * {
margin-top: 6px;
}
/**---------------TAB-栏目------------**/
.aksrt-tab-pane {
display: none;
opacity: 0;
transition: 0.15s;
}
.aksrt-tab-pane.active {
display: block;
}
.aksrt-tab-pane.in {
opacity: 1;
}
/**---------------后台设置项目-修改或隐藏-----------**/
#customize-theme-controls #accordion-section-custom_css,
#customize-theme-controls .customize-control-site_icon,
.options-general-php .site-icon-section {
display: none !important;
}
/**---------------文章、帖子列表------------**/
@media (min-width: 783px) {
.wp-list-table.posts .column-title ~ th {
width: 9%;
}
.wp-list-table.posts th.column-author {
width: 5%;
}
}
@media (max-width: 782px) {
/**-------后台菜单------**/
.auto-fold #adminmenuwrap {
display: block;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 99950;
overflow: hidden;
overflow-y: scroll;
padding-bottom: 150px;
transition: 0.2s;
transform: translateX(-110%);
}
.auto-fold .wp-responsive-open #adminmenuback {
opacity: 0;
display: none;
}
html #wpadminbar {
position: fixed;
top: 0;
left: 0;
right: 0;
}
.auto-fold #adminmenu {
position: relative;
}
.auto-fold .wp-responsive-open #adminmenuback,
.auto-fold .wp-responsive-open #adminmenuwrap {
transform: translateX(0);
}
.wp-responsive-open #wpbody {
right: 0;
}
}