hyparquet/demo.css

210 lines
3.3 KiB
CSS
Raw Normal View History

2024-01-28 02:06:27 +00:00
* {
box-sizing: border-box;
2024-02-04 21:22:11 +00:00
font-family: 'Mulish', 'Helvetica Neue', Helvetica, Arial, sans-serif;
2024-01-28 02:06:27 +00:00
margin: 0;
padding: 0;
}
body {
display: flex;
font-family: sans-serif;
height: 100vh;
2024-05-05 17:35:23 +00:00
width: 100vw;
2024-01-28 02:06:27 +00:00
}
nav {
2024-05-05 17:35:23 +00:00
border-right: 1px solid #ddd;
min-width: 320px;
overflow-x: hidden;
2024-01-28 02:06:27 +00:00
overflow-y: auto;
2024-01-28 02:50:14 +00:00
padding: 10px;
2024-05-05 17:35:23 +00:00
width: 320px;
2024-01-28 02:06:27 +00:00
}
h1 {
font-size: 20pt;
}
h2 {
font-size: 12pt;
}
p {
margin: 10px 0;
2024-02-04 21:22:11 +00:00
width: 300px;
2024-01-28 02:06:27 +00:00
}
2024-05-05 17:35:23 +00:00
.error {
color: #c11;
font-family: monospace;
white-space: pre-wrap;
}
#overlay {
2024-01-28 02:06:27 +00:00
align-items: center;
2024-05-05 17:35:23 +00:00
font-size: 125%;
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
background-color: rgba(240, 240, 240, 0.6);
backdrop-filter: blur(4px);
display: none;
padding: 12px;
z-index: 40;
2024-01-28 02:06:27 +00:00
}
2024-05-05 17:35:23 +00:00
2024-01-28 02:06:27 +00:00
#dropzone {
2024-05-05 17:35:23 +00:00
display: flex;
flex: 1;
max-width: 100vw;
}
#content {
display: flex;
flex-direction: column;
flex: 1;
min-width: 0;
overflow: auto;
}
#welcome {
2024-01-28 02:06:27 +00:00
border: 2px dashed #08e;
border-radius: 10px;
2024-01-28 02:50:14 +00:00
color: #444;
2024-01-28 02:06:27 +00:00
margin: 10px;
2024-01-28 02:50:14 +00:00
padding: 10px;
2024-05-05 17:35:23 +00:00
align-items: center;
cursor: pointer;
display: flex;
flex: 1;
font-size: 20px;
justify-content: center;
2024-01-28 02:50:14 +00:00
}
input[type="file"] {
display: none;
2024-01-28 02:06:27 +00:00
}
2024-05-05 17:35:23 +00:00
#overlay {
font-size: 125%;
justify-content: center;
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
background-color: rgba(240, 240, 240, 0.6);
backdrop-filter: blur(4px);
display: none;
padding: 12px;
z-index: 40;
2024-01-28 02:06:27 +00:00
}
2024-05-05 17:35:23 +00:00
.over #overlay {
display: flex;
}
/* table */
table {
border-collapse: separate;
border-spacing: 0;
}
table:focus-visible {
outline: none;
}
th {
background-color: #f8f8f8;
border: 1px solid #ddd;
padding: 8px;
text-align: left;
background-color: #eaeaeb;
border: none;
border-top: 4px solid #706fb1;
border-bottom: 2px solid #c9c9c9;
box-sizing: content-box;
color: #444;
position: sticky;
top: -1px; /* fix 1px gap above thead */
user-select: none;
2024-01-28 02:06:27 +00:00
}
2024-05-05 17:35:23 +00:00
th, td {
border-bottom: 1px solid #ddd;
border-right: 1px solid #ddd;
height: 32px;
max-width: 1000px; /* prevent columns expanding */
padding: 4px 12px;
text-align: left;
text-overflow: ellipsis;
overflow: hidden;
white-space: pre-wrap;
}
2024-05-13 02:36:30 +00:00
#filename {
font-size: 10pt;
2024-01-28 02:06:27 +00:00
margin-top: 20px;
2024-05-13 02:36:30 +00:00
}
#layout {
2024-02-05 07:37:18 +00:00
word-break: break-all;
}
.layout a {
color: #445;
text-decoration: none;
}
.layout a:hover {
text-decoration: underline;
2024-01-28 02:06:27 +00:00
}
2024-01-28 03:29:21 +00:00
.layout div {
background-color: rgba(0, 0, 0, 0.05);
border: 1px solid #ccc;
border-radius: 4px;
font-size: 12px;
margin-top: 4px;
padding: 4px;
word-break: break-all;
}
.layout div {
2024-01-28 02:06:27 +00:00
background-color: rgba(0, 0, 0, 0.05);
border: 1px solid #ccc;
border-radius: 4px;
font-size: 12px;
margin-top: 4px;
padding: 4px;
word-break: break-all;
}
.cell {
display: flex;
}
.cell label {
2024-01-28 02:50:14 +00:00
flex: 1;
2024-01-28 02:06:27 +00:00
font-size: 12px;
font-weight: normal;
justify-content: flex-start;
}
2024-01-28 02:50:14 +00:00
nav ul,
2024-01-28 03:29:21 +00:00
.layout div ul {
2024-01-28 02:06:27 +00:00
list-style: none;
}
2024-01-28 03:29:21 +00:00
.layout div li {
2024-01-28 02:06:27 +00:00
font-size: 10px;
padding: 2px 4px;
text-align: right;
}
2024-01-28 02:55:34 +00:00
.collapsed > :not(:first-child) {
display: none;
}
2024-01-28 03:29:21 +00:00
.layout h2 {
2024-01-28 02:55:34 +00:00
cursor: pointer;
user-select: none;
}
2024-01-28 03:29:21 +00:00
.layout h2::before {
2024-01-28 02:55:34 +00:00
content: "▼";
display: inline-block;
font-size: 10px;
margin: 0 4px;
vertical-align: middle;
}
2024-01-28 03:29:21 +00:00
.layout .collapsed h2::before {
2024-01-28 02:55:34 +00:00
content: "▶";
}
2024-01-28 03:29:21 +00:00
#metadata pre {
white-space: pre-wrap;
2024-05-05 17:35:23 +00:00
word-break: break-all;
2024-01-28 03:29:21 +00:00
}