98 lines
2.4 KiB
CSS
98 lines
2.4 KiB
CSS
|
|
/* 管理后台操作按钮样式 - 添加中文文字 */
|
||
|
|
|
||
|
|
/* 表格操作列 */
|
||
|
|
td.list-buttons-column,
|
||
|
|
th.list-buttons-column {
|
||
|
|
white-space: nowrap;
|
||
|
|
min-width: 140px;
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 隐藏所有图标 */
|
||
|
|
td.list-buttons-column a.icon .glyphicon,
|
||
|
|
td.list-buttons-column a.icon .fa,
|
||
|
|
td.list-buttons-column a.icon span.glyphicon,
|
||
|
|
td.list-buttons-column a.icon i,
|
||
|
|
td.list-buttons-column form .glyphicon,
|
||
|
|
td.list-buttons-column form .fa,
|
||
|
|
td.list-buttons-column form span.glyphicon,
|
||
|
|
td.list-buttons-column form i {
|
||
|
|
display: none !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 通用操作按钮样式(链接) */
|
||
|
|
td.list-buttons-column a.icon {
|
||
|
|
display: inline-flex !important;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
min-width: 60px;
|
||
|
|
height: 32px;
|
||
|
|
padding: 0 12px;
|
||
|
|
margin: 0 4px;
|
||
|
|
border-radius: 4px;
|
||
|
|
font-size: 13px;
|
||
|
|
font-weight: 500;
|
||
|
|
text-decoration: none;
|
||
|
|
transition: all 0.2s;
|
||
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 删除表单样式 */
|
||
|
|
td.list-buttons-column form {
|
||
|
|
display: inline-block;
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 删除表单的提交按钮 */
|
||
|
|
td.list-buttons-column form button,
|
||
|
|
td.list-buttons-column form input[type="submit"] {
|
||
|
|
display: inline-flex !important;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
min-width: 60px;
|
||
|
|
height: 32px;
|
||
|
|
padding: 0 12px;
|
||
|
|
margin: 0 4px;
|
||
|
|
border-radius: 4px;
|
||
|
|
font-size: 13px;
|
||
|
|
font-weight: 500;
|
||
|
|
text-decoration: none;
|
||
|
|
transition: all 0.2s;
|
||
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
||
|
|
background: #E34D59 !important;
|
||
|
|
color: white !important;
|
||
|
|
border: none;
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
td.list-buttons-column form button:hover,
|
||
|
|
td.list-buttons-column form input[type="submit"]:hover {
|
||
|
|
background: #C9353F !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 使用::before添加删除文字 */
|
||
|
|
td.list-buttons-column form button::before,
|
||
|
|
td.list-buttons-column form input[type="submit"]::before {
|
||
|
|
content: "删除";
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 编辑按钮 - 通过href匹配 */
|
||
|
|
td.list-buttons-column a[href*="/edit/"] {
|
||
|
|
background: #0052D9 !important;
|
||
|
|
color: white !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
td.list-buttons-column a[href*="/edit/"]:hover {
|
||
|
|
background: #0041A8 !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
td.list-buttons-column a[href*="/edit/"]::after {
|
||
|
|
content: "编辑";
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 查看按钮 - 完全隐藏 */
|
||
|
|
td.list-buttons-column a[href*="/details/"] {
|
||
|
|
display: none !important;
|
||
|
|
}
|