Skip to content

Commit 6fdb601

Browse files
committed
remake
1 parent 0a90b39 commit 6fdb601

21 files changed

+1280
-843
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Maximum record size is 1000 records, if more than 1000 records, the UI will not
8787
- [x] ToolBar (Chrome Like)
8888
- [x] Dark Mode & Light Mode (Auto Detect)
8989
- [x] Resizeable
90-
- [x] Responsiveness
90+
- [ ] Responsiveness (Partial)
9191
- [x] Action Size
9292
- [x] Maximize
9393
- [x] Minimize (restore)

assets/scss/components/_benchmarks.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ waterfall-search {
5656
border-color: var(--waterfall-input-focus-border-color);
5757
}
5858
}
59+
5960
waterfall-aggregators {
6061
& {
6162
padding: 0 calc(var(--waterfall-font-size) * .6) 0 0;
@@ -67,6 +68,7 @@ waterfall-search {
6768
// make mouse scroll horizontal
6869
scrollbar-width: none;
6970
}
71+
7072
record-aggregator {
7173
& {
7274
cursor: default;
@@ -78,11 +80,13 @@ waterfall-search {
7880
border-radius: calc(var(--waterfall-font-size) * .2);
7981
border: 1px solid var(--waterfall-aggregator-border-color);
8082
}
83+
8184
&[data-status="active"] {
8285
border: 1px solid var(--waterfall-aggregator-active-border-color);
8386
background-color: var(--waterfall-aggregator-active-color);
8487
color: var(--waterfall-aggregator-active-text-color);
8588
}
89+
8690
&:not([data-status="active"]):hover {
8791
color: var(--waterfall-color-hover);
8892
}
@@ -97,9 +101,11 @@ waterfall {
97101
flex: 0 0 auto;
98102
}
99103
}
104+
100105
waterfall-search {
101106
align-items: flex-start;
102107
}
108+
103109
waterfall-tab-header {
104110
border-bottom: 1px solid var(--waterfall-header-border-color);
105111
font-size: calc(var(--waterfall-font-size) * .9);
@@ -162,6 +168,7 @@ waterfall {
162168
}
163169
}
164170
}
171+
165172
waterfall-tab-header {
166173
background-color: var(--waterfall-header-bg-color);
167174
}
@@ -205,15 +212,19 @@ waterfall {
205212
[data-severity="0"] record-bar {
206213
background-color: var(--waterfall-bg-color-success);
207214
}
215+
208216
[data-severity="6"] record-bar {
209217
background-color: var(--waterfall-bg-color-info);
210218
}
219+
211220
[data-severity="5"] record-bar {
212221
background-color: var(--waterfall-bg-color-notice);
213222
}
223+
214224
[data-severity="3"] record-bar {
215225
background-color: var(--waterfall-bg-color-warning);
216226
}
227+
217228
[data-severity="1"] record-bar {
218229
background-color: var(--waterfall-bg-color-error);
219230
}
@@ -225,20 +236,24 @@ waterfall {
225236
align-items: flex-start;
226237
flex: 0 0 100%;
227238
}
239+
228240
waterfall-aggregators {
229241
padding: calc(var(--waterfall-font-size) * .3) 0;
230242
margin-left: 0;
231243
}
244+
232245
label {
233246
width: 100%;
234247
margin-bottom: calc(var(--waterfall-font-size) * .3);
235248
}
249+
236250
input[type="search"] {
237251
width: 100%;
238252
}
239253
}
240254
}
241255
}
256+
242257
waterfall-record-empty {
243258
@include flex-column-center;
244259
flex: 0 0 100%;

assets/scss/components/_json.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ waterfall[data-tab-mode="json"] {
1414
overflow: clip;
1515
margin: 0;
1616
}
17+
1718
waterfall-content waterfall-tab-content {
1819
//overflow: hidden;
1920
}
21+
2022
[data-command-action="minify"] {
2123
color: var(--waterfall-header-tab-active-color);
2224
}
25+
2326
@media screen and (max-width: 640px) {
2427
waterfall-filters waterfall-actions > waterfall-info {
2528
flex: 0 0 100%;

assets/scss/components/_main.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,12 @@ waterfall {
5151

5252
&[data-resize] {
5353
cursor: ns-resize;
54-
transition: unset;
54+
transition: none;
5555
user-select: none;
56+
57+
&[data-resize="resize-x"] {
58+
cursor: ew-resize;
59+
}
5660
}
5761

5862
pre,

assets/scss/components/_preference.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ waterfall-preference {
1616
height: 0;
1717
background-color: var(--waterfall-bg-color-base);
1818
transition: opacity ease .1s, visibility ease .1s;
19+
1920
&[data-status="active"] {
2021
visibility: visible;
2122
opacity: 1;
2223
height: calc(100% - var(--waterfall-header-height));
2324
}
2425
}
26+
2527
// -----------------------------------------------------------------
2628
// END PREFERENCE
2729
// -----------------------------------------------------------------

assets/scss/components/_root.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,13 @@
4646
--waterfall-aggregator-active-color: #cfe1f9;
4747
--waterfall-aggregator-active-text-color: #001e46;
4848
}
49+
4950
:root:has(waterfall[data-color-mode="dark"]) {
5051
//--waterfall-bg-color-base: #2b2b2b;
5152
--waterfall-bg-color-base: #282828;
5253
--waterfall-header-bg-color: #3c3c3c;
5354
--waterfall-action-hover-color: #4d4d4d;
54-
--waterfall-action-filter-hover-color: rgba(255, 255,255, .1);
55+
--waterfall-action-filter-hover-color: rgba(255, 255, 255, .1);
5556
--waterfall-header-text-color: #e5e5e5;
5657
--waterfall-action-hover-text-color: #f1f1f1;
5758
--waterfall-header-border-color: #5e5e5e;
@@ -70,6 +71,7 @@
7071
--waterfall-aggregator-border-color: #7f7f7f;
7172
--waterfall-aggregator-active-text-color: #bee5fb;
7273
}
74+
7375
// -----------------------------------------------------------------
7476
// END ROOT
7577
// -----------------------------------------------------------------

0 commit comments

Comments
 (0)