Giter Site home page Giter Site logo

progress's Introduction

d2l-progress

Bower version Build status

A set of Polymer and Sass mixins for styling native progress elements in D2L applications.

For further information on this and other Brightspace UI components, see the docs at ui.developers.brightspace.com.

Installation

d2l-progress can be installed from Bower:

bower install d2l-progress

Progress Styles

screenshot of progress bar

Usage

Progress styles can be applied using either Polymer or Sass mixins. Which one you use depends on your technology stack and comfort with each, however since Sass compiles to native CSS it's more performant.

Sass

Import the main d2l-progress.scss file into your application's Sass. Then call the d2l-progress() mixin to define the styles of your progress element:

@import 'bower_components/d2l-progress/d2l-progress.scss';

progress.my-progress {
	@include d2l-progress();
}

Polymer

Include the webcomponents.js "lite" polyfill (for browsers that don't natively support web components), import d2l-progress.html, and consume the required mixins in a custom style block:

<head>
	<script src="https://s.brightspace.com/lib/webcomponentsjs/0.7.21/webcomponents-lite.min.js"></script>
	<link rel="import" href="../d2l-progress/d2l-progress.html">
	<custom-style>
		<style is="custom-style">
			progress.d2l-progress {
				@apply --d2l-progress;
			}
			/* etc. */
		</style>
	</custom-style>
</head>

Coding styles

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

progress's People

Contributors

dbatiste avatar danyakarras avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.