0.3.0 • Published 8 years ago

vui-image-action v0.3.0

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
8 years ago

vui-image-action

Bower version NPM version Build status Dependency Status

This component contains SASS mixins and CSS that you can use to style image actions.

An Image Action is a link associated with an image that performs an action when clicked.

screenshot of image actions

Installation

vui-image-action can be installed from Bower:

bower install vui-image-action

Or alternatively from NPM:

npm install vui-image-action

Depending on which installation method you choose, use that path when doing the SASS import:

@import 'bower_components/vui-image-action/image-action.scss';
// or...
@import "node_modules/vui-image-action/image-action.scss";

Usage

An Image Action must have a <img> element for the image, and a <span> element describing the action. These elements should be enclosed in a <a> that performs the action when clicked.

HTML:

<a href="#">
	<img src="img/help.svg" alt="">
	<span>Action</span>
</a>

SCSS:

a {
	@include vui-image-action;
}

Multiple Image Actions can be grouped in a list.

HTML:

<ul>
	<li>
		<a href="#">
			<img src="img/print.svg" alt="">
			<span>Print</span>
		</a>
	</li>
	<li>
		<a href="#">
			<img src="img/settings.svg" alt="">
			<span>Settings</span>
		</a>
	</li>
</ul>

SCSS:

ul {
	@include vui-image-action-list;
}
a {
	@include vui-image-action;
}

For further information on this component and other VUI components, see the docs at ui.valence.d2l.com.

Coding styles

See the VUI Best Practices & Style Guide for information on VUI naming conventions, plus information about the EditorConfig rules used in this repo.

0.3.0

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.2

8 years ago