@stoplight/ui-kit 3.0.0-beta.37 → 3.0.0-beta.40
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.
- package/TableOfContents/index.d.ts +3 -0
- package/TableOfContents/index.js +45 -6
- package/TableOfContents/index.js.map +1 -1
- package/package.json +1 -1
- package/styles/_blueprint.scss +4 -4
- package/styles/blueprint/_variables.scss +3 -1
- package/styles/blueprint/select/blueprint-select.scss +8 -0
- package/styles/blueprint/select/components/_index.scss +6 -0
- package/styles/blueprint/select/components/omnibar/_omnibar.scss +63 -0
- package/styles/blueprint/select/components/select/_multi-select.scss +17 -0
- package/styles/blueprint/select/components/select/_select.scss +31 -0
- package/styles/blueprint/src/_reset.scss +43 -0
- package/styles/blueprint/src/_typography.scss +459 -0
- package/styles/blueprint/src/accessibility/_focus-states.scss +17 -0
- package/styles/blueprint/src/blueprint-hi-contrast.scss +22 -0
- package/styles/blueprint/src/blueprint.scss +16 -0
- package/styles/blueprint/src/common/_color-aliases.scss +43 -0
- package/styles/blueprint/src/common/_colors.scss +116 -0
- package/styles/blueprint/src/common/_flex.scss +49 -0
- package/styles/blueprint/src/common/_mixins.scss +128 -0
- package/styles/blueprint/src/common/_react-transition.scss +117 -0
- package/styles/blueprint/src/common/_variables.scss +131 -0
- package/styles/blueprint/src/components/_index.scss +38 -0
- package/styles/blueprint/src/components/alert/_alert.scss +33 -0
- package/styles/blueprint/src/components/breadcrumbs/_breadcrumbs.scss +142 -0
- package/styles/blueprint/src/components/button/_button-group.scss +240 -0
- package/styles/blueprint/src/components/button/_button.scss +206 -0
- package/styles/blueprint/src/components/button/_common.scss +507 -0
- package/styles/blueprint/src/components/callout/_callout.scss +99 -0
- package/styles/blueprint/src/components/card/_card.scss +91 -0
- package/styles/blueprint/src/components/collapse/_collapse.scss +20 -0
- package/styles/blueprint/src/components/context-menu/_context-menu.scss +10 -0
- package/styles/blueprint/src/components/dialog/_dialog.scss +146 -0
- package/styles/blueprint/src/components/divider/_divider.scss +19 -0
- package/styles/blueprint/src/components/drawer/_drawer.scss +232 -0
- package/styles/blueprint/src/components/editable-text/_editable-text.scss +156 -0
- package/styles/blueprint/src/components/forms/_common.scss +239 -0
- package/styles/blueprint/src/components/forms/_control-group.scss +276 -0
- package/styles/blueprint/src/components/forms/_controls.scss +526 -0
- package/styles/blueprint/src/components/forms/_file-input.scss +155 -0
- package/styles/blueprint/src/components/forms/_form-group.scss +111 -0
- package/styles/blueprint/src/components/forms/_index.scss +20 -0
- package/styles/blueprint/src/components/forms/_input-group.scss +247 -0
- package/styles/blueprint/src/components/forms/_input.scss +115 -0
- package/styles/blueprint/src/components/forms/_label.scss +114 -0
- package/styles/blueprint/src/components/forms/_numeric-input.scss +40 -0
- package/styles/blueprint/src/components/hotkeys/_hotkeys.scss +50 -0
- package/styles/blueprint/src/components/html-select/_common.scss +52 -0
- package/styles/blueprint/src/components/html-select/_html-select.scss +104 -0
- package/styles/blueprint/src/components/html-table/_html-table.scss +208 -0
- package/styles/blueprint/src/components/icon/_icon.scss +79 -0
- package/styles/blueprint/src/components/menu/_common.scss +172 -0
- package/styles/blueprint/src/components/menu/_menu.scss +197 -0
- package/styles/blueprint/src/components/menu/_submenu.scss +41 -0
- package/styles/blueprint/src/components/navbar/_navbar.scss +117 -0
- package/styles/blueprint/src/components/non-ideal-state/_non-ideal-state.scss +43 -0
- package/styles/blueprint/src/components/overflow-list/_overflow-list.scss +13 -0
- package/styles/blueprint/src/components/overlay/_overlay.scss +94 -0
- package/styles/blueprint/src/components/panel-stack/_panel-stack.scss +103 -0
- package/styles/blueprint/src/components/popover/_common.scss +171 -0
- package/styles/blueprint/src/components/popover/_popover.scss +127 -0
- package/styles/blueprint/src/components/portal/_portal.scss +15 -0
- package/styles/blueprint/src/components/progress-bar/_common.scss +9 -0
- package/styles/blueprint/src/components/progress-bar/_progress-bar.scss +98 -0
- package/styles/blueprint/src/components/skeleton/_common.scss +8 -0
- package/styles/blueprint/src/components/skeleton/_skeleton.scss +64 -0
- package/styles/blueprint/src/components/slider/_common.scss +48 -0
- package/styles/blueprint/src/components/slider/_slider.scss +216 -0
- package/styles/blueprint/src/components/spinner/_spinner.scss +65 -0
- package/styles/blueprint/src/components/tabs/_tabs.scss +199 -0
- package/styles/blueprint/src/components/tag/_common.scss +202 -0
- package/styles/blueprint/src/components/tag/_tag.scss +75 -0
- package/styles/blueprint/src/components/tag-input/_tag-input.scss +165 -0
- package/styles/blueprint/src/components/toast/_toast.scss +203 -0
- package/styles/blueprint/src/components/tooltip/_common.scss +11 -0
- package/styles/blueprint/src/components/tooltip/_tooltip.scss +61 -0
- package/styles/blueprint/src/components/tree/_tree.scss +194 -0
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
@charset "utf-8"; // foreign characters ahead (in KSS markup)
|
|
2
|
+
|
|
3
|
+
// Copyright 2015 Palantir Technologies, Inc. All rights reserved.
|
|
4
|
+
// Licensed under the Apache License, Version 2.0.
|
|
5
|
+
|
|
6
|
+
@import "common/variables";
|
|
7
|
+
@import "common/mixins";
|
|
8
|
+
@import "~@blueprintjs/icons/src/icons";
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
Headings
|
|
12
|
+
|
|
13
|
+
Markup:
|
|
14
|
+
<div>
|
|
15
|
+
<h1 class="@ns-heading">H1 heading</h1>
|
|
16
|
+
<h2 class="@ns-heading">H2 heading</h2>
|
|
17
|
+
<h3 class="@ns-heading">H3 heading</h3>
|
|
18
|
+
<h4 class="@ns-heading">H4 heading</h4>
|
|
19
|
+
<h5 class="@ns-heading">H5 heading</h5>
|
|
20
|
+
<h6 class="@ns-heading">H6 heading</h6>
|
|
21
|
+
</div>
|
|
22
|
+
|
|
23
|
+
Styleguide headings
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
.#{$ns}-heading {
|
|
27
|
+
@include heading-typography();
|
|
28
|
+
margin: 0 0 $pt-grid-size;
|
|
29
|
+
padding: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// tag: (font-size, line-height)
|
|
33
|
+
$headings: (
|
|
34
|
+
"h1": (36px, 40px),
|
|
35
|
+
"h2": (28px, 32px),
|
|
36
|
+
"h3": (22px, 25px),
|
|
37
|
+
"h4": (18px, 21px),
|
|
38
|
+
"h5": (16px, 19px),
|
|
39
|
+
"h6": (14px, 16px)
|
|
40
|
+
) !default;
|
|
41
|
+
|
|
42
|
+
@each $tag, $props in $headings {
|
|
43
|
+
%#{$tag} {
|
|
44
|
+
font-size: nth($props, 1);
|
|
45
|
+
line-height: nth($props, 2);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
#{$tag}.#{$ns}-heading {
|
|
49
|
+
@extend %#{$tag};
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/*
|
|
54
|
+
UI text
|
|
55
|
+
|
|
56
|
+
Markup:
|
|
57
|
+
<div class="{{.modifier}}">
|
|
58
|
+
More than a decade ago, we set out to create products that would transform
|
|
59
|
+
the way organizations use their data. Today, our products are deployed at
|
|
60
|
+
the most critical government, commercial, and non-profit institutions in
|
|
61
|
+
the world to solve problems we hadn’t even dreamed of back then.
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
.#{$ns}-ui-text - Default Blueprint font styles, applied to the `<body>` tag and available as a class for nested resets.
|
|
65
|
+
.#{$ns}-monospace-text - Use a monospace font (ideal for code).
|
|
66
|
+
.#{$ns}-running-text - Increase line height ideal for longform text. See [Running text](#core/typography.running-text) below for additional features.
|
|
67
|
+
.#{$ns}-text-large - Use a larger font size.
|
|
68
|
+
.#{$ns}-text-small - Use a smaller font size.
|
|
69
|
+
.#{$ns}-text-muted - Change text color to a gentler gray.
|
|
70
|
+
.#{$ns}-text-disabled - Change text color to a transparent, faded gray.
|
|
71
|
+
.#{$ns}-text-overflow-ellipsis - Truncate a single line of text with an ellipsis if it overflows its container.
|
|
72
|
+
|
|
73
|
+
Styleguide ui-text
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
.#{$ns}-ui-text {
|
|
77
|
+
@include base-typography();
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.#{$ns}-monospace-text {
|
|
81
|
+
@include monospace-typography();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// NOTE: .#{$ns}-text-large defined below after .#{$ns}-running-text
|
|
85
|
+
|
|
86
|
+
.#{$ns}-text-muted {
|
|
87
|
+
color: $pt-text-color-muted;
|
|
88
|
+
|
|
89
|
+
.#{$ns}-dark & {
|
|
90
|
+
color: $pt-dark-text-color-muted;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.#{$ns}-text-disabled {
|
|
95
|
+
color: $pt-text-color-disabled;
|
|
96
|
+
|
|
97
|
+
.#{$ns}-dark & {
|
|
98
|
+
color: $pt-dark-text-color-disabled;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.#{$ns}-text-overflow-ellipsis {
|
|
103
|
+
@include overflow-ellipsis();
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/*
|
|
107
|
+
Running text
|
|
108
|
+
|
|
109
|
+
Markup:
|
|
110
|
+
<div class="@ns-running-text {{.modifier}}">
|
|
111
|
+
<p>
|
|
112
|
+
We build products that make people better at their most important
|
|
113
|
+
work — the kind of work you read about on the front page of the
|
|
114
|
+
newspaper, not just the technology section.
|
|
115
|
+
</p>
|
|
116
|
+
<ul>
|
|
117
|
+
<li>Item the <code>first</code>.</li>
|
|
118
|
+
<li>Item the <strong>second</strong></code>.</li>
|
|
119
|
+
<li>Item the <a href="#core/typography.running-text">third</a>.</li>
|
|
120
|
+
</ul>
|
|
121
|
+
<h3>Scale, Speed, Agility</h3>
|
|
122
|
+
<p>
|
|
123
|
+
A successful data transformation requires the whole organization — users, the IT shop, and
|
|
124
|
+
leadership — to operate in lockstep. With Foundry, the enterprise comes together to
|
|
125
|
+
transform the organization and turn data into a competitive advantage.
|
|
126
|
+
</p>
|
|
127
|
+
</div>
|
|
128
|
+
|
|
129
|
+
.#{$ns}-text-large - Use larger font size.
|
|
130
|
+
|
|
131
|
+
Styleguide running-text
|
|
132
|
+
*/
|
|
133
|
+
|
|
134
|
+
.#{$ns}-running-text {
|
|
135
|
+
@include running-typography();
|
|
136
|
+
|
|
137
|
+
@each $tag, $props in $headings {
|
|
138
|
+
#{$tag} {
|
|
139
|
+
@extend %#{$tag};
|
|
140
|
+
@include heading-typography();
|
|
141
|
+
margin-bottom: $pt-grid-size * 2;
|
|
142
|
+
margin-top: $pt-grid-size * 4;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
hr {
|
|
147
|
+
border: none;
|
|
148
|
+
border-bottom: 1px solid $pt-divider-black;
|
|
149
|
+
margin: ($pt-grid-size * 2) 0;
|
|
150
|
+
|
|
151
|
+
.#{$ns}-dark & {
|
|
152
|
+
border-color: $pt-dark-divider-white;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
p {
|
|
157
|
+
margin: 0 0 $pt-grid-size;
|
|
158
|
+
padding: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
blockquote {
|
|
162
|
+
@extend %blockquote;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
code {
|
|
166
|
+
@extend %code;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
kbd {
|
|
170
|
+
@extend %keyboard;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
pre {
|
|
174
|
+
@extend %code-block;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
table {
|
|
178
|
+
@extend %html-table;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
ul,
|
|
182
|
+
ol {
|
|
183
|
+
@extend %list;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// NOTE: these must be defined after .@ns-running-text in order to override font-size.
|
|
188
|
+
.#{$ns}-text-large {
|
|
189
|
+
font-size: $pt-font-size-large;
|
|
190
|
+
// line-height comes from .@ns-(ui|running)-text
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.#{$ns}-text-small {
|
|
194
|
+
font-size: $pt-font-size-small;
|
|
195
|
+
// line-height comes from .@ns-(ui|running)-text
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/*
|
|
199
|
+
Links
|
|
200
|
+
|
|
201
|
+
Simply use an `<a href="">` tag as you normally would. No class is necessary for Blueprint styles.
|
|
202
|
+
Links are underlined only when hovered.
|
|
203
|
+
|
|
204
|
+
Putting an icon inside a link will cause it to inherit the link's text color.
|
|
205
|
+
|
|
206
|
+
Styleguide typography.links
|
|
207
|
+
*/
|
|
208
|
+
|
|
209
|
+
a {
|
|
210
|
+
color: $pt-link-color;
|
|
211
|
+
text-decoration: none;
|
|
212
|
+
|
|
213
|
+
&:hover {
|
|
214
|
+
color: $pt-link-color;
|
|
215
|
+
cursor: pointer;
|
|
216
|
+
text-decoration: underline;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
#{$icon-classes} {
|
|
220
|
+
color: inherit;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
code,
|
|
224
|
+
.#{$ns}-dark & code {
|
|
225
|
+
color: inherit;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.#{$ns}-dark &,
|
|
229
|
+
.#{$ns}-dark &:hover {
|
|
230
|
+
color: $pt-dark-link-color;
|
|
231
|
+
|
|
232
|
+
#{$icon-classes} {
|
|
233
|
+
color: inherit;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/*
|
|
239
|
+
Preformatted text
|
|
240
|
+
|
|
241
|
+
Markup:
|
|
242
|
+
<div>
|
|
243
|
+
<p>Use the <code class="@ns-code"><code></code> tag for snippets of code.</p>
|
|
244
|
+
<pre class="@ns-code-block">Use the <pre> tag for blocks of code.</pre>
|
|
245
|
+
<pre class="@ns-code-block"><code>// code sample
|
|
246
|
+
export function hasModifier(
|
|
247
|
+
modifiers: ts.ModifiersArray,
|
|
248
|
+
...modifierKinds: ts.SyntaxKind[],
|
|
249
|
+
) {
|
|
250
|
+
if (modifiers == null || modifierKinds == null) {
|
|
251
|
+
return false;
|
|
252
|
+
}
|
|
253
|
+
return modifiers.some(m => modifierKinds.some(k => m.kind === k));
|
|
254
|
+
}</code></pre>
|
|
255
|
+
</div>
|
|
256
|
+
|
|
257
|
+
Styleguide preformatted
|
|
258
|
+
*/
|
|
259
|
+
|
|
260
|
+
%code {
|
|
261
|
+
@include monospace-typography();
|
|
262
|
+
background: $pt-code-background-color;
|
|
263
|
+
|
|
264
|
+
border-radius: $pt-border-radius;
|
|
265
|
+
box-shadow: inset border-shadow(0.2);
|
|
266
|
+
color: $pt-code-text-color;
|
|
267
|
+
font-size: smaller;
|
|
268
|
+
padding: 2px 5px;
|
|
269
|
+
|
|
270
|
+
.#{$ns}-dark & {
|
|
271
|
+
background: $pt-dark-code-background-color;
|
|
272
|
+
box-shadow: inset border-shadow(0.4);
|
|
273
|
+
color: $pt-dark-code-text-color;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
a > & {
|
|
277
|
+
// <code> in links. markdown: [`code`](http://url)
|
|
278
|
+
// $pt-link-color does not have good contrast with non-link <code>'s in light theme, so we use a brighter hue
|
|
279
|
+
color: $pt-intent-primary;
|
|
280
|
+
|
|
281
|
+
.#{$ns}-dark & {
|
|
282
|
+
color: inherit;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
%code-block {
|
|
288
|
+
@include monospace-typography();
|
|
289
|
+
background: $pt-code-background-color;
|
|
290
|
+
border-radius: $pt-border-radius;
|
|
291
|
+
box-shadow: inset 0 0 0 1px $pt-divider-black;
|
|
292
|
+
color: $pt-text-color;
|
|
293
|
+
|
|
294
|
+
display: block;
|
|
295
|
+
font-size: $pt-font-size - 1px;
|
|
296
|
+
line-height: 1.4;
|
|
297
|
+
margin: $pt-grid-size 0;
|
|
298
|
+
padding: ($pt-grid-size * 1.3) ($pt-grid-size * 1.5) ($pt-grid-size * 1.2);
|
|
299
|
+
word-break: break-all;
|
|
300
|
+
word-wrap: break-word;
|
|
301
|
+
|
|
302
|
+
.#{$ns}-dark & {
|
|
303
|
+
background: $pt-dark-code-background-color;
|
|
304
|
+
box-shadow: inset 0 0 0 1px $pt-dark-divider-black;
|
|
305
|
+
color: $pt-dark-text-color;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
> code {
|
|
309
|
+
background: none;
|
|
310
|
+
box-shadow: none;
|
|
311
|
+
color: inherit;
|
|
312
|
+
font-size: inherit;
|
|
313
|
+
padding: 0;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.#{$ns}-code {
|
|
318
|
+
@extend %code;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.#{$ns}-code-block {
|
|
322
|
+
@extend %code-block;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
%keyboard {
|
|
326
|
+
align-items: center;
|
|
327
|
+
background: $white;
|
|
328
|
+
border-radius: $pt-border-radius;
|
|
329
|
+
box-shadow: $pt-elevation-shadow-1;
|
|
330
|
+
color: $pt-text-color-muted;
|
|
331
|
+
display: inline-flex;
|
|
332
|
+
font-family: inherit;
|
|
333
|
+
font-size: $pt-font-size-small;
|
|
334
|
+
height: $pt-button-height-small;
|
|
335
|
+
justify-content: center;
|
|
336
|
+
line-height: $pt-button-height-small;
|
|
337
|
+
min-width: $pt-button-height-small;
|
|
338
|
+
padding: $pt-border-radius ($pt-border-radius * 2);
|
|
339
|
+
vertical-align: middle;
|
|
340
|
+
|
|
341
|
+
#{$icon-classes} {
|
|
342
|
+
margin-right: $pt-grid-size * 0.5;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.#{$ns}-dark & {
|
|
346
|
+
background: $dark-gray5;
|
|
347
|
+
box-shadow: $pt-dark-elevation-shadow-1;
|
|
348
|
+
color: $pt-dark-text-color-muted;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.#{$ns}-key {
|
|
353
|
+
@extend %keyboard;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/*
|
|
357
|
+
Block quotes
|
|
358
|
+
|
|
359
|
+
Markup:
|
|
360
|
+
<blockquote class="@ns-blockquote">
|
|
361
|
+
Premium Aerotec is a key supplier for Airbus, producing 30 million parts per year,
|
|
362
|
+
which is huge complexity. Skywise helps us manage all the production steps.
|
|
363
|
+
It gives Airbus much better visibility into where the product is in the supply chain,
|
|
364
|
+
and it lets us immediately see our weak points so we can react on the spot.
|
|
365
|
+
</blockquote>
|
|
366
|
+
|
|
367
|
+
Styleguide blockquote
|
|
368
|
+
*/
|
|
369
|
+
|
|
370
|
+
%blockquote {
|
|
371
|
+
border-left: solid 4px rgba($gray4, 0.5);
|
|
372
|
+
margin: 0 0 $pt-grid-size;
|
|
373
|
+
padding: 0 ($pt-grid-size * 2);
|
|
374
|
+
|
|
375
|
+
.#{$ns}-dark & {
|
|
376
|
+
border-color: rgba($gray2, 0.5);
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.#{$ns}-blockquote {
|
|
381
|
+
@extend %blockquote;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/*
|
|
385
|
+
Lists
|
|
386
|
+
|
|
387
|
+
Markup:
|
|
388
|
+
<ol class="{{.modifier}}">
|
|
389
|
+
<li>Item the first</li>
|
|
390
|
+
<li>Item the second</li>
|
|
391
|
+
<li>
|
|
392
|
+
Item the third
|
|
393
|
+
<ul class="{{.modifier}}">
|
|
394
|
+
<li>Item the fourth</li>
|
|
395
|
+
<li>Item the fifth</li>
|
|
396
|
+
</ul>
|
|
397
|
+
</li>
|
|
398
|
+
</ol>
|
|
399
|
+
|
|
400
|
+
.#{$ns}-list - Add a little spacing between items for readability.
|
|
401
|
+
.#{$ns}-list-unstyled - Remove all list styling (including indicators) so you can add your own.
|
|
402
|
+
|
|
403
|
+
Styleguide lists
|
|
404
|
+
*/
|
|
405
|
+
|
|
406
|
+
%list {
|
|
407
|
+
margin: $pt-grid-size 0;
|
|
408
|
+
padding-left: $pt-grid-size * 3;
|
|
409
|
+
|
|
410
|
+
li:not(:last-child) {
|
|
411
|
+
margin-bottom: $pt-grid-size * 0.5;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
// nested lists
|
|
415
|
+
ol,
|
|
416
|
+
ul {
|
|
417
|
+
margin-top: $pt-grid-size * 0.5;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.#{$ns}-list {
|
|
422
|
+
@extend %list;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.#{$ns}-list-unstyled {
|
|
426
|
+
list-style: none;
|
|
427
|
+
margin: 0;
|
|
428
|
+
padding: 0;
|
|
429
|
+
|
|
430
|
+
li {
|
|
431
|
+
padding: 0;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/*
|
|
436
|
+
Right-to-left text
|
|
437
|
+
|
|
438
|
+
Markup:
|
|
439
|
+
<h5 class="@ns-heading">Arabic:</h5>
|
|
440
|
+
<p class="@ns-rtl">
|
|
441
|
+
لكل لأداء بمحاولة من. مدينة الواقعة يبق أي, وإعلان وقوعها، حول كل, حدى عجّل مشروط الخاسرة قد.
|
|
442
|
+
من الذود تكبّد بين, و لها واحدة الأراضي. عل الصفحة والروسية يتم, أي للحكومة استعملت شيء. أم وصل زهاء اليا
|
|
443
|
+
</p>
|
|
444
|
+
<h5 class="@ns-heading">Hebrew:</h5>
|
|
445
|
+
<p class="@ns-rtl">
|
|
446
|
+
כדי על עזרה יידיש הבהרה, מלא באגים טכניים דת. תנך או ברית ביולי. כתב בה הטבע למנוע, דת כלים פיסיקה החופשית זכר.
|
|
447
|
+
מתן החלל מאמרשיחהצפה ב. הספרות אנציקלופדיה אם זכר, על שימושי שימושיים תאולוגיה עזה
|
|
448
|
+
</p>
|
|
449
|
+
|
|
450
|
+
Styleguide rtl
|
|
451
|
+
*/
|
|
452
|
+
|
|
453
|
+
.#{$ns}-rtl {
|
|
454
|
+
text-align: right;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.#{$ns}-dark {
|
|
458
|
+
color: $pt-dark-text-color;
|
|
459
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright 2016 Palantir Technologies, Inc. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License, Version 2.0.
|
|
3
|
+
|
|
4
|
+
:focus {
|
|
5
|
+
@include focus-outline();
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.#{$ns}-focus-disabled :focus {
|
|
9
|
+
// override any focus outline anywhere
|
|
10
|
+
// stylelint-disable declaration-no-important
|
|
11
|
+
outline: none !important;
|
|
12
|
+
|
|
13
|
+
// special override for checkbox etc which render focus on a separate element
|
|
14
|
+
~ .#{$ns}-control-indicator {
|
|
15
|
+
outline: none !important;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
|
|
3
|
+
Copyright 2019-present Palantir Technologies, Inc. All rights reserved.
|
|
4
|
+
Licensed under the Apache License, Version 2.0.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// override some intent colors to pass contrast requirements
|
|
9
|
+
$pt-intent-primary: #106ba3 !default; // $blue2
|
|
10
|
+
$pt-intent-success: #0d8050 !default; // $green2;
|
|
11
|
+
$pt-intent-warning: #a66321 !default; // $orange1;
|
|
12
|
+
$pt-intent-danger: #c23030 !default; // $red2;
|
|
13
|
+
|
|
14
|
+
// Import files in the same order that they are documented in the docs
|
|
15
|
+
@import "common/variables";
|
|
16
|
+
@import "common/colors";
|
|
17
|
+
|
|
18
|
+
@import "reset";
|
|
19
|
+
@import "typography";
|
|
20
|
+
@import "accessibility/focus-states";
|
|
21
|
+
|
|
22
|
+
@import "components/index";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*
|
|
2
|
+
|
|
3
|
+
Copyright 2015-present Palantir Technologies, Inc. All rights reserved.
|
|
4
|
+
Licensed under the Apache License, Version 2.0.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// Import files in the same order that they are documented in the docs
|
|
9
|
+
@import "common/variables";
|
|
10
|
+
@import "common/colors";
|
|
11
|
+
|
|
12
|
+
@import "reset";
|
|
13
|
+
@import "typography";
|
|
14
|
+
@import "accessibility/focus-states";
|
|
15
|
+
|
|
16
|
+
@import "components/index";
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Copyright 2015 Palantir Technologies, Inc. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License, Version 2.0.
|
|
3
|
+
|
|
4
|
+
$pt-intent-primary: $blue3 !default;
|
|
5
|
+
$pt-intent-success: $green3 !default;
|
|
6
|
+
$pt-intent-warning: $orange3 !default;
|
|
7
|
+
$pt-intent-danger: $red3 !default;
|
|
8
|
+
|
|
9
|
+
$pt-app-background-color: $light-gray5 !default;
|
|
10
|
+
$pt-dark-app-background-color: $dark-gray3 !default;
|
|
11
|
+
|
|
12
|
+
$pt-outline-color: rgba($blue3, 0.6);
|
|
13
|
+
|
|
14
|
+
$pt-text-color: $dark-gray1 !default;
|
|
15
|
+
$pt-text-color-muted: $gray1 !default;
|
|
16
|
+
$pt-text-color-disabled: rgba($pt-text-color-muted, 0.6) !default;
|
|
17
|
+
$pt-heading-color: $pt-text-color !default;
|
|
18
|
+
$pt-link-color: $blue2 !default;
|
|
19
|
+
$pt-dark-text-color: $light-gray5 !default;
|
|
20
|
+
$pt-dark-text-color-muted: $gray4 !default;
|
|
21
|
+
$pt-dark-text-color-disabled: rgba($pt-dark-text-color-muted, 0.6) !default;
|
|
22
|
+
$pt-dark-heading-color: $pt-dark-text-color !default;
|
|
23
|
+
$pt-dark-link-color: $blue5 !default;
|
|
24
|
+
// Default text selection color using #7dbcff
|
|
25
|
+
$pt-text-selection-color: rgba(125, 188, 255, 0.6) !default;
|
|
26
|
+
|
|
27
|
+
$pt-icon-color: $pt-text-color-muted !default;
|
|
28
|
+
$pt-icon-color-hover: $pt-text-color !default;
|
|
29
|
+
$pt-icon-color-disabled: $pt-text-color-disabled !default;
|
|
30
|
+
$pt-icon-color-selected: $pt-intent-primary !default;
|
|
31
|
+
$pt-dark-icon-color: $pt-dark-text-color-muted !default;
|
|
32
|
+
$pt-dark-icon-color-hover: $pt-dark-text-color !default;
|
|
33
|
+
$pt-dark-icon-color-disabled: $pt-dark-text-color-disabled !default;
|
|
34
|
+
$pt-dark-icon-color-selected: $pt-intent-primary !default;
|
|
35
|
+
|
|
36
|
+
$pt-divider-black: rgba($black, 0.15) !default;
|
|
37
|
+
$pt-dark-divider-black: rgba($black, 0.4) !default;
|
|
38
|
+
$pt-dark-divider-white: rgba($white, 0.15) !default;
|
|
39
|
+
|
|
40
|
+
$pt-code-text-color: $pt-text-color-muted !default;
|
|
41
|
+
$pt-dark-code-text-color: $pt-dark-text-color-muted !default;
|
|
42
|
+
$pt-code-background-color: rgba($white, 0.7) !default;
|
|
43
|
+
$pt-dark-code-background-color: rgba($black, 0.3) !default;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
// Copyright 2015 Palantir Technologies, Inc. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License, Version 2.0.
|
|
3
|
+
|
|
4
|
+
// Gray scale
|
|
5
|
+
|
|
6
|
+
$black: #10161a !default;
|
|
7
|
+
|
|
8
|
+
$dark-gray1: #182026 !default;
|
|
9
|
+
$dark-gray2: #202b33 !default;
|
|
10
|
+
$dark-gray3: #293742 !default;
|
|
11
|
+
$dark-gray4: #30404d !default;
|
|
12
|
+
$dark-gray5: #394b59 !default;
|
|
13
|
+
|
|
14
|
+
$gray1: #5c7080 !default;
|
|
15
|
+
$gray2: #738694 !default;
|
|
16
|
+
$gray3: #8a9ba8 !default;
|
|
17
|
+
$gray4: #a7b6c2 !default;
|
|
18
|
+
$gray5: #bfccd6 !default;
|
|
19
|
+
|
|
20
|
+
$light-gray1: #ced9e0 !default;
|
|
21
|
+
$light-gray2: #d8e1e8 !default;
|
|
22
|
+
$light-gray3: #e1e8ed !default;
|
|
23
|
+
$light-gray4: #ebf1f5 !default;
|
|
24
|
+
$light-gray5: #f5f8fa !default;
|
|
25
|
+
|
|
26
|
+
$white: #ffffff !default;
|
|
27
|
+
|
|
28
|
+
// Core colors
|
|
29
|
+
|
|
30
|
+
$blue1: #0e5a8a !default;
|
|
31
|
+
$blue2: #106ba3 !default;
|
|
32
|
+
$blue3: #137cbd !default;
|
|
33
|
+
$blue4: #2b95d6 !default;
|
|
34
|
+
$blue5: #48aff0 !default;
|
|
35
|
+
|
|
36
|
+
$green1: #0a6640 !default;
|
|
37
|
+
$green2: #0d8050 !default;
|
|
38
|
+
$green3: #0f9960 !default;
|
|
39
|
+
$green4: #15b371 !default;
|
|
40
|
+
$green5: #3dcc91 !default;
|
|
41
|
+
|
|
42
|
+
$orange1: #a66321 !default;
|
|
43
|
+
$orange2: #bf7326 !default;
|
|
44
|
+
$orange3: #d9822b !default;
|
|
45
|
+
$orange4: #f29d49 !default;
|
|
46
|
+
$orange5: #ffb366 !default;
|
|
47
|
+
|
|
48
|
+
$red1: #a82a2a !default;
|
|
49
|
+
$red2: #c23030 !default;
|
|
50
|
+
$red3: #db3737 !default;
|
|
51
|
+
$red4: #f55656 !default;
|
|
52
|
+
$red5: #ff7373 !default;
|
|
53
|
+
|
|
54
|
+
// Extended colors
|
|
55
|
+
|
|
56
|
+
$vermilion1: #9e2b0e !default;
|
|
57
|
+
$vermilion2: #b83211 !default;
|
|
58
|
+
$vermilion3: #d13913 !default;
|
|
59
|
+
$vermilion4: #eb532d !default;
|
|
60
|
+
$vermilion5: #ff6e4a !default;
|
|
61
|
+
|
|
62
|
+
$rose1: #a82255 !default;
|
|
63
|
+
$rose2: #c22762 !default;
|
|
64
|
+
$rose3: #db2c6f !default;
|
|
65
|
+
$rose4: #f5498b !default;
|
|
66
|
+
$rose5: #ff66a1 !default;
|
|
67
|
+
|
|
68
|
+
$violet1: #5c255c !default;
|
|
69
|
+
$violet2: #752f75 !default;
|
|
70
|
+
$violet3: #8f398f !default;
|
|
71
|
+
$violet4: #a854a8 !default;
|
|
72
|
+
$violet5: #c274c2 !default;
|
|
73
|
+
|
|
74
|
+
$indigo1: #5642a6 !default;
|
|
75
|
+
$indigo2: #634dbf !default;
|
|
76
|
+
$indigo3: #7157d9 !default;
|
|
77
|
+
$indigo4: #9179f2 !default;
|
|
78
|
+
$indigo5: #ad99ff !default;
|
|
79
|
+
|
|
80
|
+
$cobalt1: #1f4b99 !default;
|
|
81
|
+
$cobalt2: #2458b3 !default;
|
|
82
|
+
$cobalt3: #2965cc !default;
|
|
83
|
+
$cobalt4: #4580e6 !default;
|
|
84
|
+
$cobalt5: #669eff !default;
|
|
85
|
+
|
|
86
|
+
$turquoise1: #008075 !default;
|
|
87
|
+
$turquoise2: #00998c !default;
|
|
88
|
+
$turquoise3: #00b3a4 !default;
|
|
89
|
+
$turquoise4: #14ccbd !default;
|
|
90
|
+
$turquoise5: #2ee6d6 !default;
|
|
91
|
+
|
|
92
|
+
$forest1: #1d7324 !default;
|
|
93
|
+
$forest2: #238c2c !default;
|
|
94
|
+
$forest3: #29a634 !default;
|
|
95
|
+
$forest4: #43bf4d !default;
|
|
96
|
+
$forest5: #62d96b !default;
|
|
97
|
+
|
|
98
|
+
$lime1: #728c23 !default;
|
|
99
|
+
$lime2: #87a629 !default;
|
|
100
|
+
$lime3: #9bbf30 !default;
|
|
101
|
+
$lime4: #b6d94c !default;
|
|
102
|
+
$lime5: #d1f26d !default;
|
|
103
|
+
|
|
104
|
+
$gold1: #a67908 !default;
|
|
105
|
+
$gold2: #bf8c0a !default;
|
|
106
|
+
$gold3: #d99e0b !default;
|
|
107
|
+
$gold4: #f2b824 !default;
|
|
108
|
+
$gold5: #ffc940 !default;
|
|
109
|
+
|
|
110
|
+
$sepia1: #63411e !default;
|
|
111
|
+
$sepia2: #7d5125 !default;
|
|
112
|
+
$sepia3: #96622d !default;
|
|
113
|
+
$sepia4: #b07b46 !default;
|
|
114
|
+
$sepia5: #c99765 !default;
|
|
115
|
+
|
|
116
|
+
@import "color-aliases";
|