shed.css and TED themed functional CSS for your Ember app
ember install ember-ted-shed
You're ready to go with shed.css! Check out the shed.css docs for usage.
Note that shed.css core doesn't ship with any colour-related classes. For that you'll want to import the TED theme that ships with this addon...
ember install ember-cli-sass
// app.scss
@import "ember-ted-shed/colors";
@import "ember-ted-shed/borders";
There are two ways to use ember-ted-shed:
ember-ted-table
Talk | Speaker name |
---|---|
Why helmets don't prevent concussions -- and what might | David Camarillo |
The new American Dream | Courtney E. Martin |
Let's teach for mastery -- not test scores | Sal Khan |
The agony of trying to unsubscribe | James Veitch |
ember install ember-ted-table
{{#ted-table}}
{{#ted-table-header}}
{{#ted-table-row}}
{{#ted-table-header-cell}}Talk{{/ted-table-header-cell}}
{{#ted-table-header-cell}}Speaker name{{/ted-table-header-cell}}
{{/ted-table-row}}
{{/ted-table-header}}
{{#ted-table-body}}
{{#each talks as |talk|}}
{{#ted-table-row}}
{{#ted-table-cell}}{{talk.title}}{{/ted-table-cell}}
{{#ted-table-cell}}{{talk.speakerName}}{{/ted-table-cell}}
{{/ted-table-row}}
{{/each}}
{{/ted-table-body}}
{{/ted-table}}
ember-ted-button
ember install ember-ted-button
{{ted-button text="Cancel"}}
{{ted-button text="Save" theme="dark"}}
{{#ted-button classNames="m-l:1"}}
<em>any</em> markup can go here
{{/ted-button}}
{{ted-button
text="can't click this"
theme="dark"
disabled=true
classNames="m-l:1"}}
Full usage guidelines for shed.css can be found on the docs site.
Note that shed.css does not include any color or border based rules. Use the TED shed theme color and border classes here.
usage | example class |
---|---|
color | c:red |
background-color | bg:red |
hover color | hover/c:red |
hover background-color | hover/bg:red |
You can use any of the following named colors (in place of red
in the example above):
usage | example class |
---|---|
border (1px solid currentColor) | b |
border-top | b-t |
border-bottom | b-b |
border-left | b-l |
border-right | b-r |
border (transparent) | b:t |
border (named color) | b:red |
border-top (named color) | b-t:red |
alternate border-width (2px) * | b-w:2 |
focus border (named color) | focus/b:gray |
You can use any of the following named colors (in place of red
in the example above):
You can use any of the following named widths (in place of 2
in the example above):
* border widths act as modifier classes and must be used in conjunction with another border class.
usage | example class |
---|---|
background: none | .bg:none |
border: none | .b:none |
outline: none | .ol:none |