@skygraph/styles 0.2.4 → 0.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/README.md +98 -98
  2. package/components/autocomplete.css +35 -35
  3. package/components/autofield.css +67 -67
  4. package/components/avatar.css +37 -37
  5. package/components/badge.css +102 -102
  6. package/components/breadcrumb.css +29 -29
  7. package/components/button.css +181 -181
  8. package/components/calendar.css +408 -408
  9. package/components/carousel.css +102 -102
  10. package/components/cascader.css +380 -380
  11. package/components/charts.css +408 -408
  12. package/components/checkbox.css +114 -114
  13. package/components/collapse.css +166 -166
  14. package/components/colorpicker.css +252 -252
  15. package/components/context-menu.css +95 -95
  16. package/components/descriptions.css +82 -82
  17. package/components/diagram.css +435 -435
  18. package/components/drawer.css +124 -124
  19. package/components/dropdown.css +110 -110
  20. package/components/empty.css +25 -25
  21. package/components/event-timeline.css +134 -134
  22. package/components/field.css +35 -35
  23. package/components/form.css +115 -115
  24. package/components/gantt.css +166 -166
  25. package/components/input-number.css +76 -76
  26. package/components/input-password.css +104 -104
  27. package/components/input.css +211 -211
  28. package/components/list.css +366 -366
  29. package/components/mentions.css +54 -54
  30. package/components/menu.css +326 -326
  31. package/components/modal.css +1 -0
  32. package/components/notification.css +128 -128
  33. package/components/pagination.css +162 -162
  34. package/components/popconfirm.css +95 -95
  35. package/components/progress.css +116 -116
  36. package/components/radio.css +95 -95
  37. package/components/rate.css +48 -48
  38. package/components/resource-calendar.css +224 -224
  39. package/components/result.css +45 -45
  40. package/components/schema-form-editor.css +433 -433
  41. package/components/search-input.css +112 -112
  42. package/components/segmented.css +76 -76
  43. package/components/select.css +181 -181
  44. package/components/skeleton.css +72 -72
  45. package/components/slider.css +51 -51
  46. package/components/spin.css +102 -102
  47. package/components/steps.css +194 -194
  48. package/components/switch.css +75 -75
  49. package/components/table.css +9 -1
  50. package/components/tabs.css +137 -137
  51. package/components/tag.css +61 -61
  52. package/components/textarea.css +22 -22
  53. package/components/timeline.css +169 -169
  54. package/components/timepicker.css +224 -224
  55. package/components/tooltip.css +91 -91
  56. package/components/transfer.css +140 -140
  57. package/components/tree.css +601 -601
  58. package/components/treeselect.css +221 -221
  59. package/components/upload.css +124 -124
  60. package/index.css +70 -70
  61. package/index.d.ts +9 -9
  62. package/package.json +1 -1
  63. package/print.css +88 -88
  64. package/reset.css +17 -17
  65. package/themes/dark.css +17 -17
  66. package/themes/default.css +14 -14
  67. package/tokens.css +310 -310
  68. package/transitions.css +158 -158
@@ -1,169 +1,169 @@
1
- .sg-timeline {
2
- list-style: none;
3
- margin: 0;
4
- padding: 0;
5
- font-size: var(--sg-font-size);
6
- color: var(--sg-color-text);
7
- }
8
-
9
- .sg-timeline-item {
10
- position: relative;
11
- display: flex;
12
- padding-bottom: var(--sg-padding-xl);
13
- }
14
-
15
- .sg-timeline-item:last-child {
16
- padding-bottom: 0;
17
- }
18
-
19
- /* Head wrapper (dot + tail) */
20
- .sg-timeline-item-head-wrapper {
21
- position: relative;
22
- display: flex;
23
- flex-direction: column;
24
- align-items: center;
25
- flex-shrink: 0;
26
- width: 20px;
27
- }
28
-
29
- .sg-timeline-item-head {
30
- width: 10px;
31
- height: 10px;
32
- border-radius: 50%;
33
- border: 2px solid var(--sg-color-primary);
34
- background: var(--sg-color-bg);
35
- flex-shrink: 0;
36
- z-index: 1;
37
- /* Drop-shadow on the head doubles as a focus halo + visual weight,
38
- * so timeline items have a sense of being "pinned" rather than
39
- * floating against an empty rail. Reuses the event-timeline token
40
- * for visual consistency. */
41
- box-shadow: var(--sg-event-timeline-dot-shadow);
42
- transition:
43
- box-shadow var(--sg-transition-medium),
44
- transform var(--sg-transition-medium);
45
- }
46
-
47
- .sg-timeline-item:hover .sg-timeline-item-head {
48
- box-shadow: var(--sg-event-timeline-dot-shadow-hover);
49
- transform: scale(1.15);
50
- }
51
-
52
- .sg-timeline-item-head-custom {
53
- width: auto;
54
- height: auto;
55
- border: none;
56
- background: transparent;
57
- display: flex;
58
- align-items: center;
59
- justify-content: center;
60
- font-size: var(--sg-font-size-lg);
61
- /* Custom-icon heads don't need the dot halo; the user-supplied
62
- * graphic carries its own weight. */
63
- box-shadow: none;
64
- }
65
-
66
- .sg-timeline-item:hover .sg-timeline-item-head-custom {
67
- box-shadow: none;
68
- transform: none;
69
- }
70
-
71
- .sg-timeline-item-tail {
72
- flex: 1;
73
- width: 2px;
74
- /* Gradient tail — the rail fades from `--sg-timeline-tail-color` at
75
- * the dot down to a slightly more transparent version, giving the
76
- * timeline a sense of motion. The two stops use the same token so a
77
- * theme override re-tints the entire rail. */
78
- background: linear-gradient(
79
- to bottom,
80
- var(--sg-timeline-tail-color) 0%,
81
- var(--sg-timeline-tail-color) 60%,
82
- var(--sg-color-border-secondary) 100%
83
- );
84
- margin-top: var(--sg-margin-xs);
85
- min-height: 16px;
86
- border-radius: 1px;
87
- }
88
-
89
- /* Content */
90
- .sg-timeline-item-content {
91
- flex: 1;
92
- min-width: 0;
93
- padding: 0 0 0 var(--sg-padding-md);
94
- line-height: var(--sg-line-height);
95
- position: relative;
96
- top: -3px;
97
- }
98
-
99
- /* Label */
100
- .sg-timeline-item-label {
101
- width: 120px;
102
- flex-shrink: 0;
103
- text-align: right;
104
- padding-right: var(--sg-padding-md);
105
- color: var(--sg-color-text-secondary);
106
- font-size: var(--sg-font-size-sm);
107
- position: relative;
108
- top: -3px;
109
- }
110
-
111
- /* Mode: left (default) */
112
- .sg-timeline-left .sg-timeline-item {
113
- flex-direction: row;
114
- }
115
-
116
- .sg-timeline-left .sg-timeline-item-label {
117
- display: none;
118
- }
119
-
120
- /* Mode: right */
121
- .sg-timeline-right .sg-timeline-item {
122
- flex-direction: row-reverse;
123
- }
124
-
125
- .sg-timeline-right .sg-timeline-item-content {
126
- padding: 0 var(--sg-padding-md) 0 0;
127
- text-align: right;
128
- }
129
-
130
- .sg-timeline-right .sg-timeline-item-label {
131
- display: none;
132
- }
133
-
134
- /* Mode: alternate */
135
- .sg-timeline-alternate .sg-timeline-item-label {
136
- display: block;
137
- }
138
-
139
- .sg-timeline-alternate .sg-timeline-item-left {
140
- flex-direction: row;
141
- }
142
-
143
- .sg-timeline-alternate .sg-timeline-item-left .sg-timeline-item-label {
144
- text-align: right;
145
- }
146
-
147
- .sg-timeline-alternate .sg-timeline-item-right {
148
- flex-direction: row-reverse;
149
- }
150
-
151
- .sg-timeline-alternate .sg-timeline-item-right .sg-timeline-item-content {
152
- padding: 0 var(--sg-padding-md) 0 0;
153
- text-align: right;
154
- }
155
-
156
- .sg-timeline-alternate .sg-timeline-item-right .sg-timeline-item-label {
157
- text-align: left;
158
- padding-right: 0;
159
- padding-left: var(--sg-padding-md);
160
- }
161
-
162
- /* Pending */
163
- .sg-timeline-item-pending .sg-timeline-item-head {
164
- border-color: var(--sg-color-text-disabled);
165
- }
166
-
167
- .sg-timeline-item-pending .sg-timeline-item-content {
168
- color: var(--sg-color-text-tertiary);
169
- }
1
+ .sg-timeline {
2
+ list-style: none;
3
+ margin: 0;
4
+ padding: 0;
5
+ font-size: var(--sg-font-size);
6
+ color: var(--sg-color-text);
7
+ }
8
+
9
+ .sg-timeline-item {
10
+ position: relative;
11
+ display: flex;
12
+ padding-bottom: var(--sg-padding-xl);
13
+ }
14
+
15
+ .sg-timeline-item:last-child {
16
+ padding-bottom: 0;
17
+ }
18
+
19
+ /* Head wrapper (dot + tail) */
20
+ .sg-timeline-item-head-wrapper {
21
+ position: relative;
22
+ display: flex;
23
+ flex-direction: column;
24
+ align-items: center;
25
+ flex-shrink: 0;
26
+ width: 20px;
27
+ }
28
+
29
+ .sg-timeline-item-head {
30
+ width: 10px;
31
+ height: 10px;
32
+ border-radius: 50%;
33
+ border: 2px solid var(--sg-color-primary);
34
+ background: var(--sg-color-bg);
35
+ flex-shrink: 0;
36
+ z-index: 1;
37
+ /* Drop-shadow on the head doubles as a focus halo + visual weight,
38
+ * so timeline items have a sense of being "pinned" rather than
39
+ * floating against an empty rail. Reuses the event-timeline token
40
+ * for visual consistency. */
41
+ box-shadow: var(--sg-event-timeline-dot-shadow);
42
+ transition:
43
+ box-shadow var(--sg-transition-medium),
44
+ transform var(--sg-transition-medium);
45
+ }
46
+
47
+ .sg-timeline-item:hover .sg-timeline-item-head {
48
+ box-shadow: var(--sg-event-timeline-dot-shadow-hover);
49
+ transform: scale(1.15);
50
+ }
51
+
52
+ .sg-timeline-item-head-custom {
53
+ width: auto;
54
+ height: auto;
55
+ border: none;
56
+ background: transparent;
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ font-size: var(--sg-font-size-lg);
61
+ /* Custom-icon heads don't need the dot halo; the user-supplied
62
+ * graphic carries its own weight. */
63
+ box-shadow: none;
64
+ }
65
+
66
+ .sg-timeline-item:hover .sg-timeline-item-head-custom {
67
+ box-shadow: none;
68
+ transform: none;
69
+ }
70
+
71
+ .sg-timeline-item-tail {
72
+ flex: 1;
73
+ width: 2px;
74
+ /* Gradient tail — the rail fades from `--sg-timeline-tail-color` at
75
+ * the dot down to a slightly more transparent version, giving the
76
+ * timeline a sense of motion. The two stops use the same token so a
77
+ * theme override re-tints the entire rail. */
78
+ background: linear-gradient(
79
+ to bottom,
80
+ var(--sg-timeline-tail-color) 0%,
81
+ var(--sg-timeline-tail-color) 60%,
82
+ var(--sg-color-border-secondary) 100%
83
+ );
84
+ margin-top: var(--sg-margin-xs);
85
+ min-height: 16px;
86
+ border-radius: 1px;
87
+ }
88
+
89
+ /* Content */
90
+ .sg-timeline-item-content {
91
+ flex: 1;
92
+ min-width: 0;
93
+ padding: 0 0 0 var(--sg-padding-md);
94
+ line-height: var(--sg-line-height);
95
+ position: relative;
96
+ top: -3px;
97
+ }
98
+
99
+ /* Label */
100
+ .sg-timeline-item-label {
101
+ width: 120px;
102
+ flex-shrink: 0;
103
+ text-align: right;
104
+ padding-right: var(--sg-padding-md);
105
+ color: var(--sg-color-text-secondary);
106
+ font-size: var(--sg-font-size-sm);
107
+ position: relative;
108
+ top: -3px;
109
+ }
110
+
111
+ /* Mode: left (default) */
112
+ .sg-timeline-left .sg-timeline-item {
113
+ flex-direction: row;
114
+ }
115
+
116
+ .sg-timeline-left .sg-timeline-item-label {
117
+ display: none;
118
+ }
119
+
120
+ /* Mode: right */
121
+ .sg-timeline-right .sg-timeline-item {
122
+ flex-direction: row-reverse;
123
+ }
124
+
125
+ .sg-timeline-right .sg-timeline-item-content {
126
+ padding: 0 var(--sg-padding-md) 0 0;
127
+ text-align: right;
128
+ }
129
+
130
+ .sg-timeline-right .sg-timeline-item-label {
131
+ display: none;
132
+ }
133
+
134
+ /* Mode: alternate */
135
+ .sg-timeline-alternate .sg-timeline-item-label {
136
+ display: block;
137
+ }
138
+
139
+ .sg-timeline-alternate .sg-timeline-item-left {
140
+ flex-direction: row;
141
+ }
142
+
143
+ .sg-timeline-alternate .sg-timeline-item-left .sg-timeline-item-label {
144
+ text-align: right;
145
+ }
146
+
147
+ .sg-timeline-alternate .sg-timeline-item-right {
148
+ flex-direction: row-reverse;
149
+ }
150
+
151
+ .sg-timeline-alternate .sg-timeline-item-right .sg-timeline-item-content {
152
+ padding: 0 var(--sg-padding-md) 0 0;
153
+ text-align: right;
154
+ }
155
+
156
+ .sg-timeline-alternate .sg-timeline-item-right .sg-timeline-item-label {
157
+ text-align: left;
158
+ padding-right: 0;
159
+ padding-left: var(--sg-padding-md);
160
+ }
161
+
162
+ /* Pending */
163
+ .sg-timeline-item-pending .sg-timeline-item-head {
164
+ border-color: var(--sg-color-text-disabled);
165
+ }
166
+
167
+ .sg-timeline-item-pending .sg-timeline-item-content {
168
+ color: var(--sg-color-text-tertiary);
169
+ }