Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
157 lines (139 loc) · 4.11 KB
/
Copy pathstyle.css
File metadata and controls
157 lines (139 loc) · 4.11 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
body {
font-family: sans-serif;
}
table {
border-collapse: separate;
border-spacing: 0;
width: 50%;
margin: 20px;
border: 1px solid #e5e7eb;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
transition: box-shadow 160ms ease, border-color 160ms ease;
}
h1 {
margin: 20px;
}
h2 {
margin: 20px;
}
th, td {
padding: 8px;
text-align: left;
}
th {
background-color: #4CAF50;
color: white;
}
th:hover {
background-color: #45a049;
}
tr:nth-child(even) {
background-color: #f2f2f2;
}
tr:hover {
background-color: #ddd;
}
/* Table inner separators to avoid double borders with rounded outer */
tr > * + * { /* any cell that has a previous sibling */
border-left: 1px solid #e5e7eb;
}
tr + tr > * { /* any row after the first */
border-top: 1px solid #e5e7eb;
}
/* Subtle hover like the file cards */
table:hover {
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
border-color: #d1d5db;
}
/* Header layout: H1 left, generated-on right */
.page-header {
display: flex;
align-items: flex-start;
justify-content: space-evenly;
flex-direction: column;
margin: 20px;
}
.page-header h1,
.page-header h2 {
margin: 0;
}
.page-header h2 {
font-size: 1rem;
font-weight: normal;
color: #6b7280; /* gray-500 */
}
/* Pretty file list under the "Files" heading */
h2 + ul {
list-style: none;
padding: 0;
margin: 20px;
max-width: 640px;
}
h2 + ul li {
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 10px;
margin: 10px 0;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}
h2 + ul li:hover {
transform: translateY(-1px);
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
border-color: #d1d5db;
}
h2 + ul li a {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 14px;
color: #111827;
text-decoration: none;
}
h2 + ul li a:hover {
color: #0f766e; /* teal-700 */
}
/* Generic file icon using embedded SVG for consistent rendering */
h2 + ul li a::before {
content: "";
display: inline-block;
width: 18px;
height: 18px;
background-repeat: no-repeat;
background-size: 18px 18px;
/* dark slate fill */
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23111827'%3E%3Cpath d='M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3Cpath d='M14 2v6h6' fill='%23111827'/%3E%3C/svg%3E");
}
/* Extension-specific icons/colors */
h2 + ul li a[href$=".json"]::before {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230ea5e9'%3E%3Cpath d='M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3Cpath d='M14 2v6h6' fill='%230ea5e9'/%3E%3C/svg%3E");
}
h2 + ul li a[href$=".csv"]::before {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2310b981'%3E%3Cpath d='M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3Cpath d='M14 2v6h6' fill='%2310b981'/%3E%3C/svg%3E");
}
h2 + ul li a[href$=".txt"]::before {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3Cpath d='M14 2v6h6' fill='%236b7280'/%3E%3C/svg%3E");
}
/* Subtle chevron affordance using embedded SVG */
h2 + ul li a::after {
content: "";
display: inline-block;
width: 14px;
height: 14px;
margin-left: auto;
background-repeat: no-repeat;
background-size: 14px 14px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%239ca3af'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E");
transition: transform 160ms ease;
}
h2 + ul li:hover a::after {
transform: translateX(2px);
}
/* Focus accessibility */
h2 + ul li a:focus-visible {
outline: 3px solid #93c5fd; /* blue-300 */
outline-offset: 2px;
border-radius: 8px;
}