@papillonbits/components 1.2.2 → 1.2.4
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.
|
@@ -1 +1,53 @@
|
|
|
1
|
-
@import '@primer/view-components/app/components/primer/beta/subhead';
|
|
1
|
+
// @import '@primer/view-components/app/components/primer/beta/subhead';
|
|
2
|
+
@import '~@papillonbits/css/build/primer/support/variables/layout.scss';
|
|
3
|
+
@import '~@papillonbits/css/build/primer/support/variables/misc.scss';
|
|
4
|
+
@import '~@papillonbits/css/build/primer/support/variables/typography.scss';
|
|
5
|
+
|
|
6
|
+
// Subhead styles
|
|
7
|
+
.Subhead {
|
|
8
|
+
display: flex;
|
|
9
|
+
padding-bottom: $spacer-2;
|
|
10
|
+
margin-bottom: $spacer-3;
|
|
11
|
+
border-bottom: $border-width $border-style var(--color-border-muted);
|
|
12
|
+
flex-flow: row wrap;
|
|
13
|
+
justify-content: flex-end; // Keep actions right aligned.
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Modifier class to give a lot of breathing room between sections of content.
|
|
17
|
+
.Subhead--spacious {
|
|
18
|
+
margin-top: $spacer-6;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// <h2> sized heading with normal font weight
|
|
22
|
+
.Subhead-heading {
|
|
23
|
+
font-size: $h2-size;
|
|
24
|
+
font-weight: $font-weight-normal;
|
|
25
|
+
flex: 1 1 auto;
|
|
26
|
+
order: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Make the text bold and red for dangerous content
|
|
30
|
+
.Subhead-heading--danger {
|
|
31
|
+
font-weight: $font-weight-bold;
|
|
32
|
+
color: var(--color-danger-fg);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// One-liner of supporting text
|
|
36
|
+
.Subhead-description {
|
|
37
|
+
font-size: $body-font-size;
|
|
38
|
+
color: var(--color-fg-muted);
|
|
39
|
+
flex: 1 100%;
|
|
40
|
+
order: 2;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Add 1 or 2 buttons to the right of the heading
|
|
44
|
+
.Subhead-actions {
|
|
45
|
+
margin: $spacer-1 0 $spacer-1 $spacer-1;
|
|
46
|
+
align-self: center;
|
|
47
|
+
justify-content: flex-end;
|
|
48
|
+
order: 1;
|
|
49
|
+
|
|
50
|
+
+ .Subhead-description {
|
|
51
|
+
margin-top: $spacer-1;
|
|
52
|
+
}
|
|
53
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@papillonbits/components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "Papillon Bits Components",
|
|
5
5
|
"homepage": "https://github.com/papillonbits/papillonbits/tree/master/packages/components",
|
|
6
6
|
"repository": {
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"@papillonbits/css": "^1.2.2",
|
|
33
33
|
"@papillonbits/library": "^1.2.2"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "b47b8c12c3c8b57ff69c36e8493b34f140156bb6"
|
|
36
36
|
}
|