-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
85 lines (72 loc) · 1.5 KB
/
styles.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
body {
font-family: 'Arial', sans-serif;
margin: 20px;
background-color: #f9f9f9;
color: #333;
}
h1 {
text-align: center;
color: #444;
}
input#search {
display: block;
margin: 20px auto;
padding: 12px;
width: 50%;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 5px;
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}
input#search:focus {
border-color: #007BFF;
outline: none;
}
table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
background-color: #fff;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
table th, table td {
border: 1px solid #ddd;
padding: 12px 15px;
text-align: left; /* Align text to the left */
vertical-align: top; /* Align content to the top of each cell */
}
table th {
background-color: #007BFF;
color: #fff;
font-weight: bold;
cursor: pointer;
}
table tr:nth-child(even) {
background-color: #f2f2f2;
}
table tr:hover {
background-color: #e6f7ff;
}
.sort-indicator {
margin-left: 5px;
font-size: 12px;
display: inline-block;
}
th.sorted-asc .sort-indicator::after {
content: "▲";
}
th.sorted-desc .sort-indicator::after {
content: "▼";
}
table td {
max-height: 50px; /* Limit row height */
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; /* Prevent wrapping */
cursor: pointer; /* Indicate the row is clickable */
}
table td.expanded {
white-space: normal; /* Allow content to wrap */
max-height: none; /* Remove height limitation */
overflow: visible; /* Show all content */
}