-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathheiho.css
68 lines (55 loc) · 2.23 KB
/
heiho.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/**
* 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;}