1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- /**
- * Heihō: simple spreadsheet viewer
- * @link https://github.com/kktsvetkov/heiho
- */
- body.heiho-body {overflow:hidden}
- /*
- * #heiho-view
- * |
- * + #heiho-view-header
- * | |
- * | + #heiho-view-close
- * | |
- * | + #heiho-view-title
- * |
- * + #heiho-view-scroll
- * | |
- * | + #heiho-view-table
- * | |
- * | + #heiho-view-thead
- * | | |
- * | | + th
- * | | + ...
- * | | + th
- * | |
- * | + #heiho-view-tbody
- * | |
- * | + tr
- * | | |
- * | | td
- * | | ...
- * | | td
- * | |
- * | + ...
- * | + tr
- * |
- * + #heiho-view-truncated
- */
- #heiho-view {position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: black}
- #heiho-view-header {background:#333; border-bottom:solid 3px black; height: 36px; overflow: hidden}
- #heiho-view-title {color: white; font: normal 13px arial; line-height: 2.85em; padding-left: .75em}
- #heiho-view-close {float: right; background: #222; height: 36px; width: 36px; display: inline-block; text-align: center; vertical-align: middle}
- #heiho-view-close:before {content: "×"; color: #ccc; display: inline-block; margin-top: 8px;}
- #heiho-view-close:hover {cursor: pointer; background: #000; color: white}
- #heiho-view-scroll {overflow:auto}
- #heiho-view-table {background:white; color:black; font: 12px arial; border-collapse: collapse;}
- #heiho-view-table.width100 {width:100%}
- #heiho-view-thead th {background: #444; color: white; border: solid 1px black; padding: 4px;}
- #heiho-view-thead th:first-child {background: #111}
- #heiho-view-tbody td {background: white; color: #555; padding: 2px 4px; border: solid 1px #ccc; vertical-align: top; white-space: nowrap; overflow: hidden; max-width: 20vw; min-width: 1vw}
- #heiho-view-tbody td:first-child {background: #444; color: #bbb; width: 1%; min-width:25px; border: solid 1px black; text-align:center; vertical-align: middle; font: normal 10px arial;}
- #heiho-view-tbody tr:hover td {background:lightyellow}
- #heiho-view-tbody tr:hover td:hover {background:khaki}
- #heiho-view-tbody tr:hover td:first-child {background:orange; color:#111}
- #heiho-view-tbody tr.heiho-header td {font-weight:bold; white-space: nowrap}
- #heiho-view-truncated {color:white; padding: .45em; background:#844; font: normal 11px arial;}
|