Skip to content

Commit 22685ea

Browse files
committed
doc: demo styles
1 parent 5e3c721 commit 22685ea

File tree

6 files changed

+30
-26
lines changed

6 files changed

+30
-26
lines changed

docs/src/app.css

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,38 @@
55

66
@layer components {
77
.demo {
8-
@apply text-base;
8+
@apply text-base font-sans;
99

1010
table& {
11-
border-spacing: 0;
12-
@apply text-black border-gray-300 border-t border-l font-sans;
13-
@apply dark:text-white dark:border-gray-400;
11+
@apply text-gray-800 border rounded-md;
12+
@apply dark:text-white dark:border-gray-400 dark:bg-gray-900;
1413

1514
& tr {
1615
@apply bg-transparent dark:bg-transparent;
1716
}
17+
18+
& th {
19+
@apply bg-gray-100 font-bold;
20+
@apply dark:bg-gray-700;
21+
}
1822

1923
& th,
2024
& td {
21-
@apply border-gray-300 m-0 p-1.5 border-b border-r;
25+
@apply border-gray-200 m-0 px-2 py-1 border-b border-r;
2226
@apply dark:border-gray-400;
2327
}
2428
}
2529

26-
button& {
27-
@apply text-black bg-gray-200 disabled:opacity-30;
30+
button&, & button {
31+
@apply text-black bg-gray-200 disabled:opacity-30 font-semibold;
2832
@apply dark:bg-gray-500 dark:text-white;
29-
@apply p-1.5 border border-gray-300 rounded-lg;
33+
@apply px-1.5 py-1 rounded-lg;
3034
}
3135

32-
input&,
33-
select& {
34-
@apply p-1.5 border border-gray-300 rounded-lg;
35-
@apply dark:bg-gray-800 dark:text-white;
36+
input&, & input,
37+
select&, & select {
38+
@apply px-2 py-1 border border-gray-200 rounded-lg font-normal;
39+
@apply dark:bg-gray-800 dark:text-white dark:border-gray-400;
3640
}
3741
}
3842
}

docs/src/kit-docs/Example.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<style lang="postcss">
2727
.disclosure {
2828
& :global(.root) {
29-
@apply px-4 py-2 border-2 rounded-lg;
29+
@apply px-4 py-2 border rounded-lg;
3030
@apply border-gray-200 bg-gray-100/50;
3131
:global(.dark) & {
3232
@apply border-gray-600 bg-gray-600/50;
@@ -45,7 +45,7 @@
4545
}
4646
4747
& :global(.panel) {
48-
@apply py-2 border-t-2 border-gray-200;
48+
@apply py-2 border-t border-gray-200;
4949
:global(.dark) & {
5050
@apply border-gray-600;
5151
}

docs/src/routes/docs/[...3]plugins/_demo/SimpleGroupByDemo.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@
162162

163163
<style>
164164
.group {
165-
background: rgb(144, 191, 148);
165+
background: rgb(144, 191, 148, 0.2);
166166
}
167167
.aggregate {
168-
background: rgb(238, 212, 100);
168+
background: rgb(238, 212, 100, 0.2);
169169
}
170170
.repeat {
171-
background: rgb(255, 139, 139);
171+
background: rgb(255, 139, 139, 0.2);
172172
}
173173
</style>

docs/src/routes/docs/[...3]plugins/_demo/SimpleResizedColumnsDemo.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@
100100
position: relative;
101101
}
102102
103-
.resizer {
103+
th .resizer {
104104
position: absolute;
105105
top: 0;
106106
bottom: 0;
107107
right: -4px;
108108
width: 8px;
109-
background: lightgray;
110-
cursor: col-resize;
111109
z-index: 1;
110+
background: rgba(128, 128, 128, 0.2);
111+
cursor: col-resize;
112112
}
113113
</style>

docs/src/routes/docs/[...3]plugins/_demo/SimpleSelectedDemo.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,6 @@
128128

129129
<style>
130130
.selected {
131-
background: rgb(148, 205, 255);
131+
background: rgb(148, 205, 255, 0.2);
132132
}
133133
</style>

docs/src/routes/docs/[...4]examples/_KitchenSink.svelte

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -394,21 +394,21 @@
394394
cursor: col-resize;
395395
}
396396
.sorted {
397-
background: rgb(144, 191, 148, 0.5);
397+
background: rgb(144, 191, 148, 0.2);
398398
}
399399
.matches {
400400
font-weight: 700;
401401
}
402402
.group {
403-
background: rgb(144, 191, 148, 0.5);
403+
background: rgb(144, 191, 148, 0.2);
404404
}
405405
.aggregate {
406-
background: rgb(238, 212, 100, 0.5);
406+
background: rgb(238, 212, 100, 0.2);
407407
}
408408
.repeat {
409-
background: rgb(255, 139, 139, 0.5);
409+
background: rgb(255, 139, 139, 0.2);
410410
}
411411
.selected {
412-
background: rgb(148, 205, 255, 0.5);
412+
background: rgb(148, 205, 255, 0.2);
413413
}
414414
</style>

0 commit comments

Comments
 (0)