-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] new example frame! #2489
Changes from all commits
c6eb025
c7758ea
f9cca9e
6e386f1
160d76b
0982139
233ef23
6264c76
90ff7fd
d3d77ce
d667990
7786b07
84ea31e
b4f9d1c
9f2ea34
670e570
8303c58
61b0e06
d42a8ea
684e218
d6d2772
0516783
e7f16e7
b5325f4
0b8ffa2
6a7e0b5
5311007
79d445c
2103686
bd16046
cf924e3
43fe45e
d237c47
062b66d
5a8b76a
0b5e629
57a9b3b
2094cc9
386b509
8d74798
1f5f0c0
75a14e5
c204d90
5cb1dce
d9f79e3
09970bc
1cdf3bc
4fde897
075453d
bb03c23
4d4f567
b05c3d4
9da31ae
56d825b
2ba3fbc
594be4e
b74c82f
5d5c1c4
17fabb4
c597cae
f96d365
ff4d1c7
5a3bb50
737c35b
38993fd
3d67839
d48e344
cff2b54
0c5516d
434cbce
d11cfab
9a92ec8
74ee80e
787df72
fe9bd21
69bc113
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
"dom", | ||
"dom.iterable", | ||
"es5", | ||
"es2015.collection", | ||
"es2015.iterable" | ||
], | ||
"module": "es2015", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,12 +11,14 @@ | |
Headings | ||
|
||
Markup: | ||
<h1 class="@ns-heading">H1 heading</h1> | ||
<h2 class="@ns-heading">H2 heading</h2> | ||
<h3 class="@ns-heading">H3 heading</h3> | ||
<h4 class="@ns-heading">H4 heading</h4> | ||
<h5 class="@ns-heading">H5 heading</h5> | ||
<h6 class="@ns-heading">H6 heading</h6> | ||
<div> | ||
<h1 class="@ns-heading">H1 heading</h1> | ||
<h2 class="@ns-heading">H2 heading</h2> | ||
<h3 class="@ns-heading">H3 heading</h3> | ||
<h4 class="@ns-heading">H4 heading</h4> | ||
<h5 class="@ns-heading">H5 heading</h5> | ||
<h6 class="@ns-heading">H6 heading</h6> | ||
</div> | ||
|
||
Styleguide headings | ||
*/ | ||
|
@@ -53,14 +55,19 @@ UI text | |
|
||
Markup: | ||
<div class="{{.modifier}}"> | ||
Blueprint components react overlay date picker. Breadcrumbs dialog progress non-ideal state. | ||
More than a decade ago, we set out to create products that would transform | ||
the way organizations use their data. Today, our products are deployed at | ||
the most critical government, commercial, and non-profit institutions in | ||
the world to solve problems we hadn’t even dreamed of back then. | ||
</div> | ||
|
||
.#{$ns}-ui-text - Default Blueprint font styles, applied to the `<body>` tag and available as a class for nested resets. | ||
.#{$ns}-monospace-text - Use a monospace font (ideal for code). | ||
.#{$ns}-running-text - Increase line height ideal for longform text. See [Running text](#core/typography.running-text) below for additional features. | ||
.#{$ns}-text-large - Use a larger font size. | ||
.#{$ns}-text-small - Use a smaller font size. | ||
.#{$ns}-text-muted - Change text color to a gentler gray. | ||
.#{$ns}-text-disabled - Change text color to a transparent, faded gray. | ||
.#{$ns}-text-overflow-ellipsis - Truncate a single line of text with an ellipsis if it overflows its container. | ||
|
||
Styleguide ui-text | ||
|
@@ -84,6 +91,14 @@ Styleguide ui-text | |
} | ||
} | ||
|
||
.#{$ns}-text-disabled { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👌 |
||
color: $pt-text-color-disabled; | ||
|
||
.#{$ns}-dark & { | ||
color: $pt-dark-text-color-disabled; | ||
} | ||
} | ||
|
||
.#{$ns}-text-overflow-ellipsis { | ||
@include overflow-ellipsis(); | ||
} | ||
|
@@ -93,22 +108,20 @@ Running text | |
|
||
Markup: | ||
<div class="@ns-running-text {{.modifier}}"> | ||
<blockquote> | ||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do | ||
eiusmod tempor incididunt ut labore et dolore magna aliqua. | ||
</p> | ||
<ul> | ||
<li>Item the <code>first</code>.</li> | ||
<li>Item the <strong>second</strong></code>.</li> | ||
<li>Item the <a href="#core/typography.running-text">third</a>.</li> | ||
</ul> | ||
<h3>New section</h3> | ||
<p> | ||
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris | ||
nisi ut aliquip ex ea commodo consequat. | ||
</p> | ||
</blockquote> | ||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do | ||
eiusmod tempor incididunt ut labore et dolore magna aliqua. | ||
</p> | ||
<ul> | ||
<li>Item the <code>first</code>.</li> | ||
<li>Item the <strong>second</strong></code>.</li> | ||
<li>Item the <a href="#core/typography.running-text">third</a>.</li> | ||
</ul> | ||
<h3>New section</h3> | ||
<p> | ||
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris | ||
nisi ut aliquip ex ea commodo consequat. | ||
</p> | ||
</div> | ||
|
||
.#{$ns}-text-large - Use larger font size. | ||
|
@@ -169,12 +182,17 @@ Styleguide running-text | |
} | ||
} | ||
|
||
// NOTE: this must be defined after .@ns-running-text in order to override font-size. | ||
// NOTE: these must be defined after .@ns-running-text in order to override font-size. | ||
.#{$ns}-text-large { | ||
font-size: $pt-font-size-large; | ||
// line-height comes from .@ns-(ui|running)-text | ||
} | ||
|
||
.#{$ns}-text-small { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👌 |
||
font-size: $pt-font-size-small; | ||
// line-height comes from .@ns-(ui|running)-text | ||
} | ||
|
||
/* | ||
Links | ||
|
||
|
@@ -219,17 +237,20 @@ a { | |
Preformatted text | ||
|
||
Markup: | ||
<p>Use the <code class="@ns-code"><code></code> tag for snippets of code.</p> | ||
<pre class="@ns-code-block">Use the <pre> tag for blocks of code.</pre> | ||
<pre class="@ns-code-block"><code>// code sample | ||
export function hasModifier(modifiers: ts.ModifiersArray, ...modifierKinds: ts.SyntaxKind[]) { | ||
<div> | ||
<p>Use the <code class="@ns-code"><code></code> tag for snippets of code.</p> | ||
<pre class="@ns-code-block">Use the <pre> tag for blocks of code.</pre> | ||
<pre class="@ns-code-block"><code>// code sample | ||
export function hasModifier( | ||
modifiers: ts.ModifiersArray, | ||
...modifierKinds: ts.SyntaxKind[], | ||
) { | ||
if (modifiers == null || modifierKinds == null) { | ||
return false; | ||
} | ||
return modifiers.some((m) => { | ||
return modifierKinds.some((k) => m.kind === k); | ||
}); | ||
return modifiers.some(m => modifierKinds.some(k => m.kind === k)); | ||
}</code></pre> | ||
</div> | ||
|
||
Styleguide preformatted | ||
*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,29 +9,31 @@ | |
Button groups | ||
|
||
Markup: | ||
<div class="#{$ns}-button-group {{.modifier}}"> | ||
<a class="#{$ns}-button #{$ns}-icon-database" tabindex="0" role="button">Queries</a> | ||
<a class="#{$ns}-button #{$ns}-icon-function" tabindex="0" role="button">Functions</a> | ||
<a class="#{$ns}-button" tabindex="0" role="button"> | ||
Options <span class="#{$ns}-icon-standard #{$ns}-icon-caret-down #{$ns}-align-right"></span> | ||
</a> | ||
</div> | ||
<br /><br /> | ||
<div class="#{$ns}-button-group {{.modifier}}"> | ||
<a class="#{$ns}-button #{$ns}-icon-chart" tabindex="0" role="button"></a> | ||
<a class="#{$ns}-button #{$ns}-icon-control" tabindex="0" role="button"></a> | ||
<a class="#{$ns}-button #{$ns}-icon-graph" tabindex="0" role="button"></a> | ||
<a class="#{$ns}-button #{$ns}-icon-camera" tabindex="0" role="button"></a> | ||
<a class="#{$ns}-button #{$ns}-icon-map" tabindex="0" role="button"></a> | ||
<a class="#{$ns}-button #{$ns}-icon-code" tabindex="0" role="button"></a> | ||
<a class="#{$ns}-button #{$ns}-icon-th" tabindex="0" role="button"></a> | ||
<a class="#{$ns}-button #{$ns}-icon-time" tabindex="0" role="button"></a> | ||
<a class="#{$ns}-button #{$ns}-icon-compressed" tabindex="0" role="button"></a> | ||
</div> | ||
<br /><br /> | ||
<div class="#{$ns}-button-group {{.modifier}}"> | ||
<button type="button" class="#{$ns}-button #{$ns}-intent-success">Save</button> | ||
<button type="button" class="#{$ns}-button #{$ns}-intent-success #{$ns}-icon-caret-down"></button> | ||
<div> | ||
<div class="#{$ns}-button-group {{.modifier}}"> | ||
<a class="#{$ns}-button #{$ns}-icon-database" tabindex="0" role="button">Queries</a> | ||
<a class="#{$ns}-button #{$ns}-icon-function" tabindex="0" role="button">Functions</a> | ||
<a class="#{$ns}-button" tabindex="0" role="button"> | ||
Options <span class="#{$ns}-icon-standard #{$ns}-icon-caret-down #{$ns}-align-right"></span> | ||
</a> | ||
</div> | ||
<br /><br /><br /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i would prefer to avoid additional markup in examples for layout and instead rely on the default flex box |
||
<div class="#{$ns}-button-group {{.modifier}}"> | ||
<a class="#{$ns}-button #{$ns}-icon-chart" tabindex="0" role="button"></a> | ||
<a class="#{$ns}-button #{$ns}-icon-control" tabindex="0" role="button"></a> | ||
<a class="#{$ns}-button #{$ns}-icon-graph" tabindex="0" role="button"></a> | ||
<a class="#{$ns}-button #{$ns}-icon-camera" tabindex="0" role="button"></a> | ||
<a class="#{$ns}-button #{$ns}-icon-map" tabindex="0" role="button"></a> | ||
<a class="#{$ns}-button #{$ns}-icon-code" tabindex="0" role="button"></a> | ||
<a class="#{$ns}-button #{$ns}-icon-th" tabindex="0" role="button"></a> | ||
<a class="#{$ns}-button #{$ns}-icon-time" tabindex="0" role="button"></a> | ||
<a class="#{$ns}-button #{$ns}-icon-compressed" tabindex="0" role="button"></a> | ||
</div> | ||
<br /><br /><br /> | ||
<div class="#{$ns}-button-group {{.modifier}}"> | ||
<button type="button" class="#{$ns}-button #{$ns}-intent-success">Save</button> | ||
<button type="button" class="#{$ns}-button #{$ns}-intent-success #{$ns}-icon-caret-down"></button> | ||
</div> | ||
</div> | ||
|
||
.#{$ns}-large - Use large buttons | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌