模板:Hexi republic box/styles.css
外觀
.hexi-table {
background-color: #ffffff;
border: 1px solid #e2e8f0 !important;
border-radius: 12px !important;
border-collapse: separate !important;
border-spacing: 0 !important;
overflow: hidden;
margin: 1em 0;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
width: 100%;
}
.hexi-table tr:first-child th:first-child,
.hexi-table tr:first-child td:first-child { border-top-left-radius: 12px; }
.hexi-table tr:first-child th:last-child,
.hexi-table tr:first-child td:last-child { border-top-right-radius: 12px; }
.hexi-table tr:last-child td:first-child { border-bottom-left-radius: 12px; }
.hexi-table tr:last-child td:last-child { border-bottom-right-radius: 12px; }
/* 標題欄 */
.hexi-table th {
background-color: #f8fafc !important;
color: #475569 !important;
font-weight: 600 !important;
padding: 12px 15px !important;
border: none !important;
border-bottom: 2px solid #e2e8f0 !important;
}
/* 內容格 */
.hexi-table td {
padding: 12px 15px !important;
border: none !important;
border-bottom: 1px solid #f1f5f9 !important;
vertical-align: middle !important;
}
hexi-table tr:last-child td {
border-bottom: none !important;
}
.hexi-table tr:nth-child(even) td:not([style*="background"]) {
background-color: #fbfcfe !important;
}
/* 鼠標 */
.hexi-table tr:hover td:not([style*="background"]) {
background-color: #f1f5f9 !important;
transition: background 0.2s ease;
}
.color-preview-box {
display: inline-block;
width: 100%;
min-height: 30px;
border-radius: 6px;
border: 1px solid rgba(0,0,0,0.1);
vertical-align: middle;
}
/* 打印修fu1 */
@media print {
.hexi-table, .hexi-table td, .color-preview-box, div[style*="background-color"] {
}
}
.color-preview-box, div[style*="background-color"] {
border: 1px solid rgba(0,0,0,0.1) !important;
}
.color-preview-box, div[style*="background-color"] {
border: 1px solid rgba(0,0,0,0.1) !important;
}
/* 手雞 */
@media screen and (max-width: 720px) {
.hexi-table {
display: block !important;
width: 100% !important;
overflow: auto !important;
white-space: nowrap !important;
}
.hexi-table td, .hexi-table th {
padding: 8px 10px !important;
font-size: 14px !important;
min-width: 50px !important;
text-align: center !important;
vertical-align: middle !important;
}
.hexi-table td[rowspan] {
writing-mode: horizontal-tb !important;
min-width: 80px !important;
line-height: 1.4 !important;
}
div[style*="background-color"] {
width: 40px !important;
height: 20px !important;
display: inline-block !important;
}
}
@media screen and (min-width: 721px) {
div[style*="background-color"] {
display: inline-block;
vertical-align: middle;
}
}