Previews

No matching results.

x
1
2
3
4
5
6
7
8
9
10
<div class="blankslate-container">
<div data-view-component="true" class="blankslate">
<svg style="box-sizing: content-box; color: var(--color-icon-primary);" width="64" height="64" viewBox="0 0 16 16" fill="none" data-view-component="true" class="blankslate-image anim-rotate">
<circle cx="8" cy="8" r="7" stroke="currentColor" stroke-opacity="0.25" stroke-width="2" vector-effect="non-scaling-stroke" fill="none" />
<path d="M15 8a7.002 7.002 0 00-7-7" stroke="currentColor" stroke-width="2" stroke-linecap="round" vector-effect="non-scaling-stroke" />
</svg>
<h2 data-view-component="true" class="blankslate-heading">Mirroring your repository</h2>
<p data-view-component="true">We’re currently mirroring this repository. It should take anywhere from a few minutes to a couple of hours depending on the size of the repository.</p>
</div>
</div>
1
2
3
4
5
render Primer::Beta::Blankslate.new(narrow: narrow, spacious: spacious, border: border) do |component|
component.with_heading(tag: :h2).with_content("Mirroring your repository")
component.with_description { "We’re currently mirroring this repository. It should take anywhere from a few minutes to a couple of hours depending on the size of the repository." }
component.with_visual_spinner(size: :large)
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
/* blankslate */
.blankslate-container {
container-type: inline-size;
width: 100%;
}
.blankslate {
--blankslate-outer-padding-block: var(--base-size-32,2rem);
--blankslate-outer-padding-inline: var(--base-size-32,2rem);
position: relative;
padding: var(--blankslate-outer-padding-block) var(--blankslate-outer-padding-inline);
text-align: center;
}
.blankslate p {
color: var(--fgColor-muted,var(--color-fg-muted));
font-size: var(--text-body-size-large,1rem);
}
.blankslate code {
padding: 2px 5px 3px;
font-size: var(--text-body-size-medium,0.875rem);
background: var(--bgColor-default,var(--color-canvas-default));
border: var(--borderWidth-thin,max(1px, 0.0625rem)) solid var(--borderColor-muted,var(--color-border-muted));
border-radius: var(--borderRadius-medium,0.375rem);
}
.blankslate img {
width: 56px;
height: 56px;
}
.blankslate-icon {
margin-right: var(--control-small-gap,0.25rem);
margin-bottom: var(--stack-gap-condensed,0.5rem);
margin-left: var(--control-small-gap,0.25rem);
color: var(--fgColor-muted,var(--color-fg-muted));
}
.blankslate-image {
margin-bottom: var(--stack-gap-normal,1rem);
}
.blankslate-heading {
font-size: var(--text-title-size-medium,1.25rem);
font-weight: var(--text-title-weight-medium,600);
margin-bottom: var(--base-size-4,0.25rem);
}
.blankslate-action {
margin-top: var(--stack-gap-normal,1rem);
}
.blankslate-action:first-of-type {
margin-top: var(--stack-gap-spacious,1.5rem);
}
.blankslate-action:last-of-type {
margin-bottom: var(--stack-gap-condensed,0.5rem);
}
.blankslate-capped {
border-radius: 0 0 var(--borderRadius-medium,0.375rem) var(--borderRadius-medium,0.375rem);
}
.blankslate-spacious {
--blankslate-outer-padding-block: var(--base-size-80,5rem);
--blankslate-outer-padding-inline: var(--base-size-40,2.5rem);
}
.blankslate-narrow {
max-width: 485px;
margin: 0 auto;
}
/* was .large-format
** QUESTION: should we deprecate this? */
.blankslate-large img {
width: 80px;
height: 80px;
}
.blankslate-large h3 {
margin: var(--stack-gap-normal,1rem) 0;
/* font-size: $h3-size; // This doesn't actually make the text larger. Should this be $h2-size? */
font-size: 24px;
}
.blankslate-large p {
font-size: var(--text-body-size-large,1rem);
}
/* was .clean-background
** TO DO: deprecate this and use utility instead */
.blankslate-clean-background {
border: 0;
}
/* At the time these styles were written,
`34rem` was our "small" breakpoint width */
@container (max-width: 34rem) {
.blankslate {
--blankslate-outer-padding-block: var(--base-size-20,1.25rem);
--blankslate-outer-padding-inline: var(--base-size-20,1.25rem);
}
.blankslate-spacious {
--blankslate-outer-padding-block: var(--base-size-44,2.75rem);
--blankslate-outer-padding-inline: var(--base-size-28,1.75rem);
}
.blankslate-icon {
margin-bottom: var(--stack-gap-condensed,0.5rem);
}
.blankslate-heading {
font-size: var(--text-title-size-small,1rem);
}
.blankslate p {
font-size: var(--text-body-size-medium,0.875rem);
}
.blankslate-action {
margin-top: var(--stack-gap-condensed,0.5rem);
}
.blankslate-action:first-of-type {
margin-top: var(--stack-gap-normal,1rem);
}
.blankslate-action:last-of-type {
margin-bottom: calc(var(--stack-gap-condensed,0.5rem) / 2);
}
}