heiho.css 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /**
  2. * Heihō: simple spreadsheet viewer
  3. * @link https://github.com/kktsvetkov/heiho
  4. */
  5. body.heiho-body {overflow:hidden}
  6. /*
  7. * #heiho-view
  8. * |
  9. * + #heiho-view-header
  10. * | |
  11. * | + #heiho-view-close
  12. * | |
  13. * | + #heiho-view-title
  14. * |
  15. * + #heiho-view-scroll
  16. * | |
  17. * | + #heiho-view-table
  18. * | |
  19. * | + #heiho-view-thead
  20. * | | |
  21. * | | + th
  22. * | | + ...
  23. * | | + th
  24. * | |
  25. * | + #heiho-view-tbody
  26. * | |
  27. * | + tr
  28. * | | |
  29. * | | td
  30. * | | ...
  31. * | | td
  32. * | |
  33. * | + ...
  34. * | + tr
  35. * |
  36. * + #heiho-view-truncated
  37. */
  38. #heiho-view {position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: black}
  39. #heiho-view-header {background:#333; border-bottom:solid 3px black; height: 36px; overflow: hidden}
  40. #heiho-view-title {color: white; font: normal 13px arial; line-height: 2.85em; padding-left: .75em}
  41. #heiho-view-close {float: right; background: #222; height: 36px; width: 36px; display: inline-block; text-align: center; vertical-align: middle}
  42. #heiho-view-close:before {content: "×"; color: #ccc; display: inline-block; margin-top: 8px;}
  43. #heiho-view-close:hover {cursor: pointer; background: #000; color: white}
  44. #heiho-view-scroll {overflow:auto}
  45. #heiho-view-table {background:white; color:black; font: 12px arial; border-collapse: collapse;}
  46. #heiho-view-table.width100 {width:100%}
  47. #heiho-view-thead th {background: #444; color: white; border: solid 1px black; padding: 4px;}
  48. #heiho-view-thead th:first-child {background: #111}
  49. #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}
  50. #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;}
  51. #heiho-view-tbody tr:hover td {background:lightyellow}
  52. #heiho-view-tbody tr:hover td:hover {background:khaki}
  53. #heiho-view-tbody tr:hover td:first-child {background:orange; color:#111}
  54. #heiho-view-tbody tr.heiho-header td {font-weight:bold; white-space: nowrap}
  55. #heiho-view-truncated {color:white; padding: .45em; background:#844; font: normal 11px arial;}