182 lines
3.3 KiB
CSS
182 lines
3.3 KiB
CSS
/*
|
|
* Koozali SME Server Table Styling
|
|
*
|
|
* This CSS makes tables look good with colors matching the Koozali SME Server interface.
|
|
* Compatible with all modern browsers and IE9+.
|
|
*/
|
|
|
|
/* Basic table styling */
|
|
table.node {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
margin: 20px 0;
|
|
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
border: 1px solid #d5e5c0;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
|
|
background-color: white;
|
|
max-width: 700px;
|
|
}
|
|
|
|
/* Table header styling */
|
|
table.node thead {
|
|
background-color: #e6f2d5;
|
|
border-bottom: 1px solid #d5e5c0;
|
|
}
|
|
|
|
/* Table header cells */
|
|
table.node thead td {
|
|
padding: 12px 15px;
|
|
font-weight: bold;
|
|
color: #006600;
|
|
}
|
|
|
|
/* Table data cells */
|
|
table.node td {
|
|
padding: 10px 15px;
|
|
border-bottom: 1px solid #e6f2d5;
|
|
line-height: 1.4;
|
|
word-wrap: break-word;
|
|
-ms-word-break: break-word;
|
|
word-break: break-word;
|
|
-webkit-hyphens: auto;
|
|
-ms-hyphens: auto;
|
|
hyphens: auto;
|
|
}
|
|
|
|
/* First column styling (labels) */
|
|
table.node td.first {
|
|
width: 25%;
|
|
font-weight: bold;
|
|
color: #333;
|
|
background-color: #e8f3e1;
|
|
}
|
|
|
|
/* Second column styling (values) */
|
|
table.node td.second {
|
|
width: 75%;
|
|
}
|
|
|
|
/* Zebra striping for better readability */
|
|
table.node tbody tr:nth-child(even) {
|
|
background-color: #fafdf7;
|
|
}
|
|
|
|
/* Hover effect for rows */
|
|
table.node tbody tr:hover {
|
|
background-color: #edf5e2;
|
|
}
|
|
|
|
/* Nested tables styling */
|
|
table.node table {
|
|
width: 100%;
|
|
border: none;
|
|
-webkit-box-shadow: none;
|
|
box-shadow: none;
|
|
margin: 0;
|
|
}
|
|
|
|
table.node table td {
|
|
padding: 4px 6px;
|
|
border: none;
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
/* ID styling */
|
|
.id {
|
|
font-family: monospace;
|
|
background-color: #f5f9ef;
|
|
padding: 2px 4px;
|
|
border: 1px solid #d5e5c0;
|
|
border-radius: 3px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* Help styling for dfn elements */
|
|
dfn {
|
|
cursor: help;
|
|
border-bottom: 1px dotted #006600;
|
|
font-style: normal;
|
|
}
|
|
|
|
/* Add some spacing between tables */
|
|
table.node + table.node {
|
|
margin-top: 30px;
|
|
}
|
|
|
|
/* Fix for older browsers */
|
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
/* IE10+ specific styles */
|
|
table.node td {
|
|
word-break: break-all;
|
|
}
|
|
|
|
table.node td.first {
|
|
word-break: normal;
|
|
}
|
|
}
|
|
|
|
/* Make sure tables don't overflow on small screens */
|
|
@media (max-width: 768px) {
|
|
table.node {
|
|
font-size: 14px;
|
|
}
|
|
|
|
table.node td {
|
|
padding: 8px 10px;
|
|
}
|
|
|
|
table.node td.first {
|
|
width: 35%;
|
|
}
|
|
|
|
table.node td.second {
|
|
width: 65%;
|
|
}
|
|
}
|
|
|
|
/* Very small screens */
|
|
@media (max-width: 480px) {
|
|
table.node {
|
|
font-size: 13px;
|
|
}
|
|
|
|
table.node td {
|
|
padding: 6px 8px;
|
|
}
|
|
|
|
table.node td.first {
|
|
width: 40%;
|
|
}
|
|
|
|
table.node td.second {
|
|
width: 60%;
|
|
}
|
|
}
|
|
|
|
/* Print styles */
|
|
@media print {
|
|
table.node {
|
|
-webkit-box-shadow: none;
|
|
box-shadow: none;
|
|
border: 1px solid #999;
|
|
page-break-inside: avoid;
|
|
}
|
|
|
|
table.node + table.node {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
table.node thead {
|
|
background-color: #f5f9ef !important;
|
|
-webkit-print-color-adjust: exact;
|
|
color-adjust: exact;
|
|
}
|
|
|
|
table.node td.first {
|
|
background-color: #f9fcf5 !important;
|
|
-webkit-print-color-adjust: exact;
|
|
color-adjust: exact;
|
|
}
|
|
}
|