main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
2.0 KB
|
Rev | Line | |
---|
[d565449] | 1 | 'use strict';
|
---|
| 2 |
|
---|
| 3 | exports.addon = function (renderer) {
|
---|
| 4 | if (process.env.NODE_ENV !== 'production') {
|
---|
| 5 | require('../__dev__/warnOnMissingDependencies')('reset', renderer, ['put']);
|
---|
| 6 | }
|
---|
| 7 |
|
---|
| 8 | // Adopted from https://raw.githubusercontent.com/necolas/normalize.css/master/normalize.css
|
---|
| 9 | var css = {
|
---|
| 10 | html: {
|
---|
| 11 | lineHeight: 1.15,
|
---|
| 12 | '-webkit-text-size-adjust': '100%',
|
---|
| 13 | },
|
---|
| 14 | body: {
|
---|
| 15 | margin: 0,
|
---|
| 16 | },
|
---|
| 17 | h1: {
|
---|
| 18 | fontSize: '2em',
|
---|
| 19 | margin: '0.67em 0',
|
---|
| 20 | },
|
---|
| 21 | hr: {
|
---|
| 22 | boxSizing: 'content-box',
|
---|
| 23 | height: 0,
|
---|
| 24 | overflow: 'visible',
|
---|
| 25 | },
|
---|
| 26 | pre: {
|
---|
| 27 | fontFamily: 'monospace, monospace',
|
---|
| 28 | fontSize: '1em',
|
---|
| 29 | },
|
---|
| 30 | 'b,strong': {
|
---|
| 31 | fontWeight: 'bolder',
|
---|
| 32 | },
|
---|
| 33 | 'code,kbd,samp': {
|
---|
| 34 | fontFamily: 'monospace, monospace',
|
---|
| 35 | fontSize: '1em',
|
---|
| 36 | },
|
---|
| 37 | 'small': {
|
---|
| 38 | fontSize: '80%',
|
---|
| 39 | },
|
---|
| 40 | 'sub,sup': {
|
---|
| 41 | fontSize: '75%',
|
---|
| 42 | lineHeight: 0,
|
---|
| 43 | position: 'relative',
|
---|
| 44 | verticalAlign: 'baseline',
|
---|
| 45 | },
|
---|
| 46 | sub: {
|
---|
| 47 | bottom: '-0.25em',
|
---|
| 48 | },
|
---|
| 49 | sup: {
|
---|
| 50 | top: '-0.5em',
|
---|
| 51 | },
|
---|
| 52 | 'button,input,optgroup,select,textarea': {
|
---|
| 53 | fontFamily: 'inherit',
|
---|
| 54 | fontSize: '100%',
|
---|
| 55 | lineHeight: 1.15,
|
---|
| 56 | margin: 0,
|
---|
| 57 | },
|
---|
| 58 | 'button,input': {
|
---|
| 59 | overflow: 'visible',
|
---|
| 60 | },
|
---|
| 61 | 'button,select': {
|
---|
| 62 | textTransform: 'none',
|
---|
| 63 | },
|
---|
| 64 | fieldset: {
|
---|
| 65 | padding: '0.35em 0.75em 0.625em',
|
---|
| 66 | },
|
---|
| 67 | legend: {
|
---|
| 68 | boxSizing: 'border-box',
|
---|
| 69 | display: 'table',
|
---|
| 70 | maxWidth: '100%',
|
---|
| 71 | padding: 0,
|
---|
| 72 | whiteSpace: 'normal',
|
---|
| 73 | },
|
---|
| 74 | progress: {
|
---|
| 75 | verticalAlign: 'baseline',
|
---|
| 76 | },
|
---|
| 77 | summary: {
|
---|
| 78 | display: 'list-item',
|
---|
| 79 | },
|
---|
| 80 | };
|
---|
| 81 |
|
---|
| 82 | renderer.put('', css);
|
---|
| 83 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.