forked from Ntsekees/loglang-tatoeba
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
99 lines (99 loc) · 1.51 KB
/
Copy pathstyle.css
File metadata and controls
99 lines (99 loc) · 1.51 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
body {
margin: 0;
padding: 0;
}
.header {
height: 4em;
text-align: center;
}
h1 {
text-align: center;
color: #008844;
}
.main {
display: flex;
gap: 0.5em;
padding: 0.5em;
align-items: flex-start;
}
.theader {
display: flex;
height: 1.5em;
padding: 0px;
font-size: 1rem;
font-weight: bold;
}
.theader div {
padding-left: 4px;
padding-right: 4px;
background: hsl(200, 50%, 67%);
}
.eng-td {
width: 67%;
margin-right: 4px;
}
.ctx-td {
width: calc(33% - 4px);
}
.lang-td {
width: 6em;
margin-right: 4px;
}
.trans-td {
width: calc(100% - 6em - 4px);
}
.eng2-td {
width: 40%;
margin-right: 4px;
}
.ctx2-td {
margin-right: 4px;
width: 20%;
}
.trans2-td {
width: 40%;
}
.entries, .details {
flex: 1;
display: flex;
flex-direction: column;
border: 2px solid hsl(220deg,50%,85%);
border-radius: 4px;
padding: 6px;
height: calc(100vh - 8.8em);
}
:is(.entries, .details) table {
flex: 1;
display: block;
overflow: auto;
}
:is(.entries, .details) table thead, tbody {
display: table;
width: 100%;
}
:is(.entries, .details) table th {
position: sticky;
top: 0;
z-index: 1;
background: #00aacccc;
height: 1.5em;
}
:is(.entries, .details) table td {
height: 1em;
}
:is(.entries, .details) table tr:nth-child(odd) {
background: hsl(200, 50%, 90%);
}
:is(.entries, .details) table tr:nth-child(even) {
background: hsl(200, 50%, 95%);
}
.entries tbody tr {
cursor: pointer;
}
.entries tbody tr:hover {
outline: 2px solid #0088ff88;
}
.entries tbody tr.selected {
outline: 2px solid #0088aa88;
background: #aaeecc;
}