码桶
发现社区成员的开源项目
admin-fix.css2.9 KB
/**
* Pyq Theme - 后台全局修复CSS
* 编辑器、select下拉框、移动端适配
* 作用于所有Typecho后台页面
*/
/* ========== Select下拉框修复 ========== */
select {
height: 32px;
padding: 4px 8px;
border-radius: 6px;
max-width: 100%;
font-size: inherit;
line-height: 1.5;
}
/* ========== 编辑器textarea可拖拽 ========== */
textarea#text,
.typecho-post-area textarea {
resize: vertical !important;
}
/* ========== 编辑器容器居中 ========== */
.typecho-post-area.row,
.typecho-page-main .row {
width: 100% !important;
max-width: 100%;
margin-left: 0;
margin-right: 0;
}
.typecho-page-main .container {
max-width: 100%;
padding-left: 10px;
padding-right: 10px;
}
/* ========== 移动端适配 ========== */
@media (max-width: 768px) {
/* select下拉框 */
select {
font-size: 16px; /* 防止iOS缩放 */
height: 40px;
padding: 6px 10px;
}
/* 编辑器textarea */
.typecho-post-area #text {
width: 100% !important;
min-height: 300px;
font-size: 14px;
}
/* 编辑器两栏改单栏 */
.typecho-post-area .row .col-mb-12 {
flex: 0 0 100%;
max-width: 100%;
}
/* 自定义字段 */
.typecho-post-area #custom-field .fields .field {
flex-direction: column;
}
.typecho-post-area #custom-field .fields .field .field-name {
flex: 0 0 100%;
max-width: 100%;
margin-bottom: 4px;
}
.typecho-post-area #custom-field .fields .field .field-value {
margin-left: 0;
}
/* 提交按钮 */
.typecho-post-area .submit {
flex-direction: column;
align-items: stretch;
}
.typecho-post-area .submit .left,
.typecho-post-area .submit .right {
width: 100%;
justify-content: center;
flex-wrap: wrap;
}
/* 侧边栏 */
#edit-secondary {
width: 100%;
padding-left: 0 !important;
}
/* 文章列表表格 */
.typecho-list-table {
font-size: 13px;
}
.typecho-list-table td,
.typecho-list-table th {
padding: 6px 4px;
}
/* 评论列表 */
.typecho-list-table .comment-content {
max-width: 200px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* 通用表单 */
.typecho-form input[type="text"],
.typecho-form input[type="url"],
.typecho-form input[type="email"],
.typecho-form textarea {
max-width: 100%;
box-sizing: border-box;
}
/* 设置页tab */
#theme-page .tab {
display: flex;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
gap: 4px;
padding: 6px;
}
#theme-page .tabLinks {
flex-shrink: 0;
white-space: nowrap;
padding: 8px 14px;
font-size: 13px;
}
}