Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<div class="blankslate-container">
<div data-view-component="true" class="blankslate">
<svg aria-hidden="true" data-component="Octicon" height="24" viewBox="0 0 24 24" version="1.1" width="24" data-view-component="true" class="octicon octicon-shield blankslate-icon">
<path d="M13 15.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0Zm-.25-8.25a.75.75 0 0 0-1.5 0v4.5a.75.75 0 0 0 1.5 0v-4.5Z"></path><path d="M11.46.637a1.748 1.748 0 0 1 1.08 0l8.25 2.675A1.75 1.75 0 0 1 22 4.976V10c0 6.19-3.77 10.705-9.401 12.83a1.704 1.704 0 0 1-1.198 0C5.771 20.704 2 16.19 2 10V4.976c0-.76.49-1.43 1.21-1.664Zm.617 1.426a.253.253 0 0 0-.154 0L3.673 4.74a.25.25 0 0 0-.173.237V10c0 5.461 3.28 9.483 8.43 11.426a.199.199 0 0 0 .14 0C17.22 19.483 20.5 15.46 20.5 10V4.976a.25.25 0 0 0-.173-.237Z"></path>
</svg>
<h2 data-view-component="true" class="blankslate-heading">It looks like we have discovered a vulnerability</h2>
<p data-view-component="true" class="blankslate-description">Millions of teams trust GitHub to keep their work safe</p>
<div class="blankslate-action">
<a href="#" data-view-component="true" class="Button--primary Button--medium Button"> <span class="Button-content">
<span class="Button-label">Fix issue</span>
</span>
</a>
</div>
<div class="blankslate-action">
<a href="#" data-view-component="true" class="Link">Learn more about vulnerabilities</a>
</div>
</div>
</div>
1
2
3
4
5
6
7
render Primer::Beta::Blankslate.new(narrow: narrow, spacious: spacious, border: border) do |component|
component.with_visual_icon(icon: :shield)
component.with_heading(tag: :h2).with_content("It looks like we have discovered a vulnerability")
component.with_description { "Millions of teams trust GitHub to keep their work safe" }
component.with_primary_action(href: "#").with_content("Fix issue")
component.with_secondary_action(href: "#").with_content("Learn more about vulnerabilities")
end
Param Description Input

app/components/primer/beta/blankslate.css

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/* blankslate */
.blankslate-container {
container-type: inline-size;
width: 100%;
}
.blankslate {
--blankslate-outer-padding-block: var(--base-size-32);
--blankslate-outer-padding-inline: var(--base-size-32);
position: relative;
/* stylelint-disable-next-line primer/spacing */
padding: var(--blankslate-outer-padding-block) var(--blankslate-outer-padding-inline);
text-align: center;
/* stylelint-disable-next-line selector-max-type */
}
.blankslate p {
font-size: var(--text-body-size-medium);
color: var(--fgColor-muted);
}
/* stylelint-disable-next-line selector-max-type */
.blankslate code {
padding: var(--base-size-2) var(--base-size-4) var(--base-size-4);
font-size: var(--text-body-size-medium);
background: var(--bgColor-default);
border: var(--borderWidth-thin) solid var(--borderColor-muted);
border-radius: var(--borderRadius-medium);
}
/* stylelint-disable-next-line selector-max-type */
.blankslate img {
width: 56px;
height: 56px;
}
.blankslate-icon {
margin-right: var(--control-small-gap);
margin-bottom: var(--stack-gap-condensed);
margin-left: var(--control-small-gap);
color: var(--fgColor-muted);
}
.blankslate-image {
margin-bottom: var(--stack-gap-normal);
}
.blankslate-heading {
margin-bottom: var(--base-size-4);
font-size: var(--text-title-size-small);
font-weight: var(--text-title-weight-medium);
text-wrap: balance;
}
.blankslate-description {
text-wrap: balance;
}
.blankslate-action {
margin-top: var(--stack-gap-normal);
}
.blankslate-action:first-of-type {
margin-top: var(--stack-gap-spacious);
}
.blankslate-action:last-of-type {
margin-bottom: var(--stack-gap-condensed);
}
.blankslate-capped {
border-radius: 0 0 var(--borderRadius-medium) var(--borderRadius-medium);
}
.blankslate-spacious {
--blankslate-outer-padding-block: var(--base-size-80);
--blankslate-outer-padding-inline: var(--base-size-40);
}
.blankslate-narrow {
max-width: 485px;
margin: 0 auto;
}
/* was .large-format
** QUESTION: should we deprecate this? */
/* stylelint-disable-next-line selector-max-type */
.blankslate-large img {
width: 80px;
height: 80px;
}
/* stylelint-disable-next-line selector-max-type */
.blankslate-large h3 {
margin: var(--stack-gap-normal) 0;
/* font-size: $h3-size; // This doesn't actually make the text larger. Should this be $h2-size? */
/* stylelint-disable-next-line primer/typography */
font-size: 24px;
}
/* stylelint-disable-next-line selector-max-type */
.blankslate-large p {
font-size: var(--text-body-size-large);
}
/* was .clean-background
** TO DO: deprecate this and use utility instead */
.blankslate-clean-background {
border: 0;
}