2.0.0 • Published 6 years ago

primer-blankslate v2.0.0

Weekly downloads
1,011
License
MIT
Repository
github
Last release
6 years ago

Primer Blankslate

npm version Build Status

Blankslates are for when there is a lack of content within a page or section. Use them as placeholders to tell users why something isn’t there. Be sure to provide an action to add content as well.

This repository is a module of the full primer repository.

Install

This repository is distributed with npm. After installing npm, you can install primer-blankslate with this command.

$ npm install --save primer-blankslate

Usage

The source files included are written in Sass (scss) You can simply point your sass include-path at your node_modules directory and import it like this.

@import "primer-blankslate/index.scss";

You can also import specific portions of the module by importing those partials from the /lib/ folder. Make sure you import any requirements along with the modules.

Build

For a compiled css version of this module, a npm script is included that will output a css version to build/build.css The built css file is also included in the npm package.

$ npm run build

Documentation

Blankslates are for when there is a lack of content within a page or section. Use them as placeholders to tell users why something isn't there. Be sure to provide an action to add content as well.

Basic example

Wrap some content in the outer .blankslate wrapper to give it the blankslate appearance.

<div class="blankslate">
  <h3>This is a blank slate</h3>
  <p>Use it to provide information when no dynamic content exists.</p>
</div>

With Octicons

When it helps the message, include (relevant) icons in your blank slate. Add .blankslate-icon to any .mega-octicons as the first elements in the blankslate, like so.

<div class="blankslate">
  <%= octicon "git-commit", :height => 32, :class => "blankslate-icon" %>
  <%= octicon "tag", :height => 32, :class => "blankslate-icon" %>
  <%= octicon "git-branch", :height => 32, :class => "blankslate-icon" %>
  <h3>This is a blank slate</h3>
  <p>Use it to provide information when no dynamic content exists.</p>
</div>

Variations

Add an additional optional class to the .blankslate to change its appearance.

Narrow

Narrows the blankslate container to not occupy the entire available width.

<div class="blankslate blankslate-narrow">
  <h3>This is a blank slate</h3>
  <p>Use it to provide information when no dynamic content exists.</p>
</div>
Capped

Removes the border-radius on the top corners.

<div class="blankslate blankslate-capped">
  <h3>This is a blank slate</h3>
  <p>Use it to provide information when no dynamic content exists.</p>
</div>
Spacious

Significantly increases the vertical padding.

<div class="blankslate blankslate-spacious">
  <h3>This is a blank slate</h3>
  <p>Use it to provide information when no dynamic content exists.</p>
</div>
Large

Increases the size of the text in the blankslate

<div class="blankslate blankslate-large">
  <h3>This is a blank slate</h3>
  <p>Use it to provide information when no dynamic content exists.</p>
</div>
No background

Removes the background-color and border.

<div class="blankslate blankslate-clean-background">
  <h3>This is a blank slate</h3>
  <p>Use it to provide information when no dynamic content exists.</p>
</div>

License

MIT © GitHub

2.0.0

6 years ago

1.5.2

6 years ago

1.5.1

6 years ago

1.5.1-rc.1

6 years ago

1.5.1-rc.0

6 years ago

1.5.0-rc.6

6 years ago

1.5.0-rc.5

6 years ago

1.5.0

6 years ago

1.5.0-rc.4

6 years ago

1.5.0-rc.3

6 years ago

1.5.0-rc.2

6 years ago

1.5.0-rc.1

6 years ago

1.5.0-rc.0

6 years ago

1.4.10-rc.8

6 years ago

1.4.10-rc.7

6 years ago

1.4.10-rc.6

6 years ago

1.4.10-rc.5

6 years ago

1.4.10-rc.4

6 years ago

1.4.10-rc.3

6 years ago

1.4.10-rc.2

6 years ago

1.4.10

6 years ago

1.4.10-rc.1

6 years ago

1.4.10-rc.0

6 years ago

1.4.9-rc.12

6 years ago

1.4.9-rc.11

6 years ago

1.4.9-rc.10

6 years ago

1.4.9-rc.9

6 years ago

1.4.9-rc.8

6 years ago

1.4.9-rc.7

6 years ago

1.4.9-rc.6

6 years ago

1.4.9-rc.5

6 years ago

1.4.9-rc.4

6 years ago

1.4.9-rc.3

6 years ago

1.4.9

6 years ago

1.4.9-rc.2

6 years ago

1.4.9-rc.1

6 years ago

1.4.9-rc.0

6 years ago

1.4.8-rc.2

6 years ago

1.4.8-rc.1

6 years ago

1.4.8

6 years ago

1.4.8-rc.0

7 years ago

1.4.7-rc.10

7 years ago

1.4.7-rc.9

7 years ago

1.4.7-rc.8

7 years ago

1.4.7-rc.7

7 years ago

1.4.7-rc.6

7 years ago

1.4.7-rc.5

7 years ago

1.4.7-rc.4

7 years ago

1.4.7-rc.3

7 years ago

1.4.7-rc.2

7 years ago

1.4.7

7 years ago

1.4.7-rc.1

7 years ago

1.4.7-rc.0

7 years ago

1.4.6-rc.2

7 years ago

1.4.6-rc.1

7 years ago

1.4.6

7 years ago

1.4.6-rc.0

7 years ago

1.4.5-rc.7

7 years ago

1.4.5-rc.6

7 years ago

1.4.5-rc.5

7 years ago

1.4.5-rc.4

7 years ago

1.4.5-rc.3

7 years ago

1.4.5-rc.2

7 years ago

1.4.5-rc.1

7 years ago

1.4.5

7 years ago

1.4.5-rc.0

7 years ago

1.4.4-rc.14

7 years ago

1.4.4-rc.13

7 years ago

1.4.4-rc.12

7 years ago

1.4.4-rc.11

7 years ago

1.4.4-rc.10

7 years ago

1.4.4-rc.9

7 years ago

1.4.4-rc.8

7 years ago

1.4.4-rc.7

7 years ago

1.4.4-rc.6

7 years ago

1.4.4-rc.5

7 years ago

1.4.4-rc.4

7 years ago

1.4.4-rc.3

7 years ago

1.4.4

7 years ago

1.4.4-rc.2

7 years ago

1.4.4-rc.1

7 years ago

1.4.4-rc.0

7 years ago

1.4.3-rc.7

7 years ago

1.4.3-rc.6

7 years ago

1.4.3-rc.5

7 years ago

1.4.3-rc.4

7 years ago

1.4.3-rc.3

7 years ago

1.4.3-rc.2

7 years ago

1.4.3

7 years ago

1.4.3-rc.1

7 years ago

1.4.3-rc.0

7 years ago

1.4.2-rc.6

7 years ago

1.4.2-rc.5

7 years ago

1.4.2-rc.4

7 years ago

1.4.2-rc.3

7 years ago

1.4.2-rc.2

7 years ago

1.4.2-rc.1

7 years ago

1.4.2

7 years ago

1.4.2-rc.0

7 years ago

1.4.1-rc.10

7 years ago

1.4.1-rc.9

7 years ago

1.4.1-rc.8

7 years ago

1.4.1-rc.7

7 years ago

1.4.1-rc.6

7 years ago

1.4.1-rc.5

7 years ago

1.4.1-rc.4

7 years ago

1.4.1-rc.3

7 years ago

1.4.1-rc.2

7 years ago

1.4.1-rc.1

7 years ago

1.4.1-rc.0

7 years ago

1.4.1

7 years ago

1.4.0-rc.18

7 years ago

1.4.0-rc.17

7 years ago

1.4.0-rc.16

7 years ago

1.4.0-rc.15

7 years ago

1.4.0-rc.14

7 years ago

1.4.0-rc.13

7 years ago

1.4.0-rc.12

7 years ago

1.4.0-rc.11

7 years ago

1.4.0-rc.10

7 years ago

1.4.0-rc.9

7 years ago

1.4.0-rc.8

7 years ago

1.4.0-rc.7

7 years ago

1.4.0-rc.6

7 years ago

1.4.0

7 years ago

1.4.0-rc.5

7 years ago

1.3.0-rc.10

7 years ago

1.4.0-rc.4

7 years ago

1.3.0-rc.9

7 years ago

1.4.0-rc.3

7 years ago

1.4.0-rc.2

7 years ago

1.3.0-rc.8

7 years ago

1.4.0-rc.1

7 years ago

1.4.0-rc.0

7 years ago

1.3.0-rc.7

7 years ago

1.3.0-rc.6

7 years ago

1.3.0-rc.5

7 years ago

1.3.0-rc.4

7 years ago

1.3.0-rc.3

7 years ago

1.3.0

7 years ago

1.3.0-rc.2

7 years ago

1.3.0-rc.1

7 years ago

1.3.0-rc.0

7 years ago

1.2.0

7 years ago

1.2.0-rc.1

7 years ago

1.2.0-rc.0

7 years ago

1.1.1-rc.15

7 years ago

1.1.1-rc.14

7 years ago

1.1.1

7 years ago

1.1.1-rc.13

7 years ago

1.1.1-rc.12

7 years ago

1.1.1-rc.11

7 years ago

1.1.1-rc.10

7 years ago

1.1.1-rc.9

7 years ago

1.1.1-rc.8

7 years ago

1.1.0

7 years ago

1.1.0-rc.7

7 years ago

1.1.0-rc.6

7 years ago

1.1.0-rc.5

7 years ago

1.1.0-rc.4

7 years ago

1.0.2-4

7 years ago

1.0.2-3

7 years ago

1.0.2-2

7 years ago

1.0.2-1

7 years ago

1.0.2

7 years ago

1.0.2-0

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.3.8

8 years ago

0.3.7

8 years ago

0.3.6

8 years ago

0.3.6-alpha.1

8 years ago

0.3.6-alpha.0

8 years ago

0.3.6-monobeta.0

8 years ago

0.3.6-monotest.0

8 years ago

0.3.6-mono.0

8 years ago

0.3.5

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago